Package de.dentrassi.crypto.pem
Class AbstractMutablePemKeyStore
java.lang.Object
java.security.KeyStoreSpi
de.dentrassi.crypto.pem.AbstractPemKeyStore
de.dentrassi.crypto.pem.AbstractMutablePemKeyStore
- Direct Known Subclasses:
PemBundleKeyStore.Mutable,PemConfigKeyStore.Mutable,PemKeyStore.Mutable
Class that implements a few mutation methods in the keystore.
It's abstract to allow to subclasses to choose how have to load its keys and certificates.
It's abstract to allow to subclasses to choose how have to load its keys and certificates.
This is a mutable, but not peristable implementation, of a keystore. It is intended for use cases where an application expects the keystore to be mutable, and so we try to give our best to fulfill this expectation. However we do not implement the "store" methods.
-
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
-
AbstractMutablePemKeyStore
public AbstractMutablePemKeyStore()
-
-
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
-