Class RestAuthClient
- java.lang.Object
-
- com.logicaldoc.webservice.rest.client.AbstractRestClient
-
- com.logicaldoc.webservice.rest.client.RestAuthClient
-
- All Implemented Interfaces:
AuthService
public class RestAuthClient extends AbstractRestClient implements AuthService
Auth Web Service client (RESTful).- Since:
- 6.9
- Author:
- Marco Meschieri - LogicalDOC, Alessandro Gasparini - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description RestAuthClient(String endpoint)
-
-
-
Constructor Detail
-
RestAuthClient
public RestAuthClient(String endpoint)
-
-
Method Detail
-
login
public String login(String username, String password) throws Exception
- Specified by:
login
in interfaceAuthService
- Throws:
Exception
-
logout
public void logout(String sid)
- Specified by:
logout
in interfaceAuthService
-
loginPost
public String loginPost(String username, String password) throws Exception
- Specified by:
loginPost
in interfaceAuthService
- Throws:
Exception
-
loginPostJSON
public String loginPostJSON(String jsonstr) throws Exception
- Specified by:
loginPostJSON
in interfaceAuthService
- Throws:
Exception
-
getSid
public String getSid()
- Specified by:
getSid
in interfaceAuthService
-
-