Session credentials retrieved and automatically refreshed from an instance of the AmazonSecurityTokenService

Namespace: Amazon.Runtime
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class RefreshingSessionAWSCredentials : RefreshingAWSCredentials
Public Class RefreshingSessionAWSCredentials _
	Inherits RefreshingAWSCredentials
public ref class RefreshingSessionAWSCredentials : public RefreshingAWSCredentials

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
RefreshingSessionAWSCredentials()()()()
Constructs a RefreshingSessionAWSCredentials object. AccessKey and SecretKey are taken from the app.config for the application. Example App.config with credentials set.
CopyC#
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSAccessKey" value="********************"/>
        <add key="AWSSecretKey" value="****************************************"/>
    </appSettings>
</configuration>
RefreshingSessionAWSCredentials(AmazonSecurityTokenService)
Constructs a RefreshingSessionAWSCredentials object. The passed-in AmazonSecurityTokenService is used to refresh credentials.
RefreshingSessionAWSCredentials(AmazonSecurityTokenServiceConfig)
Constructs a RefreshingSessionAWSCredentials object. AccessKey and SecretKey are taken from the app.config for the application. Example App.config with credentials set.
CopyC#
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSAccessKey" value="********************"/>
        <add key="AWSSecretKey" value="****************************************"/>
    </appSettings>
</configuration>
RefreshingSessionAWSCredentials(AWSCredentials)
Constructs a RefreshingSessionAWSCredentials object. AmazonSecurityTokenService is created from passed-in credentials and is used to refresh credentials. Passed-in AWSCredentials cannot be session credentials.
RefreshingSessionAWSCredentials(String, String)
Constructs a RefreshingSessionAWSCredentials object. The passed-in AmazonSecurityTokenService is used to refresh credentials.
RefreshingSessionAWSCredentials(AWSCredentials, AmazonSecurityTokenServiceConfig)
Constructs a RefreshingSessionAWSCredentials object. AmazonSecurityTokenService is created from passed-in credentials and config object and is used to refresh credentials. Passed-in AWSCredentials cannot be session credentials.
RefreshingSessionAWSCredentials(String, String, AmazonSecurityTokenServiceConfig)
Constructs a RefreshingSessionAWSCredentials object. The passed-in AmazonSecurityTokenService is used to refresh credentials.
Dispose()()()() (Inherited from AWSCredentials.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetCredentials()()()()
Returns an instance of ImmutableCredentials for this instance
(Inherited from RefreshingAWSCredentials.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
PreemptExpiryTime
The time before actual expiration to expire the credentials. Default PreemptExpiryTime is 15 minutes. Property cannot be set to a negative TimeSpan.
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)

Inheritance Hierarchy

System..::..Object
  Amazon.Runtime..::..AWSCredentials
    Amazon.Runtime..::..RefreshingAWSCredentials
      Amazon.Runtime..::..RefreshingSessionAWSCredentials

See Also