Search Results for

    Show / Hide Table of Contents

    Class V1HMACAuthenticator

    IAuthenticator implementation using v1HMAC signatures.

    Inheritance
    object
    V1HMACAuthenticator
    Implements
    IAuthenticator
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Worldline.Connect.Sdk.Authentication
    Assembly: Worldline.Connect.Sdk.dll
    Syntax
    public class V1HMACAuthenticator : IAuthenticator

    Constructors

    V1HMACAuthenticator(string, string)

    Declaration
    public V1HMACAuthenticator(string apiKeyId, string secretApiKey)
    Parameters
    Type Name Description
    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

    GetAuthorization(HttpMethod, Uri, IEnumerable<IRequestHeader>)

    Returns a value that can be used for the Authorization header.

    Declaration
    public Task<string> GetAuthorization(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
    Task<string>

    The Authorization header value.

    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.