Interface ServerAuthenticationConverter
-
- All Known Implementing Classes:
ServerBearerTokenAuthenticationConverter
,ServerFormLoginAuthenticationConverter
,ServerHttpBasicAuthenticationConverter
,ServerOAuth2AuthorizationCodeAuthenticationTokenConverter
,ServerX509AuthenticationConverter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ServerAuthenticationConverter
A strategy used for converting from aServerWebExchange
to anAuthentication
used for authenticating with a providedReactiveAuthenticationManager
. If the result isMono.empty()
, then it signals that no authentication attempt should be made.- Since:
- 5.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<Authentication>
convert(org.springframework.web.server.ServerWebExchange exchange)
Converts aServerWebExchange
to anAuthentication
-
-
-
Method Detail
-
convert
reactor.core.publisher.Mono<Authentication> convert(org.springframework.web.server.ServerWebExchange exchange)
Converts aServerWebExchange
to anAuthentication
- Parameters:
exchange
- TheServerWebExchange
- Returns:
- A
Mono
representing anAuthentication
-
-