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 Details

    • JWKSelector

      public JWKSelector(JWKMatcher matcher)
      Creates a new JWK selector (filter).
      Parameters:
      matcher - Specifies the JWK matching criteria. Must not be null.
  • Method Details

    • getMatcher

      Returns the JWK matcher.
      Returns:
      The JWK matcher.
    • select

      public List<JWK> select(JWKSet jwkSet)
      Selects the keys from the specified JWK set according to the matcher's criteria.
      Parameters:
      jwkSet - The JWK set. May be null.
      Returns:
      The selected keys, ordered by their position in the JWK set, empty list if none were matched or the JWK is null.