Package org.wildfly.security.keystore
Class UnmodifiableKeyStore
- java.lang.Object
- 
- java.security.KeyStore
- 
- org.wildfly.security.keystore.UnmodifiableKeyStore
 
 
- 
 public class UnmodifiableKeyStore extends KeyStore A wrapper aroundKeyStoreto make it unmodifiable.- Author:
- Darran Lofthouse
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class java.security.KeyStoreKeyStore.Builder, KeyStore.CallbackHandlerProtection, KeyStore.Entry, KeyStore.LoadStoreParameter, KeyStore.PasswordProtection, KeyStore.PrivateKeyEntry, KeyStore.ProtectionParameter, KeyStore.SecretKeyEntry, KeyStore.TrustedCertificateEntry
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description privateUnmodifiableKeyStore(KeyStoreSpi keyStoreSpi, Provider provider, String type)
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyStoreunmodifiableKeyStore(KeyStore toWrap)Wrap an existing initialisedKeyStorewith an unmodifiable wrapper.- 
Methods inherited from class java.security.KeyStorealiases, containsAlias, deleteEntry, entryInstanceOf, getCertificate, getCertificateAlias, getCertificateChain, getCreationDate, getDefaultType, getEntry, getInstance, getInstance, getInstance, getInstance, getInstance, getKey, getProvider, getType, isCertificateEntry, isKeyEntry, load, load, setCertificateEntry, setEntry, setKeyEntry, setKeyEntry, size, store, store
 
- 
 
- 
- 
- 
Constructor Detail- 
UnmodifiableKeyStoreprivate UnmodifiableKeyStore(KeyStoreSpi keyStoreSpi, Provider provider, String type) 
 
- 
 - 
Method Detail- 
unmodifiableKeyStorepublic static KeyStore unmodifiableKeyStore(KeyStore toWrap) throws NoSuchAlgorithmException, CertificateException, IOException Wrap an existing initialisedKeyStorewith an unmodifiable wrapper. Note: References are held to the underlyingKeyStorecan still be modified and changes will still be visible in the representation returned here.- Parameters:
- toWrap- the- KeyStoreto wrap.
- Returns:
- the unmodifiable wrapper around the KeyStore
- Throws:
- NoSuchAlgorithmException
- CertificateException
- IOException
- IllegalArgumentException- if the- KeyStorebeing wrapped is- null
 
 
- 
 
-