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 SummaryConstructors Constructor Description SoapAuthClient(String endpoint)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringlogin(String username, String password)Starts a new session.voidlogout(String sid)Closes a session.voidrenew(String sid)Renews a sessionbooleanvalid(String sid)Checks if a SID is valid
 
- 
- 
- 
Constructor Detail- 
SoapAuthClientpublic SoapAuthClient(String endpoint) throws IOException - Throws:
- IOException
 
 
- 
 - 
Method Detail- 
loginpublic String login(String username, String password) throws AuthenticationException Description copied from interface:AuthServiceStarts a new session.- Specified by:
- loginin interface- AuthService
- Parameters:
- username- The username
- password- The password
- Returns:
- The newly created session identifier(sid)
- Throws:
- AuthenticationException- the user was not authenticated
 
 - 
logoutpublic void logout(String sid) Description copied from interface:AuthServiceCloses a session.- Specified by:
- logoutin interface- AuthService
- Parameters:
- sid- The session identifier
 
 - 
validpublic boolean valid(String sid) Description copied from interface:AuthServiceChecks if a SID is valid- Specified by:
- validin interface- AuthService
- Parameters:
- sid- identifier of the session
- Returns:
- if the session is valid
 
 - 
renewpublic void renew(String sid) Description copied from interface:AuthServiceRenews a session- Specified by:
- renewin interface- AuthService
- Parameters:
- sid- identifier of the session
 
 
- 
 
-