org.surfnet.oaaas.noop
Class NoopUserConsentHandler
java.lang.Object
org.surfnet.oaaas.auth.AbstractFilter
org.surfnet.oaaas.auth.AbstractUserConsentHandler
org.surfnet.oaaas.noop.NoopUserConsentHandler
- All Implemented Interfaces:
- javax.servlet.Filter
public class NoopUserConsentHandler
- extends AbstractUserConsentHandler
A noop implementation of AbstractUserConsentHandler that
contains no consent handling but only fulfills the contract of the
UserConsentFilter. Useful for testing and demonstration purposes
only, of course not safe for production.
|
Method Summary |
void |
handleUserConsent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain,
String authStateValue,
String returnUri,
Client client)
Implement this method to perform the actual authentication. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoopUserConsentHandler
public NoopUserConsentHandler()
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
- Description copied from class:
AbstractUserConsentHandler
- Implement this method to perform the actual authentication. Use
FormUserConsentHandler as an example.
In general, the contract is:
assert that the user has granted consent. You can use the request and
response for this. When not yet granted consent:
When consent granted:
- Specified by:
handleUserConsent in class AbstractUserConsentHandler
- Parameters:
request - the ServletRequestresponse - the ServletResponsechain - the original http servlet filter chainauthStateValue - the authState nonce to set back on the ServletRequest when
donereturnUri - the startpoint of the chain if you want to return from a form or
other (external) componentclient - the Client wished to obtain an access token
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.