Uses of Class
org.forgerock.secrets.keys.CryptoKey
Package
Description
Classes and interfaces for JWT encryption and JWEs.
Classes and interfaces for creating and manipulating JWKs.
Classes and interfaces for JWT signing and JWS'.
JWT implementation(s) of
TokenHandler
.Utility classes for JWT creation and manipulation.
Provides the Common Secrets API for accessing secrets of various kinds.
Contains every Commons secrets related classes used in IG but not backported into Commons.
Provides a unified API for accessing secrets of various kinds.
Secret store backend for retrieving keys from a local or remote JWK Set.
Contains cryptographic key related API objects.
Provides a
SecretStore
implementation that loads secrets from a Common Configuration
PropertyResolver
and then decodes it with a
SecretPropertyFormat
.-
Uses of CryptoKey in org.forgerock.json.jose.jwe
Modifier and TypeMethodDescriptionJweAlgorithm.getDecryptionPurpose
(String label) Returns aPurpose
that can be used to retrieve keys that are suitable for decryption with this JWE algorithm.JweAlgorithmType.getDecryptionPurpose
(String label) Returns aPurpose
that can be used to retrieve keys that are suitable for decryption with this type of JWE algorithm.JweAlgorithm.getEncryptionPurpose
(String label) Returns aPurpose
that can be used to retrieve keys that are suitable for encryption with this JWE algorithm.JweAlgorithmType.getEncryptionPurpose
(String label) Returns aPurpose
that can be used to retrieve keys that are suitable for encryption with this type of JWE algorithm.Modifier and TypeMethodDescriptionPromise<? extends EncryptedJwt,
JweDecryptionCheckedException> EncryptedJwt.decrypt
(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> purpose) Attempts to decrypt the JWT using any available keys for the givenPurpose
from the givenSecretsProvider
.Promise<? extends EncryptedJwt,
JweDecryptionCheckedException> EncryptedJwt.decrypt
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> secretsReference) Attempts to decrypt the JWT using any available keys from the givenValidSecretsReference
.SignedThenEncryptedJwt.decrypt
(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> purpose) SignedThenEncryptedJwt.decrypt
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> validSecretsReference) SignedThenEncryptedJwt.decryptAndVerify
(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> decryptionPurpose, Purpose<VerificationKey> verificationPurpose) Decrypts the outer JWT and then verifies the signature on the inner JWT using secrets from the suppliedSecretsProvider
.SignedThenEncryptedJwt.decryptAndVerify
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> decryptionSecretsReference, ValidSecretsReference<VerificationKey, NeverThrowsException> verificationSecretsReference) Decrypts the outer JWT and then verifies the signature on the inner JWT using supplied valid secrets.Promise<byte[],
JweDecryptionCheckedException> EncryptedJwt.decryptRawPayload
(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> purpose) Attempts to decrypt the raw payload of the JWT using any keys from the givenSecretsProvider
that satisfy the suppliedPurpose
.Promise<byte[],
JweDecryptionCheckedException> EncryptedJwt.decryptRawPayload
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> secretsReference) Attempts to decrypt the raw payload of the JWT using any keys from the given theSecret
s contained in the givenValidSecretsReference
. -
Uses of CryptoKey in org.forgerock.json.jose.jwk
Modifier and TypeMethodDescription<T extends CryptoKey>
TJWK.toCryptoKey
(Purpose<T> purpose, Instant expiry) Converts this JWK into aCryptoKey
subclass object for use with the Secrets API. -
Uses of CryptoKey in org.forgerock.json.jose.jws
Modifier and TypeMethodDescriptionPromise<? extends EncryptedJwt,
JweDecryptionCheckedException> EncryptedThenSignedJwt.decrypt
(SecretsProvider secretsProvider, Purpose<? extends CryptoKey> decryptionPurpose) Decrypts the inner encrypted JWE so that the payload can be accessed.Promise<? extends EncryptedJwt,
JweDecryptionCheckedException> EncryptedThenSignedJwt.decrypt
(ValidSecretsReference<? extends CryptoKey, NeverThrowsException> secretsReference) Decrypts the inner encrypted JWE so that the payload can be accessed. -
Uses of CryptoKey in org.forgerock.json.jose.tokenhandler
Modifier and TypeMethodDescriptionSecretsJwtTokenHandler.Builder.decryptionPurpose
(Purpose<? extends CryptoKey> decryptionKeyPurpose) Specifies thePurpose
used to retrieve decryption keys from the secrets provider.SecretsJwtTokenHandler.Builder.encryptionPurpose
(Purpose<? extends CryptoKey> encryptionKeyPurpose) Specifies thePurpose
used to retrieve encryption keys from the secrets provider. -
Uses of CryptoKey in org.forgerock.json.jose.utils
Modifier and TypeMethodDescriptionstatic SecretConstraint<CryptoKey>
JoseSecretConstraints.allowedAlgorithm
(Algorithm algorithm) Enforces that the key is allowed to be used with the given JWA algorithm.Modifier and TypeMethodDescriptionstatic void
Utils.checkRsaKeySize
(CryptoKey key) Verifies that the RSA key being used meets minimum key size requirement of 2048 bits as specified in the JOSE specifications. -
Uses of CryptoKey in org.forgerock.openig.secrets
Modifier and TypeMethodDescriptionstatic SecretConstraint<CryptoKey>
SecretsUtils.allowedKeyType
(KeyType expected) Enforce that aCryptoKey
satisfies the given key type constraint. -
Uses of CryptoKey in org.forgerock.openig.tools.secrets
-
Uses of CryptoKey in org.forgerock.secrets
Modifier and TypeMethodDescriptionSecretsProvider.asKeyStore
(Purpose<T> purpose) Returns a view of this secrets provider as a keystore for the given purpose.Modifier 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.Modifier 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.ModifierConstructorDescriptionSecretsLoadStoreParameter
(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.jwkset
Modifier and TypeMethodDescription<S extends CryptoKey>
Promise<S,NoSuchSecretException> <S extends CryptoKey>
Promise<Stream<S>,NeverThrowsException> -
Uses of CryptoKey in org.forgerock.secrets.keys
Modifier 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.Modifier 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.Modifier and TypeMethodDescriptionKeyUsage.getKeyType()
The key type corresponding to this key usage.Modifier and TypeMethodDescriptionExports the given crypto key and raw key material.Modifier and TypeMethodDescriptionKeyUsage.forKeyType
(Class<? extends CryptoKey> keyType) Returns the set of all key usages that are applicable to the given key type. -
Uses of CryptoKey in org.forgerock.secrets.propertyresolver
ModifierConstructorDescriptionJwtWrappedPropertyFormat
(SecretPropertyFormat format, ValidSecretsReference<? extends CryptoKey, NeverThrowsException> validSecretsReference) Constructs a newJwtWrappedPropertyFormat
.