Package de.dentrassi.crypto.pem
Class AbstractReadOnlyKeyStore
java.lang.Object
java.security.KeyStoreSpi
de.dentrassi.crypto.pem.AbstractPemKeyStore
de.dentrassi.crypto.pem.AbstractReadOnlyKeyStore
- Direct Known Subclasses:
PemBundleKeyStore.Immutable,PemConfigKeyStore.Immutable,PemKeyStore.Immutable
An abstract implementation of
This idea behind this implementation, is to provide a base class which implements all operations, which would change the state of the key store, throwing an "unsupported operation". This allows sub-classes of this implementation to focus on implementing the "get" style methods only.
KeyStoreSpi, implementing only mutating operations as "not supported". This idea behind this implementation, is to provide a base class which implements all operations, which would change the state of the key store, throwing an "unsupported operation". This allows sub-classes of this implementation to focus on implementing the "get" style methods only.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.dentrassi.crypto.pem.AbstractPemKeyStore
AbstractPemKeyStore.Entry -
Field Summary
Fields inherited from class de.dentrassi.crypto.pem.AbstractPemKeyStore
entries -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidengineDeleteEntry(String alias) 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 Map<String, AbstractPemKeyStore.Entry> Methods inherited from class de.dentrassi.crypto.pem.AbstractPemKeyStore
engineAliases, engineContainsAlias, engineGetCertificate, engineGetCertificateAlias, engineGetCertificateChain, engineGetCreationDate, engineGetKey, engineIsCertificateEntry, engineIsKeyEntry, engineLoad, engineSize, getEntry, loadMethods inherited from class java.security.KeyStoreSpi
engineEntryInstanceOf, engineGetAttributes, engineGetEntry, engineLoad, engineProbe, engineSetEntry, engineStore
-
Constructor Details
-
AbstractReadOnlyKeyStore
public AbstractReadOnlyKeyStore()
-
-
Method Details
-
initializeEmpty
- Specified by:
initializeEmptyin classAbstractPemKeyStore
-
engineSetKeyEntry
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException - Specified by:
engineSetKeyEntryin classKeyStoreSpi- Throws:
KeyStoreException
-
engineSetKeyEntry
public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) throws KeyStoreException - Specified by:
engineSetKeyEntryin classKeyStoreSpi- Throws:
KeyStoreException
-
engineSetCertificateEntry
- Specified by:
engineSetCertificateEntryin classKeyStoreSpi- Throws:
KeyStoreException
-
engineDeleteEntry
- Specified by:
engineDeleteEntryin classKeyStoreSpi- Throws:
KeyStoreException
-
engineStore
public void engineStore(OutputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException - Specified by:
engineStorein classKeyStoreSpi- Throws:
IOExceptionNoSuchAlgorithmExceptionCertificateException
-