Class: OnlinePayments::SDK::Authenticator

Inherits:
Object
  • Object
show all
Defined in:
lib/onlinepayments/sdk/authenticator.rb

Overview

Abstract class that is responsible for authenticating requests sent to the Online Payments platform.

Direct Known Subclasses

DefaultImpl::DefaultAuthenticator

Instance Method Summary collapse

Instance Method Details

#create_simple_authentication_signature(http_method, resource_uri, request_headers) ⇒ String

Creates a signature to authenticate a request.

Parameters:

  • http_method (String)

    ‘GET’, ‘PUT’, ‘POST’ or ‘DELETE’ indicating which HTTP method will be used with the request

  • resource_uri (URI::HTTP)

    URI object that includes #path and #query of the URL that will be used, #query may be nil

  • request_headers (Array<OnlinePayments::SDK::RequestHeader>)

    all headers used by the request

Returns:

  • (String)

    the created signature

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/onlinepayments/sdk/authenticator.rb', line 12

def create_simple_authentication_signature(http_method, resource_uri, request_headers)
  raise NotImplementedError
end