Package org.wildfly.security.keystore
Class UnmodifiableKeyStoreSpi
- java.lang.Object
-
- java.security.KeyStoreSpi
-
- org.wildfly.security.keystore.DelegatingKeyStoreSpi
-
- org.wildfly.security.keystore.UnmodifiableKeyStoreSpi
-
class UnmodifiableKeyStoreSpi extends DelegatingKeyStoreSpi
A wrapperKeyStoreSpi
implementation around aKeyStore
to make it unmodifiable.- Author:
- Darran Lofthouse
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableKeyStoreSpi(KeyStore keyStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
engineDeleteEntry(String alias)
void
engineLoad(InputStream stream, char[] password)
void
engineSetCertificateEntry(String alias, Certificate cert)
void
engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)
void
engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)
protected KeyStore
getKeyStore()
-
Methods inherited from class org.wildfly.security.keystore.DelegatingKeyStoreSpi
engineAliases, engineContainsAlias, engineGetCertificate, engineGetCertificateAlias, engineGetCertificateChain, engineGetCreationDate, engineGetKey, engineIsCertificateEntry, engineIsKeyEntry, engineSize, engineStore
-
Methods inherited from class java.security.KeyStoreSpi
engineEntryInstanceOf, engineGetEntry, engineLoad, engineProbe, engineSetEntry, engineStore
-
-
-
-
Field Detail
-
keyStore
private final KeyStore keyStore
-
loaded
private boolean loaded
-
-
Constructor Detail
-
UnmodifiableKeyStoreSpi
UnmodifiableKeyStoreSpi(KeyStore keyStore)
-
-
Method Detail
-
engineSetKeyEntry
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException
- Overrides:
engineSetKeyEntry
in classDelegatingKeyStoreSpi
- Throws:
KeyStoreException
-
engineSetKeyEntry
public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) throws KeyStoreException
- Overrides:
engineSetKeyEntry
in classDelegatingKeyStoreSpi
- Throws:
KeyStoreException
-
engineSetCertificateEntry
public void engineSetCertificateEntry(String alias, Certificate cert) throws KeyStoreException
- Overrides:
engineSetCertificateEntry
in classDelegatingKeyStoreSpi
- Throws:
KeyStoreException
-
engineDeleteEntry
public void engineDeleteEntry(String alias) throws KeyStoreException
- Overrides:
engineDeleteEntry
in classDelegatingKeyStoreSpi
- Throws:
KeyStoreException
-
engineLoad
public void engineLoad(InputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException
- Overrides:
engineLoad
in classDelegatingKeyStoreSpi
- Throws:
IOException
NoSuchAlgorithmException
CertificateException
-
getKeyStore
protected KeyStore getKeyStore()
- Specified by:
getKeyStore
in classDelegatingKeyStoreSpi
-
-