Uses of Interface
org.forgerock.secrets.SecretConstraint
Package
Description
Utility classes for JWT creation and manipulation.
Provides a unified API for accessing secrets of various kinds.
-
Uses of SecretConstraint 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. -
Uses of SecretConstraint in org.forgerock.secrets
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 TypeMethodDescriptionSet<SecretConstraint<? super T>>
Purpose.getConstraints()
Returns the set of constraints that should apply to any secrets that match this purpose.Modifier and TypeMethodDescriptionPurpose.purpose
(String label, Class<T> type, SecretConstraint<? super T>... constraints) Constructs a purpose object.Purpose.withConstraints
(SecretConstraint<? super T>... constraints) Constructs a new purpose that is identical to this purpose but which imposes additional constraints on the secrets that can satisfy it.