Class JKSKeyStoreSpi
java.lang.Object
java.security.KeyStoreSpi
org.bouncycastle.jcajce.provider.keystore.util.JKSKeyStoreSpi
Implements a certificate only JKS key store.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
engineContainsAlias
(String alias) void
engineDeleteEntry
(String alias) engineGetCertificate
(String alias) engineGetCertificateChain
(String alias) engineGetCreationDate
(String alias) engineGetKey
(String alias, char[] password) boolean
engineIsCertificateEntry
(String alias) boolean
engineIsKeyEntry
(String alias) void
engineLoad
(InputStream stream, char[] password) void
engineLoad
(KeyStore.LoadStoreParameter loadStoreParameter) boolean
engineProbe
(InputStream stream) void
engineSetCertificateEntry
(String alias, Certificate cert) void
engineSetKeyEntry
(String alias, byte[] key, Certificate[] chain) void
engineSetKeyEntry
(String alias, Key key, char[] password, Certificate[] chain) int
void
engineStore
(OutputStream stream, char[] password) Methods inherited from class java.security.KeyStoreSpi
engineEntryInstanceOf, engineGetAttributes, engineGetEntry, engineSetEntry, engineStore
-
Constructor Details
-
JKSKeyStoreSpi
-
-
Method Details
-
engineProbe
- Overrides:
engineProbe
in classKeyStoreSpi
- Throws:
IOException
-
engineGetKey
public Key engineGetKey(String alias, char[] password) throws NoSuchAlgorithmException, UnrecoverableKeyException - Specified by:
engineGetKey
in classKeyStoreSpi
- Throws:
NoSuchAlgorithmException
UnrecoverableKeyException
-
engineGetCertificateChain
- Specified by:
engineGetCertificateChain
in classKeyStoreSpi
-
engineGetCertificate
- Specified by:
engineGetCertificate
in classKeyStoreSpi
-
engineGetCreationDate
- Specified by:
engineGetCreationDate
in classKeyStoreSpi
-
engineSetKeyEntry
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException - Specified by:
engineSetKeyEntry
in classKeyStoreSpi
- Throws:
KeyStoreException
-
engineSetKeyEntry
public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) throws KeyStoreException - Specified by:
engineSetKeyEntry
in classKeyStoreSpi
- Throws:
KeyStoreException
-
engineSetCertificateEntry
- Specified by:
engineSetCertificateEntry
in classKeyStoreSpi
- Throws:
KeyStoreException
-
engineDeleteEntry
- Specified by:
engineDeleteEntry
in classKeyStoreSpi
- Throws:
KeyStoreException
-
engineAliases
- Specified by:
engineAliases
in classKeyStoreSpi
-
engineContainsAlias
- Specified by:
engineContainsAlias
in classKeyStoreSpi
-
engineSize
public int engineSize()- Specified by:
engineSize
in classKeyStoreSpi
-
engineIsKeyEntry
- Specified by:
engineIsKeyEntry
in classKeyStoreSpi
-
engineIsCertificateEntry
- Specified by:
engineIsCertificateEntry
in classKeyStoreSpi
-
engineGetCertificateAlias
- Specified by:
engineGetCertificateAlias
in classKeyStoreSpi
-
engineStore
public void engineStore(OutputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException - Specified by:
engineStore
in classKeyStoreSpi
- Throws:
IOException
NoSuchAlgorithmException
CertificateException
-
engineLoad
public void engineLoad(KeyStore.LoadStoreParameter loadStoreParameter) throws IOException, NoSuchAlgorithmException, CertificateException - Overrides:
engineLoad
in classKeyStoreSpi
- Throws:
IOException
NoSuchAlgorithmException
CertificateException
-
engineLoad
public void engineLoad(InputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException - Specified by:
engineLoad
in classKeyStoreSpi
- Throws:
IOException
NoSuchAlgorithmException
CertificateException
-