Package com.caplin.server.auth
Class AuthenticationUser
java.lang.Object
com.caplin.server.auth.AuthenticationUser
Represents a user that is connected to the Liberator and attempting to be authenticated.
An instance of an AuthenticationUser is held by a UserSession
object that is passed to
one of the Authenticator
interface methods.
An AuthenticationUser instance is also passed directly to Authenticator.authoriseHTTP(com.caplin.server.auth.AuthenticationUser)
as this
is a one-off operation that doesn't have a session associated with it.
-
Method Summary
Modifier and TypeMethodDescriptionThe textual key string or password that has been provided by the client for authorisation.int
Get the number of active sessions in the Liberator for this userGet the TOBO usernamegetTokenParameter
(String paramName) Get fields from a KeyMaster tokenThe user name provided by the client for authorisationvoid
Clear the TOBO username for this uservoid
setToboUser
(String toboUser) Set the TOBO usernametoString()
-
Method Details
-
getPassword
The textual key string or password that has been provided by the client for authorisation.- Returns:
- the password provided for authorisation
-
getUserName
The user name provided by the client for authorisation- Returns:
- the user name provided for authorisation
-
setToboUser
Set the TOBO username- Parameters:
toboUser
- The TOBO username The tobouser can be referenced via %t in static object-map configuration directives
-
resetToboUser
public void resetToboUser()Clear the TOBO username for this user -
getToboUser
Get the TOBO username- Returns:
- The TOBO username (or null if not defined)
-
getTokenParameter
Get fields from a KeyMaster token- Parameters:
paramName
- The name of the parameter whose associated value is to be returned- Returns:
- The associated value or null
-
getSessionCount
public int getSessionCount()Get the number of active sessions in the Liberator for this user- Returns:
- the number of active sessions
-
toString
-