Package de.elo.ix.client
Interface IXAuthenticationIF
- All Superinterfaces:
byps.BAuthentication
- All Known Implementing Classes:
IXAuthentication
,IXAuthenticationNormalized
,IXAuthenticationWrapper
public interface IXAuthenticationIF
extends byps.BAuthentication
Interface used as abstraction for authentication logic.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Constant used as user name inIXServicePortIF.login(ClientInfo, String, String, String, String)
to receive the public key for password encryption. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(IXAuthenticationListener listener) Add a listener that is called on re-login.encryptPassword
(String text) Encrypt the given text before sending over the wire.void
Store provided SessionOptions object in current session options.Type of this authentication object.This object is implicitly passed to each Indexserver request and contains the authentication ticket.Get database engine name.Reserved.Return IXID defined in Indexserver options.LoginResult
received from Indexserver as the result of authentication.Server time.Return session options.Return IX version.boolean
Check whether the current sessionClientInfo.ticket
is expired.Build SessionOptions object from current session options.boolean
Check whether the current sessionClientInfo.ticket
needs to be renewed.void
removeListener
(IXAuthenticationListener listener) Remove a listener that was previously set byaddListener(IXAuthenticationListener)
.void
setLoginResult
(LoginResult loginResult) Called after authentication to pass theLoginResult
.Methods inherited from interface byps.BAuthentication
authenticate, getSession, isReloginException
-
Field Details
-
LOGIN_FOR_PUBLIC_ENCR_KEY
Constant used as user name inIXServicePortIF.login(ClientInfo, String, String, String, String)
to receive the public key for password encryption. EIX-3303- See Also:
-
-
Method Details
-
getLoginResult
LoginResult getLoginResult()LoginResult
received from Indexserver as the result of authentication.- Returns:
- LoginResult
-
getClientInfo
ClientInfo getClientInfo()This object is implicitly passed to each Indexserver request and contains the authentication ticket.- Returns:
- ClientInfo
-
makeSessOptsObj
SessionOptions makeSessOptsObj()Build SessionOptions object from current session options.- Returns:
- SessionOptions
-
fromSessOptsObj
Store provided SessionOptions object in current session options. This function does not send the options to IX.- Parameters:
opts
- SessionOptions object.
-
addListener
Add a listener that is called on re-login.- Parameters:
listener
- Callback object
-
removeListener
Remove a listener that was previously set byaddListener(IXAuthenticationListener)
.- Parameters:
listener
- Callback object
-
isExpired
boolean isExpired()Check whether the current sessionClientInfo.ticket
is expired.- Returns:
- true if expired
-
needAlive
boolean needAlive()Check whether the current sessionClientInfo.ticket
needs to be renewed.- Returns:
- true if renew is required
-
getSessionOptions
Properties getSessionOptions()Return session options.- Returns:
- Session options
-
encryptPassword
Encrypt the given text before sending over the wire.- Parameters:
text
- Plain text to be encrypted- Returns:
- Encrypted text
- Throws:
byps.RemoteException
-
getDatabaseEngine
String getDatabaseEngine()Get database engine name. This value is received by a call toIXServicePortIF.getServerInfo(ClientInfo)
and corresponds toServerInfo.databaseEngine
.- Returns:
- Database engine
-
getEncryptionPasswords
Properties getEncryptionPasswords()Reserved.- Returns:
-
getAuthenticationType
EAuthenticationType getAuthenticationType()Type of this authentication object.- Returns:
- Authentication type
-
setLoginResult
Called after authentication to pass theLoginResult
.- Parameters:
loginResult
- Authentication result
-
getVersion
String getVersion()Return IX version.- Returns:
- IX version. EIX-2519
-
getServerTime
Date getServerTime()Server time. EIX-2519- Returns:
- Server time
-
getInstanceName
String getInstanceName()Return IXID defined in Indexserver options.- Returns:
- Instance name
-