Class SessionAuthenticator

java.lang.Object
esendex.sdk.java.service.auth.AbstractAuthenticator
esendex.sdk.java.service.auth.SessionAuthenticator
All Implemented Interfaces:
Authenticator

public class SessionAuthenticator extends AbstractAuthenticator
A (RFC2617) Basic authenticator that writes out the Http header to authenticate a request. In contrast to the BasicAuthenticator, the UserPassword credentials are written out (in Base64) in an initial request to the SessionResource. In return a session id is returned and subsequent requests to other resources use this as a credential, Base64 encoded.
Author:
Mike Whittaker
  • Constructor Details

    • SessionAuthenticator

      public SessionAuthenticator(UserPassword userPassword) throws EsendexException
      Create an authenticator for session authentication.
      Parameters:
      userPassword - the user password
      Throws:
      EsendexException - the esendex exception
  • Method Details