org.surfnet.oaaas.consent
Class FormUserConsentHandler

java.lang.Object
  extended by org.surfnet.oaaas.auth.AbstractFilter
      extended by org.surfnet.oaaas.auth.AbstractUserConsentHandler
          extended by org.surfnet.oaaas.consent.FormUserConsentHandler
All Implemented Interfaces:
javax.servlet.Filter

@Named(value="formConsentHandler")
public class FormUserConsentHandler
extends AbstractUserConsentHandler

Example AbstractUserConsentHandler that forwards to a form.


Field Summary
 
Fields inherited from class org.surfnet.oaaas.auth.AbstractUserConsentHandler
CLIENT, GRANTED_SCOPES
 
Fields inherited from class org.surfnet.oaaas.auth.AbstractFilter
AUTH_STATE, RETURN_URI
 
Constructor Summary
FormUserConsentHandler()
           
 
Method Summary
protected  String getUserConsentDeniedUrl()
           
protected  String getUserConsentUrl()
          Return the path to the User Consent page.
 void handleUserConsent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain, String authStateValue, String returnUri, Client client)
           
 
Methods inherited from class org.surfnet.oaaas.auth.AbstractUserConsentHandler
destroy, doFilter, getClient, init, setGrantedScopes
 
Methods inherited from class org.surfnet.oaaas.auth.AbstractFilter
getAuthStateValue, getReturnUri, setAuthStateValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormUserConsentHandler

public FormUserConsentHandler()
Method Detail

handleUserConsent

public void handleUserConsent(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response,
                              javax.servlet.FilterChain chain,
                              String authStateValue,
                              String returnUri,
                              Client client)
                       throws IOException,
                              javax.servlet.ServletException
Specified by:
handleUserConsent in class AbstractUserConsentHandler
Throws:
IOException
javax.servlet.ServletException

getUserConsentUrl

protected String getUserConsentUrl()
Return the path to the User Consent page. Subclasses can use this hook by providing a custom html/jsp.

Returns:
the path to the User Consent page

getUserConsentDeniedUrl

protected String getUserConsentDeniedUrl()
Returns:


Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.