Table of Contents

Class Credentials

Namespace
Amazon.SecurityToken.Model
Assembly
AWSSDK.SecurityToken.dll

AWS credentials for API authentication.

public class Credentials : AWSCredentials
Inheritance
Credentials

Constructors

Credentials()

Empty constructor used to set properties independently even when a simple constructor is available

public Credentials()

Credentials(string, string, string, DateTime)

Instantiates Credentials with the parameterized properties

public Credentials(string accessKeyId, string secretAccessKey, string sessionToken, DateTime expiration)

Parameters

accessKeyId string

The access key ID that identifies the temporary security credentials.

secretAccessKey string

The secret access key that can be used to sign requests.

sessionToken string

The token that users must pass to the service API to use the temporary credentials.

expiration DateTime

The date on which the current credentials expire.

Properties

AccessKeyId

Gets and sets the property AccessKeyId.

The access key ID that identifies the temporary security credentials.

public string AccessKeyId { get; set; }

Property Value

string

Expiration

Gets and sets the property Expiration.

The date on which the current credentials expire.

public DateTime Expiration { get; set; }

Property Value

DateTime

SecretAccessKey

Gets and sets the property SecretAccessKey.

The secret access key that can be used to sign requests.

public string SecretAccessKey { get; set; }

Property Value

string

SessionToken

Gets and sets the property SessionToken.

The token that users must pass to the service API to use the temporary credentials.

public string SessionToken { get; set; }

Property Value

string

Methods

GetCredentials()

Returns a copy of ImmutableCredentials corresponding to these credentials

public override ImmutableCredentials GetCredentials()

Returns

ImmutableCredentials