Class AuthenticationRetrofitWebService
java.lang.Object
com.exxothermic.audioeverywheresdk.webservices.api.exxtractorapi.retrofit.AuthenticationRetrofitWebService
- All Implemented Interfaces:
AuthenticationWebService
,WebService
Available methods for the Authentication Web Service.
- Since:
- 1/6/15
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
loginOperatorWithAuthenticationHeader
(String authenticationHeader, WebServiceResponseHandler<Token> responseHandler) Method to log in a operator on the exxtractorvoid
loginUserWithAuthenticationHeader
(String authenticationHeader, WebServiceResponseHandler<User> responseHandler) Method to log in a user on the exxtractorvoid
logOutSession
(String token, WebServiceResponseHandler<retrofit.client.Response> handler) Method that will logout the user and close the session with the current token from the exxtractor.void
logOutUser
(String token, WebServiceResponseHandler<retrofit.client.Response> handler) Method that will log out the user from the exxtractor
-
Constructor Details
-
AuthenticationRetrofitWebService
-
-
Method Details
-
loginUserWithAuthenticationHeader
public void loginUserWithAuthenticationHeader(String authenticationHeader, WebServiceResponseHandler<User> responseHandler) Description copied from interface:AuthenticationWebService
Method to log in a user on the exxtractor- Specified by:
loginUserWithAuthenticationHeader
in interfaceAuthenticationWebService
- Parameters:
authenticationHeader
- the authentication header that must be usedresponseHandler
- handler to check the request status
-
loginOperatorWithAuthenticationHeader
public void loginOperatorWithAuthenticationHeader(String authenticationHeader, WebServiceResponseHandler<Token> responseHandler) Description copied from interface:AuthenticationWebService
Method to log in a operator on the exxtractor- Specified by:
loginOperatorWithAuthenticationHeader
in interfaceAuthenticationWebService
- Parameters:
authenticationHeader
- the authentication header that must be usedresponseHandler
- handler to check the request status
-
logOutSession
public void logOutSession(String token, WebServiceResponseHandler<retrofit.client.Response> handler) Description copied from interface:AuthenticationWebService
Method that will logout the user and close the session with the current token from the exxtractor.- Specified by:
logOutSession
in interfaceAuthenticationWebService
- Parameters:
token
- the token that will be used logged outhandler
- the handler for the request status
-
logOutUser
Description copied from interface:AuthenticationWebService
Method that will log out the user from the exxtractor- Specified by:
logOutUser
in interfaceAuthenticationWebService
- Parameters:
token
- the token that will be logged outhandler
- the handler for the request status
-