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.

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<Ingenico::Direct::SDK::RequestHeader>)

    all headers used by the request

Returns:

  • (String)

    the created signature

Raises:

  • (NotImplementedError)


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