Class DPoPAuthenticationEntryPoint
java.lang.Object
org.springframework.security.oauth2.server.resource.web.DPoPAuthenticationEntryPoint
- All Implemented Interfaces:
AuthenticationEntryPoint
An
AuthenticationEntryPoint implementation used to commence authentication for
DPoP-protected resource requests.- Since:
- 7.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authenticationException) Commences an authentication scheme.
-
Constructor Details
-
DPoPAuthenticationEntryPoint
public DPoPAuthenticationEntryPoint()
-
-
Method Details
-
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authenticationException) Description copied from interface:AuthenticationEntryPointCommences an authentication scheme.ExceptionTranslationFilterwill populate theHttpSessionattribute namedAbstractAuthenticationProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEYwith the requested target URL before calling this method.Implementations should modify the headers on the
ServletResponseas necessary to commence the authentication process.- Specified by:
commencein interfaceAuthenticationEntryPoint- Parameters:
request- that resulted in anAuthenticationExceptionresponse- so that the user agent can begin authenticationauthenticationException- that caused the invocation
-