Class JWKSelector


  • @Immutable
    public final class JWKSelector
    extends java.lang.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.
      java.util.List<JWK> select​(JWKSet jwkSet)
      Selects the keys from the specified JWK set according to the matcher's criteria.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JWKSelector

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

      • getMatcher

        public JWKMatcher getMatcher()
        Returns the JWK matcher.
        Returns:
        The JWK matcher.
      • select

        public java.util.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.