com.uwyn.rife.authentication.sessionvalidators
Class AbstractSessionValidator

java.lang.Object
  extended by com.uwyn.rife.authentication.sessionvalidators.AbstractSessionValidator
All Implemented Interfaces:
SessionValidator
Direct Known Subclasses:
BasicSessionValidator

public abstract class AbstractSessionValidator
extends Object
implements SessionValidator

Convenience superclass for SessionValidator implementations. This provides simple getters and setters for the various properties that can be set on a session validator.

Since:
1.6
Version:
$Revision: $
Author:
Steven Grimm (koreth[remove] at midwinter dot com), Geert Bevin (gbevin[remove] at uwyn dot com)

Field Summary
protected  CredentialsManager mCredentialsManager
           
protected  RememberManager mRememberManager
           
protected  SessionManager mSessionManager
           
static int SESSION_INVALID
          Predefined return type for validateSession(): session is invalid
static int SESSION_VALID
          Predefined return type for validateSession(): session is valid
 
Constructor Summary
AbstractSessionValidator()
           
 
Method Summary
 CredentialsManager getCredentialsManager()
          Retrieves this validator's credentials manager.
 RememberManager getRememberManager()
          Retrieves this validator's "remember me" manager.
 SessionManager getSessionManager()
          Retrieves this validator's session manager.
 void setCredentialsManager(CredentialsManager credentialsManager)
          Set's this validator's credentials manager.
 void setRememberManager(RememberManager rememberManager)
          Set's this validator's "remember me" manager.
 void setSessionManager(SessionManager sessionManager)
          Set's this validator's session manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.uwyn.rife.authentication.SessionValidator
isAccessAuthorized, validateSession
 

Field Detail

SESSION_INVALID

public static final int SESSION_INVALID
Predefined return type for validateSession(): session is invalid

See Also:
Constant Field Values

SESSION_VALID

public static final int SESSION_VALID
Predefined return type for validateSession(): session is valid

See Also:
Constant Field Values

mCredentialsManager

protected CredentialsManager mCredentialsManager

mSessionManager

protected SessionManager mSessionManager

mRememberManager

protected RememberManager mRememberManager
Constructor Detail

AbstractSessionValidator

public AbstractSessionValidator()
Method Detail

setCredentialsManager

public void setCredentialsManager(CredentialsManager credentialsManager)
Set's this validator's credentials manager.

Specified by:
setCredentialsManager in interface SessionValidator
Parameters:
credentialsManager - the CredentialsManager instance
Since:
1.6

getCredentialsManager

public CredentialsManager getCredentialsManager()
Retrieves this validator's credentials manager.

Specified by:
getCredentialsManager in interface SessionValidator
Returns:
the requested CredentialsManager; or null if none has been setup yet
Since:
1.6

setSessionManager

public void setSessionManager(SessionManager sessionManager)
Set's this validator's session manager.

Specified by:
setSessionManager in interface SessionValidator
Parameters:
sessionManager - the SessionManager instance
Since:
1.6

getSessionManager

public SessionManager getSessionManager()
Retrieves this validator's session manager.

Specified by:
getSessionManager in interface SessionValidator
Returns:
the requested SessionManager; or null if none has been setup yet
Since:
1.6

setRememberManager

public void setRememberManager(RememberManager rememberManager)
Set's this validator's "remember me" manager.

Specified by:
setRememberManager in interface SessionValidator
Parameters:
rememberManager - the RememberManager instance
Since:
1.6

getRememberManager

public RememberManager getRememberManager()
Retrieves this validator's "remember me" manager.

Specified by:
getRememberManager in interface SessionValidator
Returns:
the requested RememberManager; or null if none has been setup yet
Since:
1.6


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.