public abstract class KeyStoreBuilder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
KeyStoreBuilder()
Creates a new instance of KeyStoreBuilder
|
| Modifier and Type | Method and Description |
|---|---|
abstract KeyStore |
getKeyStore()
Returns the KeyStore described by this object.
|
static KeyStoreBuilder |
newInstance(String type,
Provider provider,
KeyStoreProtectionParameters protection)
Returns a new builder object.
|
protected KeyStoreBuilder()
public abstract 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(String type, 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.IllegalArgumentException - if protection is an application defined classNullPointerException - if type, provider or protection are nullCopyright © 2012 code4tv.com. All Rights Reserved.