Class AdaptingKeyStoreSpi
- java.lang.Object
-
- java.security.KeyStoreSpi
-
- org.bouncycastle.jcajce.provider.keystore.util.AdaptingKeyStoreSpi
-
public class AdaptingKeyStoreSpi extends java.security.KeyStoreSpi
Implements a certificate only JKS key store.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPAT_OVERRIDE
-
Constructor Summary
Constructors Constructor Description AdaptingKeyStoreSpi(JcaJceHelper helper, java.security.KeyStoreSpi primaryStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Enumeration
engineAliases()
boolean
engineContainsAlias(java.lang.String alias)
void
engineDeleteEntry(java.lang.String alias)
java.security.cert.Certificate
engineGetCertificate(java.lang.String alias)
java.lang.String
engineGetCertificateAlias(java.security.cert.Certificate cert)
java.security.cert.Certificate[]
engineGetCertificateChain(java.lang.String alias)
java.util.Date
engineGetCreationDate(java.lang.String alias)
java.security.Key
engineGetKey(java.lang.String alias, char[] password)
boolean
engineIsCertificateEntry(java.lang.String alias)
boolean
engineIsKeyEntry(java.lang.String alias)
void
engineLoad(java.io.InputStream stream, char[] password)
void
engineSetCertificateEntry(java.lang.String alias, java.security.cert.Certificate cert)
void
engineSetKeyEntry(java.lang.String alias, byte[] key, java.security.cert.Certificate[] chain)
void
engineSetKeyEntry(java.lang.String alias, java.security.Key key, char[] password, java.security.cert.Certificate[] chain)
int
engineSize()
void
engineStore(java.io.OutputStream stream, char[] password)
-
-
-
Field Detail
-
COMPAT_OVERRIDE
public static final java.lang.String COMPAT_OVERRIDE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AdaptingKeyStoreSpi
public AdaptingKeyStoreSpi(JcaJceHelper helper, java.security.KeyStoreSpi primaryStore)
-
-
Method Detail
-
engineGetKey
public java.security.Key engineGetKey(java.lang.String alias, char[] password) throws java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException
- Specified by:
engineGetKey
in classjava.security.KeyStoreSpi
- Throws:
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
-
engineGetCertificateChain
public java.security.cert.Certificate[] engineGetCertificateChain(java.lang.String alias)
- Specified by:
engineGetCertificateChain
in classjava.security.KeyStoreSpi
-
engineGetCertificate
public java.security.cert.Certificate engineGetCertificate(java.lang.String alias)
- Specified by:
engineGetCertificate
in classjava.security.KeyStoreSpi
-
engineGetCreationDate
public java.util.Date engineGetCreationDate(java.lang.String alias)
- Specified by:
engineGetCreationDate
in classjava.security.KeyStoreSpi
-
engineSetKeyEntry
public void engineSetKeyEntry(java.lang.String alias, java.security.Key key, char[] password, java.security.cert.Certificate[] chain) throws java.security.KeyStoreException
- Specified by:
engineSetKeyEntry
in classjava.security.KeyStoreSpi
- Throws:
java.security.KeyStoreException
-
engineSetKeyEntry
public void engineSetKeyEntry(java.lang.String alias, byte[] key, java.security.cert.Certificate[] chain) throws java.security.KeyStoreException
- Specified by:
engineSetKeyEntry
in classjava.security.KeyStoreSpi
- Throws:
java.security.KeyStoreException
-
engineSetCertificateEntry
public void engineSetCertificateEntry(java.lang.String alias, java.security.cert.Certificate cert) throws java.security.KeyStoreException
- Specified by:
engineSetCertificateEntry
in classjava.security.KeyStoreSpi
- Throws:
java.security.KeyStoreException
-
engineDeleteEntry
public void engineDeleteEntry(java.lang.String alias) throws java.security.KeyStoreException
- Specified by:
engineDeleteEntry
in classjava.security.KeyStoreSpi
- Throws:
java.security.KeyStoreException
-
engineAliases
public java.util.Enumeration engineAliases()
- Specified by:
engineAliases
in classjava.security.KeyStoreSpi
-
engineContainsAlias
public boolean engineContainsAlias(java.lang.String alias)
- Specified by:
engineContainsAlias
in classjava.security.KeyStoreSpi
-
engineSize
public int engineSize()
- Specified by:
engineSize
in classjava.security.KeyStoreSpi
-
engineIsKeyEntry
public boolean engineIsKeyEntry(java.lang.String alias)
- Specified by:
engineIsKeyEntry
in classjava.security.KeyStoreSpi
-
engineIsCertificateEntry
public boolean engineIsCertificateEntry(java.lang.String alias)
- Specified by:
engineIsCertificateEntry
in classjava.security.KeyStoreSpi
-
engineGetCertificateAlias
public java.lang.String engineGetCertificateAlias(java.security.cert.Certificate cert)
- Specified by:
engineGetCertificateAlias
in classjava.security.KeyStoreSpi
-
engineStore
public void engineStore(java.io.OutputStream stream, char[] password) throws java.io.IOException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException
- Specified by:
engineStore
in classjava.security.KeyStoreSpi
- Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
-
engineLoad
public void engineLoad(java.io.InputStream stream, char[] password) throws java.io.IOException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException
- Specified by:
engineLoad
in classjava.security.KeyStoreSpi
- Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
-
-