Class 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 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

      • select

        public List<JWKselect​(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.