public class BasicRequestAuthenticator extends Object implements RequestAuthenticator
RequestAuthenticator implements a HTTP
Basic Authentication scheme. This defines the HTTP authentication scheme to be used when communicating with the Stormpath API server.
The `Client` gets the request authenticator configured via
ClientBuilder.setAuthenticationScheme(com.stormpath.sdk.client.AuthenticationScheme)| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHENTICATION_SCHEME |
static String |
AUTHORIZATION_HEADER |
static String |
STORMPATH_DATE_HEADER |
static String |
TIME_ZONE |
static String |
TIMESTAMP_FORMAT |
| Constructor and Description |
|---|
BasicRequestAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(Request request,
ApiKey apiKey)
Implementations of this operation will prepare the authentication information as expected by the Stormpath API server.
|
public static final String AUTHORIZATION_HEADER
public static final String STORMPATH_DATE_HEADER
public static final String AUTHENTICATION_SCHEME
public static final String TIMESTAMP_FORMAT
public static final String TIME_ZONE
public void authenticate(Request request, ApiKey apiKey) throws RequestAuthenticationException
RequestAuthenticatorauthenticate in interface RequestAuthenticatorrequest - the request that will be sent to Stormpath API server, it shall be modified by the implementating classes
in order to insert here the authentication informationapiKey - provides the authentication data that will be used to create the proper authentication information for
the specific scheme the implementation defines.RequestAuthenticationException - when the authentication request cannot be createdCopyright © 2012–2014. All rights reserved.