Class VaultKeyStore
java.lang.Object
java.security.KeyStoreSpi
org.honton.chas.jca.vault.provider.keystore.VaultKeyStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLists all the alias names of this keystore.booleanengineContainsAlias(String alias) Checks if the given alias exists in this keystore.voidengineGetCertificateAlias(Certificate certificate) engineGetCreationDate(String alias) Returns the creation date of the entry identified by the given alias.engineGetKey(String alias, char[] password) Returns the key associated with the given alias, using the given password to recover it.booleanbooleanvoidengineLoad(InputStream inputStream, char[] chars) voidengineSetCertificateEntry(String s, Certificate certificate) voidengineSetKeyEntry(String s, byte[] bytes, Certificate[] certificates) voidengineSetKeyEntry(String s, Key key, char[] chars, Certificate[] certificates) intRetrieves the number of entries in this keystore.voidengineStore(OutputStream outputStream, char[] chars) protected VaultApiMethods inherited from class java.security.KeyStoreSpi
engineEntryInstanceOf, engineGetEntry, engineLoad, engineProbe, engineSetEntry, engineStore
-
Constructor Details
-
VaultKeyStore
public VaultKeyStore()
-
-
Method Details
-
getVaultInstance
-
engineAliases
Lists all the alias names of this keystore.- Specified by:
engineAliasesin classKeyStoreSpi- Returns:
- enumeration of the alias names
-
engineContainsAlias
Checks if the given alias exists in this keystore.- Specified by:
engineContainsAliasin classKeyStoreSpi- Parameters:
alias- the alias name- Returns:
- true if the alias exists, false otherwise
-
engineSize
public int engineSize()Retrieves the number of entries in this keystore.- Specified by:
engineSizein classKeyStoreSpi- Returns:
- the number of entries in this keystore
-
engineGetKey
Returns the key associated with the given alias, using the given password to recover it. The key must have been associated with the alias by a call tosetKeyEntry, or by a call tosetEntrywith aPrivateKeyEntryorSecretKeyEntry.- Specified by:
engineGetKeyin classKeyStoreSpi- Parameters:
alias- the alias namepassword- the password for recovering the key- Returns:
- the requested key, or null if the given alias does not exist or does not identify a key-related entry.
-
engineLoad
- Specified by:
engineLoadin classKeyStoreSpi
-
engineGetCertificateChain
- Specified by:
engineGetCertificateChainin classKeyStoreSpi
-
engineGetCertificate
- Specified by:
engineGetCertificatein classKeyStoreSpi
-
engineGetCreationDate
Returns the creation date of the entry identified by the given alias.- Specified by:
engineGetCreationDatein classKeyStoreSpi- Parameters:
alias- the alias name- Returns:
- the creation date of this entry, or null if the given alias does not exist
-
engineSetKeyEntry
- Specified by:
engineSetKeyEntryin classKeyStoreSpi
-
engineSetKeyEntry
- Specified by:
engineSetKeyEntryin classKeyStoreSpi
-
engineSetCertificateEntry
- Specified by:
engineSetCertificateEntryin classKeyStoreSpi
-
engineDeleteEntry
- Specified by:
engineDeleteEntryin classKeyStoreSpi
-
engineIsKeyEntry
- Specified by:
engineIsKeyEntryin classKeyStoreSpi
-
engineIsCertificateEntry
- Specified by:
engineIsCertificateEntryin classKeyStoreSpi
-
engineGetCertificateAlias
- Specified by:
engineGetCertificateAliasin classKeyStoreSpi
-
engineStore
- Specified by:
engineStorein classKeyStoreSpi
-