public class DynamicPKCS11TokenKeyStoreProtectionManager extends AbstractPKCS11TokenKeyStoreProtectionManager
CallbackHandler class. Instances
must provide a CallbackHander implementation for providing credential information.DEFAULT_KESTORE_TYPE, IV_BYTES, SUNPKCS11_KEYSTORE_PROVIDER_NAME, WRAP_ALGO| Constructor and Description |
|---|
DynamicPKCS11TokenKeyStoreProtectionManager()
Default Constructor
|
DynamicPKCS11TokenKeyStoreProtectionManager(String keyStorePassPhraseAlias,
String privateKeyPassPhraseAlias,
CallbackHandler handler)
Constructs the store with the aliases and a callback handler.
|
DynamicPKCS11TokenKeyStoreProtectionManager(String keyStorePassPhraseAlias,
String privateKeyPassPhraseAlias,
CallbackHandler handler,
String keyStoreType,
InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
initTokenStore() |
void |
setCallbackHandler(CallbackHandler handler)
Sets the callback handler used obtain credential information.
|
clearEntry, clearKey, clearKeyStoreProtectionKey, clearPrivateKeyProtectionKey, getAllEntries, getAllKeys, getEntry, getKey, getKeyStoreProtectionKey, getKS, getPrivateKeyProtectionKey, setCredential, setEntry, setKey, setKeyStorePassPhraseAlias, setKeyStoreProtectionKey, setKeyStoreProtectionKeyAsBytes, setKeyStoreProtectionKeyAsString, setKeyStoreProviderName, setKeyStoreSource, setKeyStoreSourceAsString, setKeyStoreType, setPcks11ConfigFile, setPrivateKeyPassPhraseAlias, setPrivateKeyProtectionKey, setPrivateKeyProtectionKeyAsBytes, setPrivateKeyProtectionKeyAsString, unwrapWithSecretKey, wrapWithSecretKeypublic DynamicPKCS11TokenKeyStoreProtectionManager()
throws CryptoException
CryptoExceptionpublic DynamicPKCS11TokenKeyStoreProtectionManager(String keyStorePassPhraseAlias, String privateKeyPassPhraseAlias, CallbackHandler handler) throws CryptoException
keyStorePassPhraseAlias - The alias name of the key store key in the PKCS11 token.privateKeyPassPhraseAlias - The alias name of the private key protection key in the PKCS11 token.handler - A callback handler implementation used to obtain credential information.CryptoExceptionpublic DynamicPKCS11TokenKeyStoreProtectionManager(String keyStorePassPhraseAlias, String privateKeyPassPhraseAlias, CallbackHandler handler, String keyStoreType, InputStream inputStream) throws CryptoException
CryptoExceptionpublic void setCallbackHandler(CallbackHandler handler)
handler - The callback handler used obtain credential information.public void initTokenStore()
throws CryptoException
initTokenStore in class AbstractPKCS11TokenKeyStoreProtectionManagerCryptoExceptionCopyright © 2010–2021 The Direct Project. All rights reserved.