Class ServerX509AuthenticationConverter
java.lang.Object
org.springframework.security.web.server.authentication.ServerX509AuthenticationConverter
- All Implemented Interfaces:
ServerAuthenticationConverter
public class ServerX509AuthenticationConverter
extends Object
implements ServerAuthenticationConverter
Converts from a
SslInfo
provided by a request to an
PreAuthenticatedAuthenticationToken
that can be authenticated.- Since:
- 5.2
-
Field Summary
-
Constructor Summary
ConstructorDescriptionServerX509AuthenticationConverter
(X509PrincipalExtractor principalExtractor) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Authentication>
convert
(org.springframework.web.server.ServerWebExchange exchange) Converts aServerWebExchange
to anAuthentication
-
Field Details
-
logger
protected final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
ServerX509AuthenticationConverter
-
-
Method Details
-
convert
public reactor.core.publisher.Mono<Authentication> convert(org.springframework.web.server.ServerWebExchange exchange) Description copied from interface:ServerAuthenticationConverter
Converts aServerWebExchange
to anAuthentication
- Specified by:
convert
in interfaceServerAuthenticationConverter
- Parameters:
exchange
- TheServerWebExchange
- Returns:
- A
Mono
representing anAuthentication
-