Uses of Interface
org.forgerock.secrets.SecretConstraint
Packages that use 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
Methods in org.forgerock.json.jose.utils that return SecretConstraintModifier 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
Methods in org.forgerock.secrets that return SecretConstraintModifier 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.Methods in org.forgerock.secrets that return types with arguments of type SecretConstraintModifier and TypeMethodDescriptionSet<SecretConstraint<? super T>>Purpose.getConstraints()Returns the set of constraints that should apply to any secrets that match this purpose.Methods in org.forgerock.secrets with parameters of type SecretConstraintModifier 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.