Class RestAuthService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.webservice.soap.endpoint.SoapAuthService
com.logicaldoc.webservice.rest.endpoint.RestAuthService
- All Implemented Interfaces:
- AuthService,- AuthService
- Direct Known Subclasses:
- RestAuthSwagger
@Path("/")
@Consumes({"application/xml","application/json"})
@Produces("application/json")
public class RestAuthService
extends SoapAuthService
implements AuthService
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetSid()Starts a new session.loginApiKey(String apikey) Starts a new session.loginPostJSON(WSCredentials cred) voidCloses a session.voidrenew()Renews the current sessionvoidRenews a sessionMethods inherited from class com.logicaldoc.webservice.soap.endpoint.SoapAuthServicevalidMethods inherited from class com.logicaldoc.webservice.AbstractServiceconvertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
- 
Constructor Details- 
RestAuthServicepublic RestAuthService()
 
- 
- 
Method Details- 
login@GET @Path("/login") public String login(@QueryParam("u") String username, @QueryParam("pw") String password) throws AuthenticationException Description copied from interface:AuthServiceStarts a new session.- Specified by:
- loginin interface- AuthService
- Specified by:
- loginin interface- AuthService
- Overrides:
- loginin class- SoapAuthService
- Parameters:
- username- The username
- password- The password
- Returns:
- The newly created session identifier(sid)
- Throws:
- AuthenticationException- the user was not authenticated
 
- 
loginForm@POST @Path("/loginForm") @Consumes("application/x-www-form-urlencoded") public String loginForm(@FormParam("username") String username, @FormParam("password") String password) - Specified by:
- loginFormin interface- AuthService
 
- 
loginPostJSON- Specified by:
- loginPostJSONin interface- AuthService
 
- 
loginApiKeyDescription copied from interface:AuthServiceStarts a new session.- Specified by:
- loginApiKeyin interface- AuthService
- Specified by:
- loginApiKeyin interface- AuthService
- Overrides:
- loginApiKeyin class- SoapAuthService
- Parameters:
- apikey- The API Key
- Returns:
- The newly created session identifier(sid)
 
- 
logoutDescription copied from interface:AuthServiceCloses a session.- Specified by:
- logoutin interface- AuthService
- Specified by:
- logoutin interface- AuthService
- Overrides:
- logoutin class- SoapAuthService
- Parameters:
- sid- identifier of the session or an API Key
 
- 
getSid- Specified by:
- getSidin interface- AuthService
 
- 
renewRenews a session- Specified by:
- renewin interface- AuthService
- Overrides:
- renewin class- SoapAuthService
- Parameters:
- sid- identifier of the session
 
- 
renew@GET @Path("/renewcurrent") public void renew()Renews the current session
 
-