Search Results for

    Show / Hide Table of Contents

    Class DefaultAuthenticator

    Default IAuthenticator implementation.

    Inheritance
    object
    DefaultAuthenticator
    Implements
    IAuthenticator
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Ingenico.Connect.Sdk.DefaultImpl
    Assembly: connect-sdk-dotnet.dll
    Syntax
    public class DefaultAuthenticator : IAuthenticator

    Constructors

    DefaultAuthenticator(AuthorizationType, string, string)

    Declaration
    public DefaultAuthenticator(AuthorizationType authType, string apiKeyId, string secretApiKey)
    Parameters
    Type Name Description
    AuthorizationType authType

    Based on this value both the Ingenico ePayments platform and the merchant know which security implementation is used. A version number is used for backward compatibility in the future.

    string apiKeyId

    An identifier for the secret API key. The apiKeyId can be retrieved from the Configuration Center. This identifier is visible in the HTTP request and is also used to identify the correct account.

    string secretApiKey

    A shared secret. The shared secret can be retrieved from the Configuration Center. An apiKeyId and secretApiKey always go hand-in-hand, the difference is that secretApiKey is never visible in the HTTP request. This secret is used as input for the HMAC algorithm.

    Methods

    CreateSimpleAuthenticationSignature(HttpMethod, Uri, IEnumerable<IRequestHeader>)

    Creates a signature for the simple security model.

    Declaration
    public string CreateSimpleAuthenticationSignature(HttpMethod httpMethod, Uri resourceUri, IEnumerable<IRequestHeader> requestHeaders)
    Parameters
    Type Name Description
    HttpMethod httpMethod

    HTTP method.

    Uri resourceUri

    Resource URI.

    IEnumerable<IRequestHeader> requestHeaders

    A list of request headers.

    Returns
    Type Description
    string

    The simple authentication signature.

    Remarks

    The list of Request headers may not be modified and may not contain headers with the same name.

    Implements

    IAuthenticator
    In This Article
    Back to top Copyright (c) 2016 Global Collect Services B.V.