github.com/Ingenico-ePayments/connect-sdk-go@v0.0.0-20240318153750-1f8cd329b9c9/communicator/Authenticator.go (about) 1 package communicator 2 3 import ( 4 "net/url" 5 6 "github.com/Ingenico-ePayments/connect-sdk-go/communicator/communication" 7 ) 8 9 // Authenticator is the interface used to sign requests to the Ingenico ePayments platform. Thread-safe. 10 type Authenticator interface { 11 12 // CreateSimpleAuthenticationSignature creates a signature for the simple security model. 13 // It returns the simple authentication signature. 14 // Note that the list of Request headers may not be modified and may not contain headers with 15 // the same name. 16 CreateSimpleAuthenticationSignature(httpMethod string, resourceURI url.URL, requestHeaders []communication.Header) (string, error) 17 }