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:
- 2016-04-10
- Author:
- Vladimir Dzhuvinov
-
-
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.JWKSet
getJWKSet()
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:
get
in interfaceJWKSource<C extends SecurityContext>
- Parameters:
jwkSelector
- A JWK selector. Must not benull
.context
- Optional context,null
if not required.- Returns:
- The matching JWKs, empty list if no matches were found.
-
-