public class KeyStoreWithAttributes
extends java.security.KeyStore
KeyStoreWithAttributes provides a KeyStore implementation with the ability to
specify CloudHSM key attributes for operations.KeyAttribute,
KeyStorejava.security.KeyStore.Builder, java.security.KeyStore.CallbackHandlerProtection, java.security.KeyStore.Entry, java.security.KeyStore.LoadStoreParameter, java.security.KeyStore.PasswordProtection, java.security.KeyStore.PrivateKeyEntry, java.security.KeyStore.ProtectionParameter, java.security.KeyStore.SecretKeyEntry, java.security.KeyStore.TrustedCertificateEntry| Modifier and Type | Method and Description |
|---|---|
static KeyStoreWithAttributes |
getInstance(java.lang.String type)
Gets an instance of a CloudHSM
KeyStore. |
static KeyStoreWithAttributes |
getInstance(java.lang.String type,
java.security.Provider provider)
Gets an instance of a CloudHSM
KeyStore. |
static KeyStoreWithAttributes |
getInstance(java.lang.String type,
java.lang.String provider)
Gets an instance of a CloudHSM
KeyStore. |
java.security.Key |
getKey(java.security.spec.KeySpec keySpec)
Finds a key that matches the provided key spec.
|
java.util.List<java.security.Key> |
getKeys(java.security.spec.KeySpec keySpec)
Returns the keys that matches the provided key spec.
|
aliases, containsAlias, deleteEntry, entryInstanceOf, getCertificate, getCertificateAlias, getCertificateChain, getCreationDate, getDefaultType, getEntry, getKey, getProvider, getType, isCertificateEntry, isKeyEntry, load, load, setCertificateEntry, setEntry, setKeyEntry, setKeyEntry, size, store, storepublic static KeyStoreWithAttributes getInstance(java.lang.String type) throws java.security.KeyStoreException
KeyStore.type - KeyStore type. This must refer to CloudHsmProvider.CLOUDHSM_KEYSTORE_TYPE.KeyStoreWithAttributes instance for the given type.java.security.KeyStoreException - if the given parameters are not set as documented here.public static KeyStoreWithAttributes getInstance(java.lang.String type, java.lang.String provider) throws java.security.KeyStoreException, java.security.NoSuchProviderException
KeyStore.type - KeyStore type. This must be CloudHsmProvider.CLOUDHSM_KEYSTORE_TYPE.provider - JCE Provider. This must be an instance of CloudHsmProvider.KeyStoreWithAttributes instance for the given type.java.security.KeyStoreException - if the given parameters are not set as documented here.java.security.NoSuchProviderException - if the CloudHSM provider has not been registered with Security.public static KeyStoreWithAttributes getInstance(java.lang.String type, java.security.Provider provider) throws java.security.KeyStoreException
KeyStore.type - KeyStore type. This must refer to CloudHsmProvider.CLOUDHSM_KEYSTORE_TYPE.provider - JCE Provider. This must be an instance of CloudHsmProvider.KeyStoreWithAttributes instance for the given type.java.security.KeyStoreException - if the given parameters are not set as documented here.public final java.security.Key getKey(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
keySpec - a CloudHSM key spec, e.g. KeyAttributesMap or KeyReferenceSpec.keySpec.java.security.spec.InvalidKeySpecException - If the provided key spec is invalid.KeyAttributesMap,
KeyReferenceSpecpublic final java.util.List<java.security.Key> getKeys(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
keySpec - a CloudHSM key spec, e.g. KeyAttributesMap or KeyReferenceSpec.keySpec.java.security.spec.InvalidKeySpecException - If the provided key spec is invalid.KeyAttributesMap,
KeyReferenceSpec