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 bothkeyUseand theJWKs key use arenullthen this is considered to be a match.Note that this
Predicateis 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 bothkeyOpand theJWKs key operations arenullthen this is considered to be a match. If there areJWK key operations, then thekeyOpmust be contained in them to match- Parameters:
keyOp- the key operation to match (contained)- Returns:
- a predicate matching on key operation containment
-