Class ImmutableJWKSet<C extends SecurityContext>

  • All Implemented Interfaces:
    JWKSource<C>
    Direct Known Subclasses:
    ImmutableSecret

    @Immutable
    public class ImmutableJWKSet<C extends SecurityContext>
    extends java.lang.Object
    implements JWKSource<C>
    JSON Web Key (JWK) source backed by an immutable JWK set.
    Version:
    2022-08-24
    Author:
    Vladimir Dzhuvinov, Thomas Rørvik Skjølberg
    • Constructor Summary

      Constructors 
      Constructor Description
      ImmutableJWKSet​(JWKSet jwkSet)
      Creates a new JWK source backed by an immutable JWK set.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<JWK> get​(JWKSelector jwkSelector, C context)
      Retrieves a list of JWKs matching the specified selector.
      JWKSet getJWKSet()
      Returns the JWK set.
      • Methods inherited from class java.lang.Object

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

      • ImmutableJWKSet

        public ImmutableJWKSet​(JWKSet jwkSet)
        Creates a new JWK source backed by an immutable JWK set.
        Parameters:
        jwkSet - The JWK set. Must not be null.
    • Method Detail

      • getJWKSet

        public JWKSet getJWKSet()
        Returns the JWK set.
        Returns:
        The JWK set.
      • get

        public java.util.List<JWK> get​(JWKSelector jwkSelector,
                                       C context)
        Retrieves a list of JWKs matching the specified selector. The security context is ignored.
        Specified by:
        get in interface JWKSource<C extends SecurityContext>
        Parameters:
        jwkSelector - A JWK selector. Must not be null.
        context - Optional context, null if not required.
        Returns:
        The matching JWKs, empty list if no matches were found.