Package de.elo.ix.client
Interface IXClientIF
- All Known Implementing Classes:
IXClient
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Deprecated.This class encapsulates an OutputStream for downloading a document. -
Method Summary
Modifier and TypeMethodDescriptionvoid
done()
Deprecated.Logout all active sessions and stop internal thread for ticket refreshing.Deprecated.Use this helper function to encrypt short strings (e.Deprecated.Returns the version of the IXClient class, resp.getCONST
(ClientInfo ci) Deprecated.Retuns the Indexserver constantsDeprecated.Retuns the enpoint URL that was given in the constructor.Deprecated.Secure connections should be used for all Indexserver calls.Deprecated.Retuns the enpoint URL that was given in the constructor.Deprecated.Detect Indexserver version with build number.Deprecated.Detect Indexserver interface version.Deprecated.Deprecated.Gets the current server time.Deprecated.Returns the negotiated stream version.getUrl()
Deprecated.Return Indexserver URLDeprecated.Detect Indexserver version without build number.void
Deprecated.Initialize the connection to the Indexserver.boolean
Deprecated.boolean
isRmi()
Deprecated.boolean
isSer()
Deprecated.Deprecated.Log on to Indexserver and start a background thread that refreshes the ticket periodically.loginAdmin
(ClientInfo ci, String userName, String userPwd, String computerName, String reportAs) Deprecated.Log on to Indexserver and start a background thread that refreshes the ticket periodically.loginKerberos
(ClientInfo ci, byte[] ticket, String computerName) Deprecated.Kerberos LoginloginKerberos
(ClientInfo ci, String realm, String kdc, String servicePrincipal, String computerName, boolean addToAliveThread) Deprecated.loginKerberos
(String realm, String kdc, String servicePrincipal, String computerName) Deprecated.loginSso
(ClientInfo ci, String computerName, boolean keepAlive) Deprecated.Login to Indexserver using HTTP authentication.void
logout
(ClientInfo ci) Deprecated.Log out and stop automatic ticket refreshing.boolean
setSecure
(boolean sec) Deprecated.Returns always true now.
-
Method Details
-
init
void init(String endpoint, String endpointSSL, int maxConnections, int timeoutSeconds) throws byps.RemoteException Deprecated.Initialize the connection to the Indexserver. Call this function, if the object was initialized by the default constructor.- Parameters:
endpoint
- Indexserver URLendpointSSL
- Reserved, must be nullmaxConnections
- Maximum of HTTP connections to Indexserver. This should be 2 for client applications, that use only one thread. Server applications with more threads should increase this number to the number of threads + 1.timeoutSeconds
- A timeout exception is thrown, if a call to Indexserver needs more time than this number of seconds.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
setSecure
Deprecated.Returns always true now.Selects the secure endpoint URL supplied in the constructor. Because SSL connections cause only a negliable overhead, this function is deprecated. SSL connections should be used for all calls.- Parameters:
sec
- true, if secure endpoint should be addressed.- Returns:
- true, if the secure endpoint URL has been used previsiously.
-
getCONST
Deprecated.Retuns the Indexserver constants- Parameters:
ci
- ClientInfo object- Returns:
- Constants object including all Indexserver constants.
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
login
LoginResult login(ClientInfo ci, String userName, String userPwd, String computerName, String runAs) throws byps.RemoteException Deprecated.Log on to Indexserver and start a background thread that refreshes the ticket periodically.- Parameters:
ci
- ClientInfo objectuserName
- User name to log inuserPwd
- User passwordcomputerName
- Computer namerunAs
- User name that specifies the security context. If null,userName
defines the security context.- Returns:
- LoginResult object
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
loginAdmin
LoginResult loginAdmin(ClientInfo ci, String userName, String userPwd, String computerName, String reportAs) throws byps.RemoteException Deprecated.Log on to Indexserver and start a background thread that refreshes the ticket periodically.- Parameters:
ci
- ClientInfo objectuserName
- User name to log inuserPwd
- User passwordcomputerName
- Computer namereportAs
- User name or ID used in reporting and as owner ID.userName
defines the security context.- Returns:
- LoginResult object
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
loginKerberos
LoginResult loginKerberos(ClientInfo ci, byte[] ticket, String computerName) throws byps.RemoteException Deprecated.Kerberos Login- Parameters:
ci
- ClientInfo objectticket
- The KRB_AP_REQ Message as defined in RFC 1510computerName
- Client computer name for reporting.- Returns:
- LoginResult
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
loginKerberos
LoginResult loginKerberos(String realm, String kdc, String servicePrincipal, String computerName) throws byps.RemoteException, GSSException, FileNotFoundException Deprecated.- Parameters:
realm
- Kerberos Realm, Windows Domain, e.g. ELO.localkdc
- Key Distribution Center, Active Directory computer name, e.g. negril.elo.localservicePrincipal
- Account name used to generate the keytab file for AM, e.g. krb_NEGRILcomputerName
- Client computer name for reporting.- Returns:
- LoginResult object
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".GSSException
- Error occurs inside Kerberos library.FileNotFoundException
- Error occurs while accessing Kerberos configuration files.
-
loginKerberos
LoginResult loginKerberos(ClientInfo ci, String realm, String kdc, String servicePrincipal, String computerName, boolean addToAliveThread) throws byps.RemoteException, GSSException, FileNotFoundException Deprecated.- Throws:
byps.RemoteException
GSSException
FileNotFoundException
-
logout
Deprecated.Log out and stop automatic ticket refreshing.- Parameters:
ci
- ClientInfo object- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
done
void done()Deprecated.Logout all active sessions and stop internal thread for ticket refreshing. -
getVersion
Deprecated.Detect Indexserver version without build number.- Returns:
- IX-Version
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
getImplVersion
Deprecated.Detect Indexserver version with build number.- Returns:
- IX-Version
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
getInterfaceVersion
Deprecated.Detect Indexserver interface version.- Returns:
- IX interface version
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
getServerTime
Deprecated.Gets the current server time.- Returns:
- Server time.
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
getClientVersion
String getClientVersion()Deprecated.Returns the version of the IXClient class, resp. the latest binary protocol version the IXClient class can understand.- Returns:
- latest protocol version
- See Also:
-
getStreamVersion
String getStreamVersion()Deprecated.Returns the negotiated stream version.- Returns:
- negotiated protocol version
-
getEndpointPlain
String getEndpointPlain()Deprecated.Retuns the enpoint URL that was given in the constructor.- Returns:
- Endpoint URL
-
getEndpointUrl
String getEndpointUrl()Deprecated.Retuns the enpoint URL that was given in the constructor.- Returns:
- Endpoint URL
-
getEndpointSSL
Deprecated.Secure connections should be used for all Indexserver calls.Retuns the secure enpoint URL that was given in the constructor.- Returns:
- Endpoint URL
- See Also:
-
isRmi
Deprecated.Returns true, if Java RMI transport is used.- Returns:
- Since 6.00.086 always false.
-
isSer
Deprecated.Returns true, if binary transport is used.- Returns:
- Since 6.00.086 always true.
-
isFastInfoset
Deprecated.Returns true, if the Fastinfoset transport of JWSDP 2.0 is enabled.- Returns:
- Since 6.00.086 always false.
-
encryptPassword
Deprecated.Use this helper function to encrypt short strings (e. g. passwords). The encryption key is provided by the IX when IXClient.login is called. Only this IX is able to decrypt the string.- Parameters:
s
- String (password) to be encrypted. Maximum length is 117 characters. resp. 117 UTF-8 bytes.- Returns:
- encrypted String
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
getUrl
String getUrl()Deprecated.Return Indexserver URL- Returns:
- Indexserver URL
-
loginSso
LoginResult loginSso(ClientInfo ci, String computerName, boolean keepAlive) throws byps.RemoteException Deprecated.Login to Indexserver using HTTP authentication.- Parameters:
ci
- ClientInfocomputerName
- Client computer namekeepAlive
- true, if the ticket should be kept alive by IXClient's background thread- Returns:
- LoginResult
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
getJSESSIONID
String getJSESSIONID()Deprecated.
-