public final class ReactiveOidcIdTokenDecoderFactory extends java.lang.Object implements ReactiveJwtDecoderFactory<ClientRegistration>
factory
that provides a ReactiveJwtDecoder
used for OidcIdToken
signature verification.
The provided ReactiveJwtDecoder
is associated to a specific ClientRegistration
.ReactiveJwtDecoderFactory
,
ClientRegistration
,
OidcIdToken
Constructor and Description |
---|
ReactiveOidcIdTokenDecoderFactory() |
Modifier and Type | Method and Description |
---|---|
ReactiveJwtDecoder |
createDecoder(ClientRegistration clientRegistration)
Creates a
ReactiveJwtDecoder using the supplied "contextual" type. |
void |
setJwsAlgorithmResolver(java.util.function.Function<ClientRegistration,JwsAlgorithm> jwsAlgorithmResolver)
Sets the resolver that provides the expected
JWS algorithm
used for the signature or MAC on the ID Token . |
void |
setJwtValidatorFactory(java.util.function.Function<ClientRegistration,OAuth2TokenValidator<Jwt>> jwtValidatorFactory)
Sets the factory that provides an
OAuth2TokenValidator , which is used by the ReactiveJwtDecoder . |
public ReactiveJwtDecoder createDecoder(ClientRegistration clientRegistration)
ReactiveJwtDecoderFactory
ReactiveJwtDecoder
using the supplied "contextual" type.createDecoder
in interface ReactiveJwtDecoderFactory<ClientRegistration>
clientRegistration
- the type that provides contextual informationReactiveJwtDecoder
public final void setJwtValidatorFactory(java.util.function.Function<ClientRegistration,OAuth2TokenValidator<Jwt>> jwtValidatorFactory)
OAuth2TokenValidator
, which is used by the ReactiveJwtDecoder
.
The default is OidcIdTokenValidator
.jwtValidatorFactory
- the factory that provides an OAuth2TokenValidator
public final void setJwsAlgorithmResolver(java.util.function.Function<ClientRegistration,JwsAlgorithm> jwsAlgorithmResolver)
JWS algorithm
used for the signature or MAC on the ID Token
.
The default resolves to RS256
for all clients
.jwsAlgorithmResolver
- the resolver that provides the expected JWS algorithm
for a specific client