Package com.nimbusds.jose.jwk
Class JWKSelector
- java.lang.Object
-
- com.nimbusds.jose.jwk.JWKSelector
-
@Immutable public final class JWKSelector extends Object
Selects (filters) one or more JSON Web Keys (JWKs) from a JWK set.- Version:
- 2015-04-15
- Author:
- Vladimir Dzhuvinov
-
-
Constructor Summary
Constructors Constructor Description JWKSelector(JWKMatcher matcher)
Creates a new JWK selector (filter).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JWKMatcher
getMatcher()
Returns the JWK matcher.List<JWK>
select(JWKSet jwkSet)
Selects the keys from the specified JWK set according to the matcher's criteria.
-
-
-
Constructor Detail
-
JWKSelector
public JWKSelector(JWKMatcher matcher)
Creates a new JWK selector (filter).- Parameters:
matcher
- Specifies the JWK matching criteria. Must not benull
.
-
-
Method Detail
-
getMatcher
public JWKMatcher getMatcher()
Returns the JWK matcher.- Returns:
- The JWK matcher.
-
-