Package de.elo.ix.client
Interface IXClientIF
- All Known Implementing Classes:
IXClient
public interface IXClientIF
Deprecated.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IXClientIF.ContentStream
Deprecated.This class encapsulates an OutputStream for downloading a document. -
Method Summary
Modifier and Type Method Description void
done()
Deprecated.Logout all active sessions and stop internal thread for ticket refreshing.java.lang.String
encryptPassword(java.lang.String s)
Deprecated.Use this helper function to encrypt short strings (e. g. passwords).java.lang.String
getClientVersion()
Deprecated.Returns the version of the IXClient class, resp. the latest binary protocol version the IXClient class can understand.IXServicePortC
getCONST(ClientInfo ci)
Deprecated.Retuns the Indexserver constantsjava.lang.String
getEndpointPlain()
Deprecated.Retuns the enpoint URL that was given in the constructor.java.lang.String
getEndpointSSL()
Deprecated.Secure connections should be used for all Indexserver calls.java.lang.String
getEndpointUrl()
Deprecated.Retuns the enpoint URL that was given in the constructor.java.lang.String
getImplVersion()
Deprecated.Detect Indexserver version with build number.java.lang.String
getInterfaceVersion()
Deprecated.Detect Indexserver interface version.java.lang.String
getJSESSIONID()
Deprecated.java.util.Date
getServerTime()
Deprecated.Gets the current server time.java.lang.String
getStreamVersion()
Deprecated.Returns the negotiated stream version.java.lang.String
getUrl()
Deprecated.Return Indexserver URLjava.lang.String
getVersion()
Deprecated.Detect Indexserver version without build number.void
init(java.lang.String endpoint, java.lang.String endpointSSL, int maxConnections, int timeoutSeconds)
Deprecated.Initialize the connection to the Indexserver.boolean
isFastInfoset()
Deprecated.boolean
isRmi()
Deprecated.boolean
isSer()
Deprecated.LoginResult
login(ClientInfo ci, java.lang.String userName, java.lang.String userPwd, java.lang.String computerName, java.lang.String runAs)
Deprecated.Log on to Indexserver and start a background thread that refreshes the ticket periodically.LoginResult
loginAdmin(ClientInfo ci, java.lang.String userName, java.lang.String userPwd, java.lang.String computerName, java.lang.String reportAs)
Deprecated.Log on to Indexserver and start a background thread that refreshes the ticket periodically.LoginResult
loginKerberos(ClientInfo ci, byte[] ticket, java.lang.String computerName)
Deprecated.Kerberos LoginLoginResult
loginKerberos(ClientInfo ci, java.lang.String realm, java.lang.String kdc, java.lang.String servicePrincipal, java.lang.String computerName, boolean addToAliveThread)
Deprecated.LoginResult
loginKerberos(java.lang.String realm, java.lang.String kdc, java.lang.String servicePrincipal, java.lang.String computerName)
Deprecated.LoginResult
loginSso(ClientInfo ci, java.lang.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(java.lang.String endpoint, java.lang.String endpointSSL, int maxConnections, int timeoutSeconds) throws byps.RemoteExceptionDeprecated.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
boolean setSecure(boolean sec)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, java.lang.String userName, java.lang.String userPwd, java.lang.String computerName, java.lang.String runAs) throws byps.RemoteExceptionDeprecated.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, java.lang.String userName, java.lang.String userPwd, java.lang.String computerName, java.lang.String reportAs) throws byps.RemoteExceptionDeprecated.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, java.lang.String computerName) throws byps.RemoteExceptionDeprecated.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(java.lang.String realm, java.lang.String kdc, java.lang.String servicePrincipal, java.lang.String computerName) throws byps.RemoteException, org.ietf.jgss.GSSException, java.io.FileNotFoundExceptionDeprecated.- 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".org.ietf.jgss.GSSException
- Error occurs inside Kerberos library.java.io.FileNotFoundException
- Error occurs while accessing Kerberos configuration files.
-
loginKerberos
LoginResult loginKerberos(ClientInfo ci, java.lang.String realm, java.lang.String kdc, java.lang.String servicePrincipal, java.lang.String computerName, boolean addToAliveThread) throws byps.RemoteException, org.ietf.jgss.GSSException, java.io.FileNotFoundExceptionDeprecated.- Throws:
byps.RemoteException
org.ietf.jgss.GSSException
java.io.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
java.lang.String getVersion() throws byps.RemoteExceptionDeprecated.Detect Indexserver version without build number.- Returns:
- IX-Version
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
getImplVersion
java.lang.String getImplVersion() throws byps.RemoteExceptionDeprecated.Detect Indexserver version with build number.- Returns:
- IX-Version
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
getInterfaceVersion
java.lang.String getInterfaceVersion() throws byps.RemoteExceptionDeprecated.Detect Indexserver interface version.- Returns:
- IX interface version
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
getServerTime
java.util.Date getServerTime() throws byps.RemoteExceptionDeprecated.Gets the current server time.- Returns:
- Server time.
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text".
-
getClientVersion
java.lang.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()
-
getStreamVersion
java.lang.String getStreamVersion()Deprecated.Returns the negotiated stream version.- Returns:
- negotiated protocol version
-
getEndpointPlain
java.lang.String getEndpointPlain()Deprecated.Retuns the enpoint URL that was given in the constructor.- Returns:
- Endpoint URL
-
getEndpointUrl
java.lang.String getEndpointUrl()Deprecated.Retuns the enpoint URL that was given in the constructor.- Returns:
- Endpoint URL
-
getEndpointSSL
java.lang.String 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:
setSecure
-
isRmi
boolean isRmi()Deprecated.Returns true, if Java RMI transport is used.- Returns:
- Since 6.00.086 always false.
-
isSer
boolean isSer()Deprecated.Returns true, if binary transport is used.- Returns:
- Since 6.00.086 always true.
-
isFastInfoset
boolean isFastInfoset()Deprecated.Returns true, if the Fastinfoset transport of JWSDP 2.0 is enabled.- Returns:
- Since 6.00.086 always false.
-
encryptPassword
java.lang.String encryptPassword(java.lang.String s) throws byps.RemoteExceptionDeprecated.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
java.lang.String getUrl()Deprecated.Return Indexserver URL- Returns:
- Indexserver URL
-
loginSso
LoginResult loginSso(ClientInfo ci, java.lang.String computerName, boolean keepAlive) throws byps.RemoteExceptionDeprecated.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
java.lang.String getJSESSIONID()Deprecated.
-