Class BearerTokenServerAuthenticationEntryPoint
- java.lang.Object
-
- org.springframework.security.oauth2.server.resource.web.server.BearerTokenServerAuthenticationEntryPoint
-
- All Implemented Interfaces:
org.springframework.security.web.server.ServerAuthenticationEntryPoint
public final class BearerTokenServerAuthenticationEntryPoint extends java.lang.Object implements org.springframework.security.web.server.ServerAuthenticationEntryPointAnAuthenticationEntryPointimplementation used to commence authentication of protected resource requests usingBearerTokenAuthenticationFilter.Uses information provided by
BearerTokenErrorto set HTTP response status code and populateWWW-AuthenticateHTTP header.- Since:
- 5.1
- See Also:
BearerTokenError, RFC 6750 Section 3: The WWW-Authenticate Response Header Field
-
-
Constructor Summary
Constructors Constructor Description BearerTokenServerAuthenticationEntryPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>commence(org.springframework.web.server.ServerWebExchange exchange, org.springframework.security.core.AuthenticationException authException)voidsetRealmName(java.lang.String realmName)
-
-
-
Method Detail
-
setRealmName
public void setRealmName(java.lang.String realmName)
-
commence
public reactor.core.publisher.Mono<java.lang.Void> commence(org.springframework.web.server.ServerWebExchange exchange, org.springframework.security.core.AuthenticationException authException)- Specified by:
commencein interfaceorg.springframework.security.web.server.ServerAuthenticationEntryPoint
-
-