Class TokenAuthenticationConverter
java.lang.Object
es.kukenan.smartfi.microservice.webfluxconfig.configuration.security.TokenAuthenticationConverter
- All Implemented Interfaces:
org.springframework.security.web.server.authentication.ServerAuthenticationConverter
public class TokenAuthenticationConverter
extends Object
implements org.springframework.security.web.server.authentication.ServerAuthenticationConverter
Token authentication converter.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<org.springframework.security.core.Authentication>convert(org.springframework.web.server.ServerWebExchange exchange) private StringgetTokenFromRequest(org.springframework.http.HttpHeaders httpHeaders)
-
Field Details
-
jwtService
JWT service.
-
-
Constructor Details
-
TokenAuthenticationConverter
Constructor.- Parameters:
jwtService- JWT service.
-
-
Method Details
-
convert
public reactor.core.publisher.Mono<org.springframework.security.core.Authentication> convert(org.springframework.web.server.ServerWebExchange exchange) - Specified by:
convertin interfaceorg.springframework.security.web.server.authentication.ServerAuthenticationConverter
-
getTokenFromRequest
-