Class SoapAuthClient
- java.lang.Object
-
- com.logicaldoc.webservice.soap.client.SoapClient<AuthService>
-
- com.logicaldoc.webservice.soap.client.SoapAuthClient
-
- All Implemented Interfaces:
AuthService
public class SoapAuthClient extends SoapClient<AuthService> implements AuthService
Auth Web Service client (SOAP).- Since:
- 7.5
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SoapAuthClient(String endpoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
login(String username, String password)
Starts a new session.void
logout(String sid)
Closes a session.void
renew(String sid)
Renews a sessionboolean
valid(String sid)
Checks if a SID is valid-
Methods inherited from class com.logicaldoc.webservice.soap.client.SoapClient
setMaxChildElements
-
-
-
-
Constructor Detail
-
SoapAuthClient
public SoapAuthClient(String endpoint) throws IOException
- Throws:
IOException
-
-
Method Detail
-
login
public String login(String username, String password) throws Exception
Description copied from interface:AuthService
Starts a new session.- Specified by:
login
in interfaceAuthService
- Parameters:
username
- The usernamepassword
- The password- Returns:
- The newly created session identifier(sid)
- Throws:
Exception
- error in the server application
-
logout
public void logout(String sid)
Description copied from interface:AuthService
Closes a session.- Specified by:
logout
in interfaceAuthService
- Parameters:
sid
- The session identifier
-
valid
public boolean valid(String sid)
Description copied from interface:AuthService
Checks if a SID is valid- Specified by:
valid
in interfaceAuthService
- Parameters:
sid
- identifier of the session- Returns:
- if the session is valid
-
renew
public void renew(String sid)
Description copied from interface:AuthService
Renews a session- Specified by:
renew
in interfaceAuthService
- Parameters:
sid
- identifier of the session
-
-