Class SAMLImmutableCredentials
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
ImmutableCredentialsexpires
DateTimesubject
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
Properties
Expires
The expiry time of the credentials, obtained from the AssumeRoleWithSAML response.
public DateTime Expires { get; }
Property Value
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
Methods
Copy()
Returns a copy of the current credentials.
public override ImmutableCredentials Copy()
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()