Class ApiKeyToken
A token constructed from an apiKey.
Inherited Members
Namespace: Pulumi.Esc.Sdk.Client
Assembly: Pulumi.Esc.Sdk.dll
Syntax
public class ApiKeyToken : TokenBase
Constructors
View SourceApiKeyToken(string, ApiKeyHeader, string, TimeSpan?)
Constructs an ApiKeyToken object.
Declaration
public ApiKeyToken(string value, ClientUtils.ApiKeyHeader header, string prefix = "Bearer ", TimeSpan? timeout = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | |
| ClientUtils.ApiKeyHeader | header | |
| string | prefix | |
| TimeSpan? | timeout |
Properties
View SourceHeader
The header that this token will be used with.
Declaration
public ClientUtils.ApiKeyHeader Header { get; }
Property Value
| Type | Description |
|---|---|
| ClientUtils.ApiKeyHeader |
Methods
View SourceUseInHeader(HttpRequestMessage)
Places the token in the header.
Declaration
public virtual void UseInHeader(HttpRequestMessage request)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequestMessage | request |
UseInQuery(HttpRequestMessage, UriBuilder, NameValueCollection)
Places the token in the query.
Declaration
public virtual void UseInQuery(HttpRequestMessage request, UriBuilder uriBuilder, NameValueCollection parseQueryString)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequestMessage | request | |
| UriBuilder | uriBuilder | |
| NameValueCollection | parseQueryString |