public class JDKKeyStore extends KeyStoreSpi implements BCKeyStore
| Modifier and Type | Class and Description |
|---|---|
static class |
JDKKeyStore.BouncyCastleStore
the BouncyCastle store.
|
| Modifier and Type | Field and Description |
|---|---|
protected SecureRandom |
random |
protected Hashtable |
table |
| Constructor and Description |
|---|
JDKKeyStore() |
engineEntryInstanceOf, engineGetEntry, engineLoad, engineSetEntry, engineStoreprotected Hashtable table
protected SecureRandom random
protected Cipher makePBECipher(String algorithm, int mode, char[] password, byte[] salt, int iterationCount) throws IOException
IOExceptionpublic void setRandom(SecureRandom rand)
BCKeyStoresetRandom in interface BCKeyStorepublic Enumeration engineAliases()
engineAliases in class KeyStoreSpipublic boolean engineContainsAlias(String alias)
engineContainsAlias in class KeyStoreSpipublic void engineDeleteEntry(String alias) throws KeyStoreException
engineDeleteEntry in class KeyStoreSpiKeyStoreExceptionpublic Certificate engineGetCertificate(String alias)
engineGetCertificate in class KeyStoreSpipublic String engineGetCertificateAlias(Certificate cert)
engineGetCertificateAlias in class KeyStoreSpipublic Certificate[] engineGetCertificateChain(String alias)
engineGetCertificateChain in class KeyStoreSpipublic Date engineGetCreationDate(String alias)
engineGetCreationDate in class KeyStoreSpipublic Key engineGetKey(String alias, char[] password) throws NoSuchAlgorithmException, UnrecoverableKeyException
engineGetKey in class KeyStoreSpiNoSuchAlgorithmExceptionUnrecoverableKeyExceptionpublic boolean engineIsCertificateEntry(String alias)
engineIsCertificateEntry in class KeyStoreSpipublic boolean engineIsKeyEntry(String alias)
engineIsKeyEntry in class KeyStoreSpipublic void engineSetCertificateEntry(String alias, Certificate cert) throws KeyStoreException
engineSetCertificateEntry in class KeyStoreSpiKeyStoreExceptionpublic void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) throws KeyStoreException
engineSetKeyEntry in class KeyStoreSpiKeyStoreExceptionpublic void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException
engineSetKeyEntry in class KeyStoreSpiKeyStoreExceptionpublic int engineSize()
engineSize in class KeyStoreSpiprotected void loadStore(InputStream in) throws IOException
IOExceptionprotected void saveStore(OutputStream out) throws IOException
IOExceptionpublic void engineLoad(InputStream stream, char[] password) throws IOException
engineLoad in class KeyStoreSpiIOExceptionpublic void engineStore(OutputStream stream, char[] password) throws IOException
engineStore in class KeyStoreSpiIOExceptionCopyright © 2015. All rights reserved.