Uses of Class
org.forgerock.secrets.keys.CryptoKey
Packages that use CryptoKey
Package
Description
Provides a unified API for accessing secrets of various kinds.
Contains cryptographic key related API objects.
-
Uses of CryptoKey in org.forgerock.secrets
Methods in org.forgerock.secrets with type parameters of type CryptoKeyModifier and TypeMethodDescriptionSecretsProvider.asKeyStore
(Purpose<T> purpose) Returns a view of this secrets provider as a keystore for the given purpose.Methods in org.forgerock.secrets that return types with arguments of type CryptoKeyModifier and TypeMethodDescriptionstatic SecretConstraint<CryptoKey>
SecretConstraint.allowedAlgorithm
(String algorithm) Enforces that the key is allowed to be used with the given algorithm.static SecretConstraint<CryptoKey>
SecretConstraint.allowedKeyUsages
(Set<KeyUsage> keyUsages) Enforces that the key satisfies at least one of the given key usage constraints.static SecretConstraint<CryptoKey>
SecretConstraint.allowedKeyUsages
(KeyUsage first, KeyUsage... rest) Enforces that the key satisfies at least one of the given key usage constraints.static SecretConstraint<CryptoKey>
SecretConstraint.ellipticCurveKeyParameters
(ECParameterSpec requiredParameters) Enforces that the key is an elliptic curve key with the given parameters.static SecretConstraint<CryptoKey>
SecretConstraint.keyAlgorithm
(String keyAlgorithm) Enforces a particular key algorithm (case insensitive).static SecretConstraint<CryptoKey>
SecretConstraint.requiredKeyUsages
(Set<KeyUsage> keyUsages) Enforces that the key satisfies all of the given key usage constraints.static SecretConstraint<CryptoKey>
SecretConstraint.requiredKeyUsages
(KeyUsage first, KeyUsage... rest) Enforces that the key satisfies all of the given key usage constraints.Method parameters in org.forgerock.secrets with type arguments of type CryptoKeyModifier and TypeMethodDescriptionSecretsProvider.asKeyStore
(Set<Purpose<? extends CryptoKey>> purposes) Returns a view of this secrets provider as a keystore for the given purposes.SecretsProvider.getKeyManager
(Set<Purpose<? extends CryptoKey>> purposes, Options options) Returns aKeyManager
that can be used toinitialize an SSLContext
, allowing certificates and private keys to be retrieved from this secrets provider.SecretsProvider.getKeyManager
(Purpose<? extends CryptoKey> purpose) Returns aKeyManager
that can be used toinitialize an SSLContext
, allowing certificates and private keys to be retrieved from this secrets provider.SecretsProvider.getKeyManager
(Purpose<? extends CryptoKey> purpose, Options options) Returns aKeyManager
that can be used toinitialize an SSLContext
, allowing certificates and private keys to be retrieved from this secrets provider.SecretsProvider.getTrustManager
(Set<Purpose<? extends CryptoKey>> purposes, Options options) Constructs anX509ExtendedTrustManager
that will retrieve certificates from this secrets provider for the provided purposes.SecretsProvider.getTrustManager
(Purpose<? extends CryptoKey> purpose) Constructs anX509ExtendedTrustManager
that will retrieve certificates from this secrets provider for the provided purpose.SecretsProvider.getTrustManager
(Purpose<? extends CryptoKey> purpose, Options options) Constructs anX509ExtendedTrustManager
that will retrieve certificates from this secrets provider for the provided purpose.Constructor parameters in org.forgerock.secrets with type arguments of type CryptoKeyModifierConstructorDescriptionSecretsLoadStoreParameter
(SecretsProvider secretsProvider, Set<Purpose<? extends CryptoKey>> purposes, Clock clock) Initialises the keystore with the given secrets API objects.SecretsLoadStoreParameter
(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> purpose, Clock clock) Initialises the keystore with the given secrets API objects. -
Uses of CryptoKey in org.forgerock.secrets.keys
Classes in org.forgerock.secrets.keys with type parameters of type CryptoKeyModifier and TypeInterfaceDescriptioninterface
DecryptionKey<T extends CryptoKey>
Marker interface for all key types that can be used for decryption.interface
EncryptionKey<T extends CryptoKey>
Marker interface for all key types that can be used for encryption.Subclasses of CryptoKey in org.forgerock.secrets.keysModifier and TypeClassDescriptionclass
A key used for verifying certificate signatures.class
A key that is used for decrypting confidential data.class
A key that is used for encrypting confidential data.class
A key that is used in a key-agreement protocol (such as Diffie-Hellman) to agree another key.class
A key that is used to decrypt (or "unwrap") other keys that have been encrypted with aKeyEncryptionKey
.class
A key that is used to encrypt ("wrap") other keys.class
A key that is used for signing digital signatures.class
A key used for verifying digital signatures.Methods in org.forgerock.secrets.keys that return types with arguments of type CryptoKeyModifier and TypeMethodDescriptionKeyUsage.getKeyType()
The key type corresponding to this key usage.Methods in org.forgerock.secrets.keys with parameters of type CryptoKeyModifier and TypeMethodDescriptionExports the given crypto key and raw key material.Method parameters in org.forgerock.secrets.keys with type arguments of type CryptoKeyModifier and TypeMethodDescriptionKeyUsage.forKeyType
(Class<? extends CryptoKey> keyType) Returns the set of all key usages that are applicable to the given key type.