public class KeyMasterAuthenticator extends OpenAuthenticator
Constructor and Description |
---|
KeyMasterAuthenticator() |
Modifier and Type | Method and Description |
---|---|
AuthenticationResult |
checkUser(UserSession session)
If the user is in our list of KeyMaster users then check the password is a valid token,
otherwise delegate to the superclass
|
void |
initialise(SessionManager sessionManager,
DelayedResultReceiver delayedResultReceiver,
ServerNode serverNode,
java.lang.String loggerName)
Store the sessionManager for use when checking tokens
|
authoriseHTTP, checkPermissionUpdate, checkRead, checkUpdate, checkWrite, discardObject, globalPermissionUpdate, mapObject, newObject, releaseObject, releaseUser, requestObject, shutdown
public void initialise(SessionManager sessionManager, DelayedResultReceiver delayedResultReceiver, ServerNode serverNode, java.lang.String loggerName)
initialise
in interface Authenticator
initialise
in class OpenAuthenticator
sessionManager
- a SessionManager
instance that can be used for invalidating and ejecting user sessions in the Liberator.delayedResultReceiver
- a DelayedResultReceiver
instance that can be used for sending delayed authentication results after an AuthenticationResult.DELAYED
is used.serverNode
- a ServerNode
instance that provides access to information about the server and its session count.loggerName
- the name of the logger that provides native logging output to the Liberator's auth log file (by default auth-rttpd.log).public AuthenticationResult checkUser(UserSession session)
checkUser
in interface Authenticator
checkUser
in class OpenAuthenticator
session
- the UserSession
object containing information about the user and their login details.AuthenticationResult
instance - usually AuthenticationResult.OK
, AuthenticationResult.DENY
or one of the specific failure results such as
AuthenticationResult.INVALID_USER
.OpenAuthenticator.checkUser(com.caplin.server.auth.UserSession)
Please send bug reports and comments to Caplin support