Package com.nimbusds.jose.jwk
Class JWKSelector
java.lang.Object
com.nimbusds.jose.jwk.JWKSelector
Selects (filters) one or more JSON Web Keys (JWKs) from a JWK set.
- Version:
- 2015-04-15
- Author:
- Vladimir Dzhuvinov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the JWK matcher.Selects the keys from the specified JWK set according to the matcher's criteria.
-
Constructor Details
-
JWKSelector
Creates a new JWK selector (filter).- Parameters:
matcher- Specifies the JWK matching criteria. Must not benull.
-
-
Method Details
-
getMatcher
Returns the JWK matcher.- Returns:
- The JWK matcher.
-
select
Selects the keys from the specified JWK set according to the matcher's criteria.- Parameters:
jwkSet- The JWK set. May benull.- Returns:
- The selected keys, ordered by their position in the JWK set,
empty list if none were matched or the JWK is
null.
-