|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dvb.security.KeyStoreBuilder
An instance of this class encapsulates the information needed to instance and initialize a KeyStore object. That process is triggered when the getKeyStore method is called. This makes it possible to decouple configuration from KeyStore object creation and delay password prompt until it is needed.
Constructor Summary | |
protected |
KeyStoreBuilder()
Creates a new instance of KeyStoreBuilder |
Method Summary | |
abstract java.security.KeyStore |
getKeyStore()
Returns the KeyStore described by this object. |
static KeyStoreBuilder |
newInstance(java.lang.String type,
java.security.Provider provider,
KeyStoreProtectionParameters protection)
Returns a new builder object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected KeyStoreBuilder()
Method Detail |
public abstract java.security.KeyStore getKeyStore() throws KeyStoreException
KeyStoreException
- if an error occurred, e.g. if an error
occurred in the constructor or the load method of the KeyStorepublic static KeyStoreBuilder newInstance(java.lang.String type, java.security.Provider provider, KeyStoreProtectionParameters protection)
getKeyStore
method on the returned builder will return
a new org.dvb.security.DVBKeyStore object of type type. Its load
method is
invoked with the protection parameter used to construct this KeyStoreBuilder.
type
- the type of the KeyStore to be constructed. The type parameter is concatenated
with the string "KeyStore." and then passed to the get method of the specified Provider
in order to obtain the fully qualified name of the KeyStoreSpi implementation.
For more details, see "How to Implement a Provider for the JavaTM Cryptography Architecture"provider
- the provider from which the keyStore is to be instantiated.protection
- the protection parameter securing the Keystore.
java.lang.IllegalArgumentException
- if protection is an application defined class
java.lang.NullPointerException
- if type, provider or protection are null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |