C# 클래스 Amazon.SecurityToken.SAML.StoredProfileSAMLCredentials

상속: Amazon.Runtime.RefreshingAWSCredentials
파일 보기 프로젝트 열기: aws/aws-sdk-net

공개 프로퍼티들

프로퍼티 타입 설명
MaximumCredentialTimespan System.TimeSpan
MinimumCredentialTimespan System.TimeSpan

공개 메소드들

메소드 설명
StoredProfileSAMLCredentials ( ) : System

Constructs an instance of StoredProfileSAMLCredentials. This constructor searches for details of the role to assume, and optional credentials to use with the endpoint, using the profile name specified in the App.config.

StoredProfileSAMLCredentials ( string profileName, string profilesLocation ) : System

Constructs an instance of StoredProfileSAMLCredentials. After construction call one of the Authenticate methods to authenticate the user/process and obtain temporary AWS credentials.

For users who are domain joined (the role profile does not contain user identity information) the temporary credentials will be refreshed automatically as needed. Non domain-joined users (those with user identity data in the profile) are required to re-authenticate when credential refresh is required. An exception is thrown when attempt is made to refresh credentials in this scenario. The consuming code of this class should catch the exception and prompt the user for credentials, then call Authenticate to re-initialize with a new set of temporary AWS credentials.

The ini-format credentials file is not currently supported.

보호된 메소드들

메소드 설명
GenerateNewCredentials ( ) : CredentialsRefreshState

Refresh credentials after expiry. If the role profile is configured to not use the default user identity, an exception is thrown if the UserAuthenticationCallback property has not been set.

Validate ( ) : void

If non-default credentials are to be used for authentication, validates that the authentication required callback has been populated.

비공개 메소드들

메소드 설명
Authenticate ( ICredentials userCredential, System.TimeSpan credentialDuration ) : CredentialsRefreshState

메소드 상세

GenerateNewCredentials() 보호된 메소드

Refresh credentials after expiry. If the role profile is configured to not use the default user identity, an exception is thrown if the UserAuthenticationCallback property has not been set.
protected GenerateNewCredentials ( ) : CredentialsRefreshState
리턴 CredentialsRefreshState

StoredProfileSAMLCredentials() 공개 메소드

Constructs an instance of StoredProfileSAMLCredentials. This constructor searches for details of the role to assume, and optional credentials to use with the endpoint, using the profile name specified in the App.config.
public StoredProfileSAMLCredentials ( ) : System
리턴 System

StoredProfileSAMLCredentials() 공개 메소드

Constructs an instance of StoredProfileSAMLCredentials. After construction call one of the Authenticate methods to authenticate the user/process and obtain temporary AWS credentials.

For users who are domain joined (the role profile does not contain user identity information) the temporary credentials will be refreshed automatically as needed. Non domain-joined users (those with user identity data in the profile) are required to re-authenticate when credential refresh is required. An exception is thrown when attempt is made to refresh credentials in this scenario. The consuming code of this class should catch the exception and prompt the user for credentials, then call Authenticate to re-initialize with a new set of temporary AWS credentials.

The ini-format credentials file is not currently supported.
public StoredProfileSAMLCredentials ( string profileName, string profilesLocation ) : System
profileName string /// The name of the profile holding the necessary role data to enable authentication and credential generation. ///
profilesLocation string Reserved for future use.
리턴 System

Validate() 보호된 메소드

If non-default credentials are to be used for authentication, validates that the authentication required callback has been populated.
protected Validate ( ) : void
리턴 void

프로퍼티 상세

MaximumCredentialTimespan 공개적으로 정적으로 프로퍼티

The maximum allowed timespan for generated credentials, per STS documentation.
public static TimeSpan,System MaximumCredentialTimespan
리턴 System.TimeSpan

MinimumCredentialTimespan 공개적으로 정적으로 프로퍼티

The minimum allowed timespan for generated credentials, per STS documentation.
public static TimeSpan,System MinimumCredentialTimespan
리턴 System.TimeSpan