C# Class Conjur.ApiKeyAuthenticator

API key authenticator.
Inheritance: IAuthenticator
Datei anzeigen Open project: conjurinc/api-dotnet

Public Methods

Method Description
ApiKeyAuthenticator ( Uri authnUri, NetworkCredential credential ) : System

Initializes a new instance of the Conjur.ApiKeyAuthenticator class.

GetToken ( ) : string

Obtain a Conjur authentication token.

Private Methods

Method Description
StartTokenTimer ( System.TimeSpan timeout ) : void

Method Details

ApiKeyAuthenticator() public method

Initializes a new instance of the Conjur.ApiKeyAuthenticator class.
public ApiKeyAuthenticator ( Uri authnUri, NetworkCredential credential ) : System
authnUri System.Uri Authentication base URI, for example /// "https://example.com/api/authn".
credential System.Net.NetworkCredential User name and API key to use, where /// username is for example "bob" or "host/jenkins".
return System

GetToken() public method

Obtain a Conjur authentication token.
public GetToken ( ) : string
return string