Package org.forgerock.json.jose.utils
Class JoseSecretConstraints
java.lang.Object
org.forgerock.json.jose.utils.JoseSecretConstraints
Set of 
SecretConstraints for filtering Secrets.- 
Method Summary
Modifier and TypeMethodDescriptionstatic SecretConstraint<CryptoKey>allowedAlgorithm(Algorithm algorithm) Enforces that the key is allowed to be used with the given JWA algorithm. 
- 
Method Details
- 
allowedAlgorithm
Enforces that the key is allowed to be used with the given JWA algorithm.Both JCA and JWA equivalent algorithm names are tested against
CryptoKey.allowsAlgorithm(String).- Parameters:
 algorithm- the JWA algorithm to check compatibility with.- Returns:
 - a constraint that enforces that keys are allowed to be used with the given algorithm.
 
 
 -