Package de.elo.ix.client
Class IXAuthenticationNormalized
java.lang.Object
de.elo.ix.client.IXAuthenticationWrapper
de.elo.ix.client.IXAuthenticationNormalized
- All Implemented Interfaces:
byps.BAuthentication
,IXAuthenticationIF
A
IXAuthenticationIF
implementation for normalized IXConnection
.-
Field Summary
Fields inherited from interface de.elo.ix.client.IXAuthenticationIF
LOGIN_FOR_PUBLIC_ENCR_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionIXAuthenticationNormalized
(IXConnection baseConnection, IXAuthenticationIF baseAuthentication, ClientInfo clientInfo) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticate
(byps.BClient bclientN, byps.BAsyncResult<Boolean> asyncResult) Authenticate the current user.Type of this authentication object.This object is implicitly passed to each Indexserver request and contains the authentication ticket.protected IXAuthenticationIF
Return the encapsulated authentication object.Return IXID defined in Indexserver options.LoginResult
received from Indexserver as the result of authentication.Server time.void
getSession
(byps.BClient client, int typeId, byps.BAsyncResult<Object> asyncResult) Return the object representing the current session.Return IX version.protected ClientInfo
normalize
(ClientInfo clientInfo) Copy the given object and the locale information to en_US and timezone UTC.Methods inherited from class de.elo.ix.client.IXAuthenticationWrapper
addListener, encryptPassword, fromSessOptsObj, getDatabaseEngine, getEncryptionPasswords, getSessionOptions, isExpired, isReloginException, makeSessOptsObj, needAlive, removeListener, setLoginResult
-
Constructor Details
-
IXAuthenticationNormalized
public IXAuthenticationNormalized(IXConnection baseConnection, IXAuthenticationIF baseAuthentication, ClientInfo clientInfo) Constructor.- Parameters:
baseConnection
- Base connection on which the normalized connection is build.baseAuthentication
- Authentication object of baseConnection.clientInfo
- Language, country and timezone are taken from this object to compose the result ofgetClientInfo()
.
-
-
Method Details
-
getInnerAuthentication
Return the encapsulated authentication object.- Specified by:
getInnerAuthentication
in classIXAuthenticationWrapper
- Returns:
- Authentication object
-
authenticate
Authenticate the current user.- Specified by:
authenticate
in interfacebyps.BAuthentication
- Overrides:
authenticate
in classIXAuthenticationWrapper
- Parameters:
bclientN
- BClient objectasyncResult
- Result object, only the exception is evaluated.
-
getSession
Return the object representing the current session. This object will be passed to every request class (e.g. BRequest_functionname) for remote interfaces tagged with @BSessionParamType. If the function throws an exception, the isReloginException and maybe the authentication functions are called before the current method request is sent.- Specified by:
getSession
in interfacebyps.BAuthentication
- Overrides:
getSession
in classIXAuthenticationWrapper
- Parameters:
client
- BClient objecttypeId
- Type ID (serialVersionUID) of the last request class, seeBAuthentication.isReloginException(BClient, Throwable, int)
.asyncResult
- This object receives the session object or an exception.- See Also:
-
BMethodRequest.setSession(Object)
-
getClientInfo
This object is implicitly passed to each Indexserver request and contains the authentication ticket.- Returns:
- ClientInfo
-
getLoginResult
LoginResult
received from Indexserver as the result of authentication.- Specified by:
getLoginResult
in interfaceIXAuthenticationIF
- Overrides:
getLoginResult
in classIXAuthenticationWrapper
- Returns:
- LoginResult
-
getAuthenticationType
Type of this authentication object.- Specified by:
getAuthenticationType
in interfaceIXAuthenticationIF
- Overrides:
getAuthenticationType
in classIXAuthenticationWrapper
- Returns:
- Authentication type
-
getVersion
Description copied from interface:IXAuthenticationIF
Return IX version.- Returns:
- IX version. EIX-2519
-
getServerTime
Description copied from interface:IXAuthenticationIF
Server time. EIX-2519- Returns:
- Server time
-
normalize
Copy the given object and the locale information to en_US and timezone UTC.- Parameters:
clientInfo
- ClientInfo object- Returns:
- ClientInfo object with the same
ClientInfo.ticket
and normalized locale and timezone.
-
getInstanceName
Description copied from interface:IXAuthenticationIF
Return IXID defined in Indexserver options.- Returns:
- Instance name
-