Package org.wildfly.security.keystore
Class ModifyTrackingKeyStoreSpi
- java.lang.Object
- 
- java.security.KeyStoreSpi
- 
- org.wildfly.security.keystore.DelegatingKeyStoreSpi
- 
- org.wildfly.security.keystore.ModifyTrackingKeyStoreSpi
 
 
 
- 
 class ModifyTrackingKeyStoreSpi extends DelegatingKeyStoreSpi TheKeyStoreSpiimplementation to track modifications.- Author:
- Darran Lofthouse
 
- 
- 
Field SummaryFields Modifier and Type Field Description private KeyStoredelegateprivate booleaninitialisedprivate booleanmodified
 - 
Constructor SummaryConstructors Constructor Description ModifyTrackingKeyStoreSpi(KeyStore delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidengineDeleteEntry(String alias)voidengineLoad(InputStream stream, char[] password)voidengineSetCertificateEntry(String alias, Certificate cert)voidengineSetKeyEntry(String alias, byte[] key, Certificate[] chain)voidengineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)voidengineStore(OutputStream stream, char[] password)protected KeyStoregetKeyStore()(package private) booleanisModified()Identify if the KeyStore has been modified through this implementation since the last call to save or load.(package private) voidsetModified(boolean modified)Set the modified flag for thisKeyStore.- 
Methods inherited from class org.wildfly.security.keystore.DelegatingKeyStoreSpiengineAliases, engineContainsAlias, engineGetCertificate, engineGetCertificateAlias, engineGetCertificateChain, engineGetCreationDate, engineGetKey, engineIsCertificateEntry, engineIsKeyEntry, engineSize
 - 
Methods inherited from class java.security.KeyStoreSpiengineEntryInstanceOf, engineGetEntry, engineLoad, engineProbe, engineSetEntry, engineStore
 
- 
 
- 
- 
- 
Field Detail- 
delegateprivate final KeyStore delegate 
 - 
initialisedprivate volatile boolean initialised 
 - 
modifiedprivate volatile boolean modified 
 
- 
 - 
Constructor Detail- 
ModifyTrackingKeyStoreSpiModifyTrackingKeyStoreSpi(KeyStore delegate) 
 
- 
 - 
Method Detail- 
engineSetKeyEntrypublic void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException - Overrides:
- engineSetKeyEntryin class- DelegatingKeyStoreSpi
- Throws:
- KeyStoreException
 
 - 
engineSetKeyEntrypublic void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) throws KeyStoreException - Overrides:
- engineSetKeyEntryin class- DelegatingKeyStoreSpi
- Throws:
- KeyStoreException
 
 - 
engineSetCertificateEntrypublic void engineSetCertificateEntry(String alias, Certificate cert) throws KeyStoreException - Overrides:
- engineSetCertificateEntryin class- DelegatingKeyStoreSpi
- Throws:
- KeyStoreException
 
 - 
engineDeleteEntrypublic void engineDeleteEntry(String alias) throws KeyStoreException - Overrides:
- engineDeleteEntryin class- DelegatingKeyStoreSpi
- Throws:
- KeyStoreException
 
 - 
engineStorepublic void engineStore(OutputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException - Overrides:
- engineStorein class- DelegatingKeyStoreSpi
- Throws:
- IOException
- NoSuchAlgorithmException
- CertificateException
 
 - 
engineLoadpublic void engineLoad(InputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException - Overrides:
- engineLoadin class- DelegatingKeyStoreSpi
- Throws:
- IOException
- NoSuchAlgorithmException
- CertificateException
 
 - 
isModifiedboolean isModified() Identify if the KeyStore has been modified through this implementation since the last call to save or load.- Returns:
- trueif the- KeyStorehas been modified,- falseotherwise
 
 - 
setModifiedvoid setModified(boolean modified) Set the modified flag for thisKeyStore.- Parameters:
- modified- the new value of the flag
 
 - 
getKeyStoreprotected KeyStore getKeyStore() - Specified by:
- getKeyStorein class- DelegatingKeyStoreSpi
 
 
- 
 
-