Class SoapAuthService
- java.lang.Object
-
- com.logicaldoc.webservice.AbstractService
-
- com.logicaldoc.webservice.soap.endpoint.SoapAuthService
-
- All Implemented Interfaces:
AuthService
- Direct Known Subclasses:
RestAuthService
public class SoapAuthService extends AbstractService implements AuthService
Auth Web Service Implementation (SOAP)- Since:
- 5.2
- Author:
- Matteo Caruso - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SoapAuthService()
-
Method Summary
All 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-
Methods inherited from class com.logicaldoc.webservice.AbstractService
convertDateToString, convertStringToDate, getContext, getMessageContext, isValidateSession, setContext, setMessageContext, setValidateSession
-
-
-
-
Method Detail
-
login
public String login(String username, String password) throws AuthenticationException
Description copied from interface:AuthServiceStarts a new session.- Specified by:
loginin interfaceAuthService- Parameters:
username- The usernamepassword- The password- Returns:
- The newly created session identifier(sid)
- Throws:
AuthenticationException- the user was not authenticated
-
logout
public void logout(String sid)
Description copied from interface:AuthServiceCloses a session.- Specified by:
logoutin interfaceAuthService- Parameters:
sid- The session identifier
-
valid
public boolean valid(String sid)
Description copied from interface:AuthServiceChecks if a SID is valid- Specified by:
validin interfaceAuthService- Parameters:
sid- identifier of the session- Returns:
- if the session is valid
-
renew
public void renew(String sid)
Description copied from interface:AuthServiceRenews a session- Specified by:
renewin interfaceAuthService- Parameters:
sid- identifier of the session
-
-