Table of Contents

Class SAMLImmutableCredentials

Namespace
Amazon.Runtime
Assembly
AWSSDK.Core.dll

Immutable representation of AWS credentials obtained as a result of authenticating against a SAML-supporting federated identity provider.

public class SAMLImmutableCredentials : ImmutableCredentials
Inheritance
SAMLImmutableCredentials
Inherited Members

Constructors

SAMLImmutableCredentials(ImmutableCredentials, DateTime, string)

Constructs an instance with supplied keys and SAML assertion data.

public SAMLImmutableCredentials(ImmutableCredentials credentials, DateTime expires, string subject)

Parameters

credentials ImmutableCredentials
expires DateTime
subject string

SAMLImmutableCredentials(string, string, string, DateTime, string)

Constructs an instance with supplied keys and SAML assertion data.

public SAMLImmutableCredentials(string awsAccessKeyId, string awsSecretAccessKey, string token, DateTime expires, string subject)

Parameters

awsAccessKeyId string
awsSecretAccessKey string
token string
expires DateTime
subject string

Properties

Expires

The expiry time of the credentials, obtained from the AssumeRoleWithSAML response.

public DateTime Expires { get; }

Property Value

DateTime

Subject

The value of the NameID element in the Subject element of the SAML assertion, as returned in the AssumeRoleWithSAML response from the Security Token Service.

public string Subject { get; }

Property Value

string

Methods

Copy()

Returns a copy of the current credentials.

public override ImmutableCredentials Copy()

Returns

ImmutableCredentials

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int