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
stringThe access key ID that identifies the temporary security credentials.
secretAccessKey
stringThe secret access key that can be used to sign requests.
sessionToken
stringThe token that users must pass to the service API to use the temporary credentials.
expiration
DateTimeThe 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
Expiration
Gets and sets the property Expiration.
The date on which the current credentials expire.
public DateTime Expiration { get; set; }
Property Value
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
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
Methods
GetCredentials()
Returns a copy of ImmutableCredentials corresponding to these credentials
public override ImmutableCredentials GetCredentials()
Returns
- ImmutableCredentials