Class: Ingenico::Direct::SDK::Authenticator

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

Overview

Abstract class that is responsible for authenticating requests sent to the Ingenico ePayments 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.

Raises:

Parameters:

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

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

  • all headers used by the request

Returns:

  • the created signature



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

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