Uses of Interface
org.forgerock.secrets.SecretConstraint
-
Packages that use SecretConstraint Package Description org.forgerock.json.jose.utils Utility classes for JWT creation and manipulation.org.forgerock.secrets 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 SecretConstraint Modifier and Type Method Description static 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 SecretConstraint Modifier and Type Method Description static 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 SecretConstraint Modifier and Type Method Description Set<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 SecretConstraint Modifier and Type Method Description static <T extends Secret>
Purpose<T>Purpose. purpose(String label, Class<T> type, SecretConstraint<? super T>... constraints)
Constructs a purpose object.Purpose<T>
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.
-