nl.surfnet.coin.api.controller
Class AccessConfirmationController
java.lang.Object
nl.surfnet.coin.api.controller.AccessConfirmationController
@Controller
@SessionAttributes(types=org.springframework.security.oauth2.provider.AuthorizationRequest.class)
public class AccessConfirmationController
- extends Object
Controller for retrieving the model for and displaying the confirmation page for access to a protected resource.
|
Method Summary |
org.springframework.web.servlet.ModelAndView |
getAccessConfirmation(javax.servlet.http.HttpServletRequest request,
org.springframework.security.oauth2.provider.AuthorizationRequest clientAuth)
|
static String |
getUrlWithLanguageParam(javax.servlet.http.HttpServletRequest request,
String lang)
get a new URL based on the given request, with a lang= parameter set to the given language |
org.springframework.web.servlet.ModelAndView |
handleError(javax.servlet.http.HttpServletRequest request)
|
void |
setClientDetailsService(org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccessConfirmationController
public AccessConfirmationController()
getAccessConfirmation
@RequestMapping(value="/oauth2/confirm_access")
public org.springframework.web.servlet.ModelAndView getAccessConfirmation(javax.servlet.http.HttpServletRequest request,
@ModelAttribute
org.springframework.security.oauth2.provider.AuthorizationRequest clientAuth)
throws Exception
- Throws:
Exception
handleError
@RequestMapping(value="/oauth/error")
public org.springframework.web.servlet.ModelAndView handleError(javax.servlet.http.HttpServletRequest request)
setClientDetailsService
@Autowired
public void setClientDetailsService(org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService)
getUrlWithLanguageParam
public static String getUrlWithLanguageParam(javax.servlet.http.HttpServletRequest request,
String lang)
- get a new URL based on the given request, with a lang= parameter set to the given language
- Parameters:
request - HttpServletRequestlang - the language
- Returns:
- String
Copyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.