Package org.wildfly.security.keystore
Class DelegatingKeyStoreSpi
- java.lang.Object
-
- java.security.KeyStoreSpi
-
- org.wildfly.security.keystore.DelegatingKeyStoreSpi
-
- Direct Known Subclasses:
AtomicLoadKeyStoreSpi
,FilteringKeyStoreSpi
,ModifyTrackingKeyStoreSpi
,UnmodifiableKeyStoreSpi
,WrappingPasswordKeyStoreSpiImpl
abstract class DelegatingKeyStoreSpi extends KeyStoreSpi
AKeyStoreSpi
implementation to delegate all calls to an underlyingKeyStore
- Author:
- Darran Lofthouse
-
-
Constructor Summary
Constructors Constructor Description DelegatingKeyStoreSpi()
-
Method Summary
-
Methods inherited from class java.security.KeyStoreSpi
engineEntryInstanceOf, engineGetEntry, engineLoad, engineProbe, engineSetEntry, engineStore
-
-
-
-
Method Detail
-
engineGetKey
public Key engineGetKey(String alias, char[] password) throws NoSuchAlgorithmException, UnrecoverableKeyException
- Specified by:
engineGetKey
in classKeyStoreSpi
- Throws:
NoSuchAlgorithmException
UnrecoverableKeyException
-
engineGetCertificateChain
public Certificate[] engineGetCertificateChain(String alias)
- Specified by:
engineGetCertificateChain
in classKeyStoreSpi
-
engineGetCertificate
public Certificate engineGetCertificate(String alias)
- Specified by:
engineGetCertificate
in classKeyStoreSpi
-
engineGetCreationDate
public Date engineGetCreationDate(String alias)
- 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
public void engineSetCertificateEntry(String alias, Certificate cert) throws KeyStoreException
- Specified by:
engineSetCertificateEntry
in classKeyStoreSpi
- Throws:
KeyStoreException
-
engineDeleteEntry
public void engineDeleteEntry(String alias) throws KeyStoreException
- Specified by:
engineDeleteEntry
in classKeyStoreSpi
- Throws:
KeyStoreException
-
engineAliases
public Enumeration<String> engineAliases()
- Specified by:
engineAliases
in classKeyStoreSpi
-
engineContainsAlias
public boolean engineContainsAlias(String alias)
- Specified by:
engineContainsAlias
in classKeyStoreSpi
-
engineSize
public int engineSize()
- Specified by:
engineSize
in classKeyStoreSpi
-
engineIsKeyEntry
public boolean engineIsKeyEntry(String alias)
- Specified by:
engineIsKeyEntry
in classKeyStoreSpi
-
engineIsCertificateEntry
public boolean engineIsCertificateEntry(String alias)
- Specified by:
engineIsCertificateEntry
in classKeyStoreSpi
-
engineGetCertificateAlias
public String engineGetCertificateAlias(Certificate cert)
- 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(InputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException
- Specified by:
engineLoad
in classKeyStoreSpi
- Throws:
IOException
NoSuchAlgorithmException
CertificateException
-
getKeyStore
protected abstract KeyStore getKeyStore()
-
-