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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSid()
String
login(String username, String password)
String
loginForm(String username, String password)
String
loginPostJSON(WSCredentials wscred)
void
logout(String sid)
-
-
-
Constructor Detail
-
RestAuthClient
public RestAuthClient(String endpoint) throws AuthenticationException
- Throws:
AuthenticationException
-
-
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
-
loginPostJSON
public String loginPostJSON(WSCredentials wscred) throws Exception
- Specified by:
loginPostJSON
in interfaceAuthService
- Throws:
Exception
-
getSid
public String getSid()
- Specified by:
getSid
in interfaceAuthService
-
-