Class OAuth2DeviceAuthorizationEndpointConfigurer
java.lang.Object
org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OAuth2DeviceAuthorizationEndpointConfigurer
Configurer for the OAuth 2.0 Device Authorization Endpoint.
- Since:
- 1.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProviderused for authenticating anOAuth2DeviceAuthorizationRequestAuthenticationToken.authenticationProviders(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationProvider's allowing the ability to add, remove, or customize a specificAuthenticationProvider.voidconfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity builder) deviceAuthorizationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter deviceAuthorizationRequestConverter) Sets theAuthenticationConverterused when attempting to extract a Device Authorization Request fromHttpServletRequestto an instance ofOAuth2DeviceAuthorizationRequestAuthenticationTokenused for authenticating the request.deviceAuthorizationRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> deviceAuthorizationRequestConvertersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's allowing the ability to add, remove, or customize a specificAuthenticationConverter.deviceAuthorizationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler deviceAuthorizationResponseHandler) Sets theAuthenticationSuccessHandlerused for handling anOAuth2DeviceAuthorizationRequestAuthenticationTokenand returning theDevice Authorization Response.errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandlerused for handling anOAuth2AuthenticationExceptionand returning theError Response.protected final org.springframework.security.config.annotation.ObjectPostProcessor<Object>voidinit(org.springframework.security.config.annotation.web.builders.HttpSecurity builder) protected final <T> TpostProcess(T object) verificationUri(String verificationUri) Sets the end-user verificationURIon the authorization server.
-
Method Details
-
deviceAuthorizationRequestConverter
public OAuth2DeviceAuthorizationEndpointConfigurer deviceAuthorizationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter deviceAuthorizationRequestConverter) Sets theAuthenticationConverterused when attempting to extract a Device Authorization Request fromHttpServletRequestto an instance ofOAuth2DeviceAuthorizationRequestAuthenticationTokenused for authenticating the request.- Parameters:
deviceAuthorizationRequestConverter- theAuthenticationConverterused when attempting to extract a Device Authorization Request fromHttpServletRequest- Returns:
- the
OAuth2DeviceAuthorizationEndpointConfigurerfor further configuration
-
deviceAuthorizationRequestConverters
public OAuth2DeviceAuthorizationEndpointConfigurer deviceAuthorizationRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> deviceAuthorizationRequestConvertersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's allowing the ability to add, remove, or customize a specificAuthenticationConverter.- Parameters:
deviceAuthorizationRequestConvertersConsumer- theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's- Returns:
- the
OAuth2DeviceAuthorizationEndpointConfigurerfor further configuration
-
authenticationProvider
public OAuth2DeviceAuthorizationEndpointConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProviderused for authenticating anOAuth2DeviceAuthorizationRequestAuthenticationToken.- Parameters:
authenticationProvider- anAuthenticationProviderused for authenticating anOAuth2DeviceAuthorizationRequestAuthenticationToken- Returns:
- the
OAuth2DeviceAuthorizationEndpointConfigurerfor further configuration
-
authenticationProviders
public OAuth2DeviceAuthorizationEndpointConfigurer authenticationProviders(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationProvider's allowing the ability to add, remove, or customize a specificAuthenticationProvider.- Parameters:
authenticationProvidersConsumer- theConsumerproviding access to theListof default and (optionally) addedAuthenticationProvider's- Returns:
- the
OAuth2DeviceAuthorizationEndpointConfigurerfor further configuration
-
deviceAuthorizationResponseHandler
public OAuth2DeviceAuthorizationEndpointConfigurer deviceAuthorizationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler deviceAuthorizationResponseHandler) Sets theAuthenticationSuccessHandlerused for handling anOAuth2DeviceAuthorizationRequestAuthenticationTokenand returning theDevice Authorization Response.- Parameters:
deviceAuthorizationResponseHandler- theAuthenticationSuccessHandlerused for handling anOAuth2DeviceAuthorizationRequestAuthenticationToken- Returns:
- the
OAuth2DeviceAuthorizationEndpointConfigurerfor further configuration
-
errorResponseHandler
public OAuth2DeviceAuthorizationEndpointConfigurer errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandlerused for handling anOAuth2AuthenticationExceptionand returning theError Response.- Parameters:
errorResponseHandler- theAuthenticationFailureHandlerused for handling anOAuth2AuthenticationException- Returns:
- the
OAuth2DeviceAuthorizationEndpointConfigurerfor further configuration
-
verificationUri
Sets the end-user verificationURIon the authorization server.- Parameters:
verificationUri- the end-user verificationURIon the authorization server- Returns:
- the
OAuth2DeviceAuthorizationEndpointConfigurerfor further configuration
-
init
public void init(org.springframework.security.config.annotation.web.builders.HttpSecurity builder) -
configure
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity builder) -
postProcess
protected final <T> T postProcess(T object) -
getObjectPostProcessor
protected final org.springframework.security.config.annotation.ObjectPostProcessor<Object> getObjectPostProcessor()
-