Package esendex.sdk.java.service.auth
Class BasicAuthenticator
java.lang.Object
esendex.sdk.java.service.auth.AbstractAuthenticator
esendex.sdk.java.service.auth.BasicAuthenticator
- All Implemented Interfaces:
Authenticator
A (RFC2617) Basic authenticator that writes out the Http header to
authenticate a request with the UserPassword credentials provided.
Each request will contain the user and password credentials
encoded in Base64
- Author:
- Mike Whittaker
-
Constructor Summary
ConstructorsConstructorDescriptionBasicAuthenticator
(UserPassword userPassword) Create an authenticator for basic authentication with the supplied credentials. -
Method Summary
Methods inherited from class esendex.sdk.java.service.auth.AbstractAuthenticator
createHeader, encode, equals, getScheme, getUserPassword, hashCode
-
Constructor Details
-
BasicAuthenticator
Create an authenticator for basic authentication with the supplied credentials.- Parameters:
userPassword
- the credentials
-
-
Method Details
-
getCredentials
Gets the credentials.- Specified by:
getCredentials
in classAbstractAuthenticator
- Returns:
- the credentials the credentials
-