Interface Authenticator

All Known Implementing Classes:
V1HmacAuthenticator

public interface Authenticator
Used to authenticate requests to the Online Payments platform. Thread-safe.
  • Method Summary

    Modifier and Type
    Method
    Description
    getAuthorization(String httpMethod, URI resourceUri, List<RequestHeader> requestHeaders)
    Returns a value that can be used for the "Authorization" header.
  • Method Details

    • getAuthorization

      String getAuthorization(String httpMethod, URI resourceUri, List<RequestHeader> requestHeaders)
      Returns a value that can be used for the "Authorization" header.
      Parameters:
      httpMethod - The HTTP method.
      resourceUri - The URI of the resource.
      requestHeaders - A list of RequestHeaders. This list may not be modified and may not contain headers with the same name.