org.surfnet.oaaas.auth
Class AbstractFilter

java.lang.Object
  extended by org.surfnet.oaaas.auth.AbstractFilter
All Implemented Interfaces:
javax.servlet.Filter
Direct Known Subclasses:
AbstractAuthenticator, AbstractUserConsentHandler

public abstract class AbstractFilter
extends Object
implements javax.servlet.Filter

Shared functionality of the different authorization and userconsent Filters


Field Summary
static String AUTH_STATE
          The constant used to keep 'session' state when we give flow control to the authenticator filter.
static String RETURN_URI
          Constant to get the return uri when the control should be returned to the implementor
 
Constructor Summary
AbstractFilter()
           
 
Method Summary
 String getAuthStateValue(javax.servlet.ServletRequest request)
          Get the attribute value that serves as session state.
 String getReturnUri(javax.servlet.ServletRequest request)
           
protected  void setAuthStateValue(javax.servlet.ServletRequest request, String authState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Filter
destroy, doFilter, init
 

Field Detail

RETURN_URI

public static final String RETURN_URI
Constant to get the return uri when the control should be returned to the implementor

See Also:
Constant Field Values

AUTH_STATE

public static final String AUTH_STATE
The constant used to keep 'session' state when we give flow control to the authenticator filter. Part of the contract with the authenticator Filter is that we expect to get the value back when authentication is done.

See Also:
Constant Field Values
Constructor Detail

AbstractFilter

public AbstractFilter()
Method Detail

getAuthStateValue

public final String getAuthStateValue(javax.servlet.ServletRequest request)
Get the attribute value that serves as session state.

Parameters:
request - the HttpServletRequest

getReturnUri

public final String getReturnUri(javax.servlet.ServletRequest request)

setAuthStateValue

protected final void setAuthStateValue(javax.servlet.ServletRequest request,
                                       String authState)


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