public interface MutableKeyStoreProtectionManager extends KeyStoreProtectionManager
This interface assumes that key material is generated outside of the key store manager.
| Modifier and Type | Method and Description |
|---|---|
void |
clearEntry(String alias)
Generic method to clear an arbitrary entry.
|
void |
clearKey(String alias)
Generic method to clear an arbitrary key.
|
void |
clearKeyStoreProtectionKey()
Clears the key use to protect the key store.
|
void |
clearPrivateKeyProtectionKey()
Clears the key use to protect the private key.
|
KeyStore |
getKS()
Gets the underlying KeyStore object.
|
void |
setEntry(String alias,
KeyStore.Entry entry)
Generic method to set an arbitrary entry.
|
void |
setKey(String alias,
Key key)
Generic method to set an arbitrary key.
|
void |
setKeyStoreProtectionKey(Key key)
Sets key used to protect the key store as a Key object.
|
void |
setKeyStoreProtectionKeyAsBytes(byte[] key)
Sets key used to protect the key store as a byte array.
|
void |
setKeyStoreProtectionKeyAsString(String key)
Sets key used to protect the key store as a string.
|
void |
setPrivateKeyProtectionKey(Key key)
Sets key used to protect the private key as a Key object.
|
void |
setPrivateKeyProtectionKeyAsBytes(byte[] key)
Sets the key used to protect the private key as a byte array.
|
void |
setPrivateKeyProtectionKeyAsString(String key)
Sets the key used to protect the private key as a string.
|
getAllEntries, getAllKeys, getEntry, getKey, getKeyStoreProtectionKey, getPrivateKeyProtectionKeyvoid setPrivateKeyProtectionKey(Key key) throws CryptoException
key - The key used to protect private keys.CryptoExceptionvoid setPrivateKeyProtectionKeyAsBytes(byte[] key)
throws CryptoException
key - The key used to protect private keys.CryptoExceptionvoid setPrivateKeyProtectionKeyAsString(String key) throws CryptoException
key - The key used to protect private keys.CryptoExceptionvoid clearPrivateKeyProtectionKey()
throws CryptoException
CryptoExceptionvoid setKeyStoreProtectionKey(Key key) throws CryptoException
key - The key used to protect the key store.CryptoExceptionvoid setKeyStoreProtectionKeyAsBytes(byte[] key)
throws CryptoException
key - The key used to protect the key store.CryptoExceptionvoid setKeyStoreProtectionKeyAsString(String key) throws CryptoException
key - The key used to protect the key store.CryptoExceptionvoid clearKeyStoreProtectionKey()
throws CryptoException
CryptoExceptionvoid setKey(String alias, Key key) throws CryptoException
alias - Alias of the key that will be set.key - The key that will be set.CryptoExceptionvoid clearKey(String alias) throws CryptoException
alias - Alias of the key that will be cleared.CryptoExceptionvoid setEntry(String alias, KeyStore.Entry entry) throws CryptoException
alias - Alias of the entry that will be set.entry - The entry that will be set.CryptoExceptionvoid clearEntry(String alias) throws CryptoException
alias - Alias of the entry that will be cleared.CryptoExceptionKeyStore getKS()
Copyright © 2010–2021 The Direct Project. All rights reserved.