Package org.wildfly.security.keystore
Class AtomicLoadKeyStoreSpi
- java.lang.Object
-
- java.security.KeyStoreSpi
-
- org.wildfly.security.keystore.DelegatingKeyStoreSpi
-
- org.wildfly.security.keystore.AtomicLoadKeyStoreSpi
-
class AtomicLoadKeyStoreSpi extends DelegatingKeyStoreSpi
TheKeyStoreSpi
to add support atomic loading of theKeyStore
- Author:
- Darran Lofthouse
-
-
Field Summary
Fields Modifier and Type Field Description private AtomicReference<KeyStore>
currentStore
private KeyStoreFactory
keyStoreFactory
-
Constructor Summary
Constructors Constructor Description AtomicLoadKeyStoreSpi(KeyStoreFactory keyStoreFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
engineLoad(InputStream stream, char[] password)
(package private) KeyStore
getCurrentKeyStore()
protected KeyStore
getKeyStore()
(package private) void
restoreKeyStore(KeyStore keyStore)
-
Methods inherited from class org.wildfly.security.keystore.DelegatingKeyStoreSpi
engineAliases, engineContainsAlias, engineDeleteEntry, engineGetCertificate, engineGetCertificateAlias, engineGetCertificateChain, engineGetCreationDate, engineGetKey, engineIsCertificateEntry, engineIsKeyEntry, engineSetCertificateEntry, engineSetKeyEntry, engineSetKeyEntry, engineSize, engineStore
-
Methods inherited from class java.security.KeyStoreSpi
engineEntryInstanceOf, engineGetEntry, engineLoad, engineProbe, engineSetEntry, engineStore
-
-
-
-
Field Detail
-
keyStoreFactory
private final KeyStoreFactory keyStoreFactory
-
currentStore
private final AtomicReference<KeyStore> currentStore
-
-
Constructor Detail
-
AtomicLoadKeyStoreSpi
AtomicLoadKeyStoreSpi(KeyStoreFactory keyStoreFactory)
-
-
Method Detail
-
engineLoad
public void engineLoad(InputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException
- Overrides:
engineLoad
in classDelegatingKeyStoreSpi
- Throws:
IOException
NoSuchAlgorithmException
CertificateException
-
getCurrentKeyStore
KeyStore getCurrentKeyStore()
-
restoreKeyStore
void restoreKeyStore(KeyStore keyStore)
-
getKeyStore
protected KeyStore getKeyStore()
- Specified by:
getKeyStore
in classDelegatingKeyStoreSpi
-
-