Class OAuth2ResourceServerConfigurer.DPoPConfigurer
java.lang.Object
org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer.DPoPConfigurer
- Enclosing class:
OAuth2ResourceServerConfigurer<H extends HttpSecurityBuilder<H>>
A configurer for OAuth 2.0 Demonstrating Proof of Possession (DPoP) support.
- Since:
- 7.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticationConverter(org.springframework.security.web.authentication.AuthenticationConverter authenticationConverter) Sets theAuthenticationConverterused when attempting to extract a DPoP-bound access token fromHttpServletRequestto an instance ofDPoPAuthenticationTokenused for authenticating the DPoP-protected resource request.authenticationFailureHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler authenticationFailureHandler) Sets theAuthenticationFailureHandlerused for handling a failed DPoP-protected resource request.authenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler authenticationSuccessHandler) Sets theAuthenticationSuccessHandlerused for handling an authenticated DPoP-protected resource request.requestMatcher(org.springframework.security.web.util.matcher.RequestMatcher requestMatcher) Sets theRequestMatcherused when matching theHttpServletRequestto a DPoP-protected resource request.
-
Constructor Details
-
DPoPConfigurer
public DPoPConfigurer()
-
-
Method Details
-
requestMatcher
public OAuth2ResourceServerConfigurer<H>.DPoPConfigurer requestMatcher(org.springframework.security.web.util.matcher.RequestMatcher requestMatcher) Sets theRequestMatcherused when matching theHttpServletRequestto a DPoP-protected resource request.- Parameters:
requestMatcher- theRequestMatcherused when matching theHttpServletRequestto a DPoP-protected resource request- Returns:
- the
OAuth2ResourceServerConfigurer<H extends HttpSecurityBuilder<H>>.DPoPConfigurerfor further configuration
-
authenticationConverter
public OAuth2ResourceServerConfigurer<H>.DPoPConfigurer authenticationConverter(org.springframework.security.web.authentication.AuthenticationConverter authenticationConverter) Sets theAuthenticationConverterused when attempting to extract a DPoP-bound access token fromHttpServletRequestto an instance ofDPoPAuthenticationTokenused for authenticating the DPoP-protected resource request. The default isDPoPAuthenticationConverter.- Parameters:
authenticationConverter- theAuthenticationConverterused when attempting to extract a DPoP-bound access token fromHttpServletRequest- Returns:
- the
OAuth2ResourceServerConfigurer<H extends HttpSecurityBuilder<H>>.DPoPConfigurerfor further configuration
-
authenticationSuccessHandler
public OAuth2ResourceServerConfigurer<H>.DPoPConfigurer authenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler authenticationSuccessHandler) Sets theAuthenticationSuccessHandlerused for handling an authenticated DPoP-protected resource request.- Parameters:
authenticationSuccessHandler- theAuthenticationSuccessHandlerused for handling an authenticated DPoP-protected resource request- Returns:
- the
OAuth2ResourceServerConfigurer<H extends HttpSecurityBuilder<H>>.DPoPConfigurerfor further configuration
-
authenticationFailureHandler
public OAuth2ResourceServerConfigurer<H>.DPoPConfigurer authenticationFailureHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler authenticationFailureHandler) Sets theAuthenticationFailureHandlerused for handling a failed DPoP-protected resource request. The default isAuthenticationEntryPointFailureHandlerwithDPoPAuthenticationEntryPoint.- Parameters:
authenticationFailureHandler- theAuthenticationFailureHandlerused for handling a failed DPoP-protected resource request- Returns:
- the
OAuth2ResourceServerConfigurer<H extends HttpSecurityBuilder<H>>.DPoPConfigurerfor further configuration
-