public class ExtendedUniversalKeyStore extends UniversalKeyStore
UniversalKeyStore implementation about the possibility of
specifying protection parameters (if supported by the JDK in use and any of the base key stores) when adding
a KeyStore entry or storing the KeyStore.UniversalKeyStore| Modifier and Type | Class and Description |
|---|---|
static class |
ExtendedUniversalKeyStore.P12JKSKeyStore
UniversalKeyStore with "PKCS12" as primary KeyStore type and
"JKS" as secondary (fallback) type to may be used to solve
JSSE default KeyStore parsing problems.
|
UniversalKeyStore.KeyStoreType, UniversalKeyStore.PKCS12JKSKeyStore| Modifier and Type | Field and Description |
|---|---|
static UniversalKeyStore.KeyStoreType |
KS_TYPE_PKCS12
KeyStore type for the IAIK PKCS12KeyStore.
|
KS_TYPE_IAIK| Constructor and Description |
|---|
ExtendedUniversalKeyStore()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
engineSetEntry(java.lang.String alias,
java.security.KeyStore.Entry entry,
java.security.KeyStore.ProtectionParameter protParam)
Assigns the given keystore entry to the given alias.
|
void |
engineStore(java.security.KeyStore.LoadStoreParameter param)
Uses the given parameters to store this KeyStore.
|
engineAliases, engineContainsAlias, engineDeleteEntry, engineGetCertificate, engineGetCertificateAlias, engineGetCertificateChain, engineGetCreationDate, engineGetKey, engineIsCertificateEntry, engineIsKeyEntry, engineLoad, engineSetCertificateEntry, engineSetKeyEntry, engineSetKeyEntry, engineSize, engineStore, setSupportedKeyStoreTypespublic static final UniversalKeyStore.KeyStoreType KS_TYPE_PKCS12
public ExtendedUniversalKeyStore()
public void engineSetEntry(java.lang.String alias,
java.security.KeyStore.Entry entry,
java.security.KeyStore.ProtectionParameter protParam)
throws java.security.KeyStoreException
This method may be used only if supported by the JDK and any of the base key stores.
engineSetEntry in class java.security.KeyStoreSpialias - the alias nameentry - the (key or cert) entry to be associated with the aliasprotParam - the protection parameters to be used for protecting the
keystore entryjava.security.KeyStoreException - if this operation fails, e.g. the protection parameters are invalidpublic void engineStore(java.security.KeyStore.LoadStoreParameter param)
throws java.io.IOException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException
This method may be used only if supported by the JDK and any of the base key stores.
engineStore in class java.security.KeyStoreSpiparam - the parameters specifying the output stream to which to write this keystore,
and the protection parameters to be used for protecting the keystorejava.io.IOException - if there I/O related problem occursjava.security.NoSuchAlgorithmException - if a required protection algorithm is not supportedjava.security.cert.CertificateException - if any of the certificates included in the keystore data could
not be stored