Class AbstractSessionValidator<C extends CredentialsManager,S extends SessionManager,R extends RememberManager>
java.lang.Object
rife.authentication.sessionvalidators.AbstractSessionValidator<C,S,R>
- All Implemented Interfaces:
SessionValidator<C,
S, R>
- Direct Known Subclasses:
BasicSessionValidator
public abstract class AbstractSessionValidator<C extends CredentialsManager,S extends SessionManager,R extends RememberManager>
extends Object
implements SessionValidator<C,S,R>
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.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves this validator's credentials manager.Retrieves this validator's "remember me" manager.Retrieves this validator's session manager.void
setCredentialsManager
(C credentialsManager) Set's this validator's credentials manager.void
setRememberManager
(R rememberManager) Set's this validator's "remember me" manager.void
setSessionManager
(S 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 rife.authentication.SessionValidator
isAccessAuthorized, validateSession
-
Field Details
-
SESSION_INVALID
public static final int SESSION_INVALIDPredefined return type for validateSession(): session is invalid- See Also:
-
SESSION_VALID
public static final int SESSION_VALIDPredefined return type for validateSession(): session is valid- See Also:
-
credentialsManager_
-
sessionManager_
-
rememberManager_
-
-
Constructor Details
-
AbstractSessionValidator
public AbstractSessionValidator()
-
-
Method Details
-
setCredentialsManager
Set's this validator's credentials manager.- Specified by:
setCredentialsManager
in interfaceSessionValidator<C extends CredentialsManager,
S extends SessionManager, R extends RememberManager> - Parameters:
credentialsManager
- theCredentialsManager
instance- Since:
- 1.0
-
getCredentialsManager
Retrieves this validator's credentials manager.- Specified by:
getCredentialsManager
in interfaceSessionValidator<C extends CredentialsManager,
S extends SessionManager, R extends RememberManager> - Returns:
- the requested
CredentialsManager
; ornull
if none has been set up yet - Since:
- 1.0
-
setSessionManager
Set's this validator's session manager.- Specified by:
setSessionManager
in interfaceSessionValidator<C extends CredentialsManager,
S extends SessionManager, R extends RememberManager> - Parameters:
sessionManager
- theSessionManager
instance- Since:
- 1.0
-
getSessionManager
Retrieves this validator's session manager.- Specified by:
getSessionManager
in interfaceSessionValidator<C extends CredentialsManager,
S extends SessionManager, R extends RememberManager> - Returns:
- the requested
SessionManager
; ornull
if none has been set up yet - Since:
- 1.0
-
setRememberManager
Set's this validator's "remember me" manager.- Specified by:
setRememberManager
in interfaceSessionValidator<C extends CredentialsManager,
S extends SessionManager, R extends RememberManager> - Parameters:
rememberManager
- theRememberManager
instance- Since:
- 1.0
-
getRememberManager
Retrieves this validator's "remember me" manager.- Specified by:
getRememberManager
in interfaceSessionValidator<C extends CredentialsManager,
S extends SessionManager, R extends RememberManager> - Returns:
- the requested
RememberManager
; ornull
if none has been set up yet - Since:
- 1.0
-