org.dvb.security
Class DVBKeyStore

java.lang.Object
  extended byjava.security.KeyStore
      extended byorg.dvb.security.DVBKeyStore

public class DVBKeyStore
extends java.security.KeyStore

Extends KeyStore to allow loading the keystore using protection parameters.

Since:
MHP 1.1.2

Constructor Summary
protected DVBKeyStore(java.security.KeyStoreSpi keyStoreSpi, java.security.Provider provider, java.lang.String type)
          Creates a KeyStore object of the given type, and encapsulates the given provider implementation (SPI object) in it.
 
Method Summary
 void load(KeyStoreProtectionParameters p)
          Loads this keystore using the given protection parameters
 
Methods inherited from class java.security.KeyStore
aliases, containsAlias, deleteEntry, getCertificate, getCertificateAlias, getCertificateChain, getCreationDate, getDefaultType, getInstance, getInstance, getInstance, getKey, getProvider, getType, isCertificateEntry, isKeyEntry, load, setCertificateEntry, setKeyEntry, setKeyEntry, size, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DVBKeyStore

protected DVBKeyStore(java.security.KeyStoreSpi keyStoreSpi,
                      java.security.Provider provider,
                      java.lang.String type)
Creates a KeyStore object of the given type, and encapsulates the given provider implementation (SPI object) in it.

Parameters:
keyStoreSpi - the provider implementation.
provider - the provider.
type - the keystore type.
Method Detail

load

public final void load(KeyStoreProtectionParameters p)
                throws java.io.IOException,
                       java.security.NoSuchAlgorithmException,
                       java.security.cert.CertificateException
Loads this keystore using the given protection parameters

Parameters:
p - protection parameters to use
Throws:
java.lang.IllegalArgumentException - if the parameter p is not recognized
java.io.IOException - if there is an I/O or format problem with the keystore data
java.security.NoSuchAlgorithmException - if the algorithm used to check the integrity of the keystore cannot be found
java.security.cert.CertificateException - if any of the certificates in the keystore could not be loaded