org.dvb.security
Class DVBKeyStore

java.lang.Object
  extended by java.security.KeyStore
      extended by org.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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.security.KeyStore
java.security.KeyStore.Builder, java.security.KeyStore.CallbackHandlerProtection, java.security.KeyStore.Entry, java.security.KeyStore.LoadStoreParameter, java.security.KeyStore.PasswordProtection, java.security.KeyStore.PrivateKeyEntry, java.security.KeyStore.ProtectionParameter, java.security.KeyStore.SecretKeyEntry, java.security.KeyStore.TrustedCertificateEntry
 
Method Summary
 void load(KeyStoreProtectionParameters p)
          Loads this keystore using the given protection parameters
 
Methods inherited from class java.security.KeyStore
aliases, containsAlias, deleteEntry, entryInstanceOf, getCertificate, getCertificateAlias, getCertificateChain, getCreationDate, getDefaultType, getEntry, getInstance, getInstance, getInstance, getKey, getProvider, getType, isCertificateEntry, isKeyEntry, load, load, setCertificateEntry, setEntry, setKeyEntry, setKeyEntry, size, store, store
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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