Package com.nimbusds.jose.jwk.source
Class ImmutableJWKSet<C extends SecurityContext>
- java.lang.Object
-
- com.nimbusds.jose.jwk.source.ImmutableJWKSet<C>
-
- All Implemented Interfaces:
JWKSource<C>
- Direct Known Subclasses:
ImmutableSecret
@Immutable public class ImmutableJWKSet<C extends SecurityContext> extends 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 List<JWK>get(JWKSelector jwkSelector, C context)Retrieves a list of JWKs matching the specified selector.JWKSetgetJWKSet()Returns the JWK set.
-
-
-
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 benull.
-
-
Method Detail
-
get
public List<JWK> get(JWKSelector jwkSelector, C context)
Retrieves a list of JWKs matching the specified selector. The security context is ignored.- Specified by:
getin interfaceJWKSource<C extends SecurityContext>- Parameters:
jwkSelector- A JWK selector. Must not benull.context- Optional context,nullif not required.- Returns:
- The matching JWKs, empty list if no matches were found.
-
-