public class AuthenticateServiceClient extends QTestApiWebServiceClient<AuthenticateServiceClient> implements AuthenticateService
credentialsProvider, exceptionUnmarshallers, executorService, signerclient, configuration, endpoint, requestHandlers, timeOffset| Constructor and Description |
|---|
AuthenticateServiceClient()
Constructs a new client to invoke service method on AuthenticateService using
the default qTest credentials provider and default client configuration options.
|
AuthenticateServiceClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on AuthenticateService using
the default qTest credentials provider and client configuration options.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
authenticate(AuthenticateRequest authenticateRequest)
Authenticate the given request and return the token.
|
OAuthTokenResponse |
authenticate(OAuthAuthenticateRequest authenticateRequest)
Authenticate the given OAuth request.
|
protected HttpAuthClient |
createHttpAuthClient(ClientConfiguration configuration) |
OAuthTokenStatusResponse |
refresh(OAuthTokenRefreshRequest refreshRequest)
Refresh token.
|
OAuthTokenStatusResponse |
status(OAuthTokenStatusRequest statusRequest)
Request token status.
|
User |
validate(ValidateTokenRequest validateTokenRequest)
Validate the token from the given token request.
|
init, invoke, shutdown, withEndpointaddRequestHandler, createExecutionContext, getTimeOffset, removeRequestHandler, setConfiguration, setEndpoint, setTimeOffset, withConfiguration, withRequestHandler, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetEndpoint, shutdownpublic AuthenticateServiceClient()
public AuthenticateServiceClient(ClientConfiguration clientConfiguration)
clientConfiguration - The client configuration options controlling how this
client connects to UserServiceprotected HttpAuthClient createHttpAuthClient(ClientConfiguration configuration)
createHttpAuthClient in class ApiWebServiceClient<AuthenticateServiceClient>configuration - configurationHttpAuthClient from the given configuration.public java.lang.String authenticate(AuthenticateRequest authenticateRequest) throws AuthServiceException
AuthenticateServiceauthenticate in interface AuthenticateServiceauthenticateRequest - the given authenticate request to authenticate.AuthServiceException - if an error occurs during authenticate.public User validate(ValidateTokenRequest validateTokenRequest) throws AuthServiceException
AuthenticateServicevalidate in interface AuthenticateServicevalidateTokenRequest - the given validate token request to validate.AuthServiceException - if an error occurs during validate.public OAuthTokenResponse authenticate(OAuthAuthenticateRequest authenticateRequest) throws AuthServiceException
AuthenticateServiceauthenticate in interface AuthenticateServiceauthenticateRequest - the given OAuth request.OAuth token responseAuthServiceException - if an error occurs during authenticate.public OAuthTokenStatusResponse status(OAuthTokenStatusRequest statusRequest) throws AuthServiceException
AuthenticateServicestatus in interface AuthenticateServicestatusRequest - the given status request.OAuth status responseAuthServiceException - if an error occurs during request status.public OAuthTokenStatusResponse refresh(OAuthTokenRefreshRequest refreshRequest) throws AuthServiceException
AuthenticateServicerefresh in interface AuthenticateServicerefreshRequest - the given refresh request.OAuth status responseAuthServiceException - if an error occurs during refresh token.