public class DefaultResponseTypesHandler extends Object implements ResponseTypesHandler
| Constructor and Description |
|---|
DefaultResponseTypesHandler(TokenGranter tokenGranter,
OAuth2RequestFactory oAuth2RequestFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandleResponseTypes(Set<String> responseTypes)
Fail-fast method for finding out if the set of responses can be handled by this ResponseTypesHandler
|
org.springframework.web.servlet.ModelAndView |
handleApprovedAuthorizationRequest(Set<String> responseTypes,
AuthorizationRequest authorizationRequest,
org.springframework.security.core.Authentication authentication,
AuthorizationCodeServices authorizationCodeServices)
Handle the authorization request for the given responseTypes
|
protected org.springframework.web.servlet.ModelAndView |
handleUnsupportedResponseType(Set<String> responseTypes,
AuthorizationRequest authorizationRequest,
org.springframework.security.core.Authentication authentication) |
void |
setAuthorizationRequestViewResolver(AuthorizationRequestViewResolver authorizationRequestViewResolver) |
void |
setOAuth2RequestFactory(OAuth2RequestFactory oAuth2RequestFactory) |
void |
setTokenGranter(TokenGranter tokenGranter) |
public DefaultResponseTypesHandler(TokenGranter tokenGranter, OAuth2RequestFactory oAuth2RequestFactory)
public boolean canHandleResponseTypes(Set<String> responseTypes)
ResponseTypesHandlercanHandleResponseTypes in interface ResponseTypesHandlerresponseTypes - the response types of an authorize requestpublic org.springframework.web.servlet.ModelAndView handleApprovedAuthorizationRequest(Set<String> responseTypes, AuthorizationRequest authorizationRequest, org.springframework.security.core.Authentication authentication, AuthorizationCodeServices authorizationCodeServices) throws OAuth2Exception
ResponseTypesHandlerhandleApprovedAuthorizationRequest in interface ResponseTypesHandlerresponseTypes - the reponse types requested by the authorizationauthorizationRequest - the approved AuthorizationRequestauthentication - the authenticated userauthorizationCodeServices - responsible for creating the authorization codeOAuth2Exceptionprotected org.springframework.web.servlet.ModelAndView handleUnsupportedResponseType(Set<String> responseTypes, AuthorizationRequest authorizationRequest, org.springframework.security.core.Authentication authentication)
public void setTokenGranter(TokenGranter tokenGranter)
public void setOAuth2RequestFactory(OAuth2RequestFactory oAuth2RequestFactory)
public void setAuthorizationRequestViewResolver(AuthorizationRequestViewResolver authorizationRequestViewResolver)
Copyright © 2017. All rights reserved.