Class SupplierReactiveJwtDecoder
- java.lang.Object
-
- org.springframework.security.oauth2.jwt.SupplierReactiveJwtDecoder
-
- All Implemented Interfaces:
ReactiveJwtDecoder
public final class SupplierReactiveJwtDecoder extends java.lang.Object implements ReactiveJwtDecoder
AReactiveJwtDecoder
that lazily initializes anotherReactiveJwtDecoder
- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description SupplierReactiveJwtDecoder(java.util.function.Supplier<ReactiveJwtDecoder> supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<Jwt>
decode(java.lang.String token)
Decodes the JWT from it's compact claims representation format and returns aJwt
.
-
-
-
Constructor Detail
-
SupplierReactiveJwtDecoder
public SupplierReactiveJwtDecoder(java.util.function.Supplier<ReactiveJwtDecoder> supplier)
-
-
Method Detail
-
decode
public reactor.core.publisher.Mono<Jwt> decode(java.lang.String token) throws JwtException
Decodes the JWT from it's compact claims representation format and returns aJwt
.- Specified by:
decode
in interfaceReactiveJwtDecoder
- Parameters:
token
- the JWT value- Returns:
- a
Jwt
- Throws:
JwtException
- if an error occurs while attempting to decode the JWT
-
-