Package org.forgerock.secrets.jwkset
Class JwkSetSecretStore.JwkPredicates
java.lang.Object
org.forgerock.secrets.jwkset.JwkSetSecretStore.JwkPredicates
- Enclosing class:
- JwkSetSecretStore
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JwkPredicates
public JwkPredicates()
-
-
Method Details
-
keyUse
Returns a predicate that matches a JWK based on its key use -use
. If bothkeyUse
and theJWK
s key use arenull
then this is considered to be a match.Note that this
Predicate
is specifically intended to prevent cross-protocol use when applied to aPurpose
.- Parameters:
keyUse
- the key use to match- Returns:
- a predicate matching on key use
-
keyOpsContains
Returns a predicate that matches a JWK based on its key operations -key_ops
. If bothkeyOp
and theJWK
s key operations arenull
then this is considered to be a match. If there areJWK key operations
, then thekeyOp
must be contained in them to match- Parameters:
keyOp
- the key operation to match (contained)- Returns:
- a predicate matching on key operation containment
-