Class BearerTokenServerAuthenticationEntryPoint

  • All Implemented Interfaces:
    org.springframework.security.web.server.ServerAuthenticationEntryPoint

    public final class BearerTokenServerAuthenticationEntryPoint
    extends java.lang.Object
    implements org.springframework.security.web.server.ServerAuthenticationEntryPoint
    An AuthenticationEntryPoint implementation used to commence authentication of protected resource requests using BearerTokenAuthenticationFilter.

    Uses information provided by BearerTokenError to set HTTP response status code and populate WWW-Authenticate HTTP header.

    Since:
    5.1
    See Also:
    BearerTokenError, RFC 6750 Section 3: The WWW-Authenticate Response Header Field
    • 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)  
      void setRealmName​(java.lang.String realmName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BearerTokenServerAuthenticationEntryPoint

        public BearerTokenServerAuthenticationEntryPoint()
    • 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:
        commence in interface org.springframework.security.web.server.ServerAuthenticationEntryPoint