C# 클래스 Amazon.CognitoIdentity.CognitoAWSCredentials

Temporary, short-lived session credentials that are automatically retrieved from Amazon Cognito Identity Service and AWS Security Token Service. Depending on configured Logins, credentials may be authenticated or unauthenticated.
상속: Amazon.Runtime.RefreshingAWSCredentials
파일 보기 프로젝트 열기: aws/aws-sdk-net 1 사용 예제들

공개 메소드들

메소드 설명
CacheIdentityId ( string identityId ) : void

Caches the identity id retrieved from Cognito.

For Unity, the Identity id is stored in PlayerPrefs property.

ClearIdentityCache ( ) : void

Clears the currently identity id from the cache.

GetCachedIdentityId ( ) : string

Gets the previously cached the identity id retrieved from Cognito. For Unity, the Identity id is stored in PlayerPrefs

GetCredentialsAsync ( AmazonCognitoIdentityCallback callback, AsyncOptions options = null ) : void

Returns an instance of ImmutableCredentials for this instance

GetIdentityIdAsync ( AmazonCognitoIdentityCallback callback, AsyncOptions options = null ) : void

Gets the Identity Id corresponding to the credentials retrieved from Cognito. Note: this setting may change during execution. To be notified of its new value, attach a listener to IdentityChangedEvent

비공개 메소드들

메소드 설명
CacheCredentials ( CredentialsRefreshState credentialsState ) : void

Caches the credentials to player pref's

GetCachedCredentials ( ) : CredentialsRefreshState

Gets the cached credentials state

GetCredentialsForIdentity ( GetCredentialsForIdentityRequest getCredentialsRequest ) : Amazon.CognitoIdentity.Model.GetCredentialsForIdentityResponse
GetOpenId ( Amazon.CognitoIdentity.Model.GetOpenIdTokenRequest getTokenRequest ) : GetOpenIdTokenResponse
GetStsCredentials ( AssumeRoleWithWebIdentityRequest assumeRequest ) : Credentials

메소드 상세

CacheIdentityId() 공개 메소드

Caches the identity id retrieved from Cognito.

For Unity, the Identity id is stored in PlayerPrefs property.

public CacheIdentityId ( string identityId ) : void
identityId string The Cognito identity id to cache
리턴 void

ClearIdentityCache() 공개 메소드

Clears the currently identity id from the cache.
public ClearIdentityCache ( ) : void
리턴 void

GetCachedIdentityId() 공개 메소드

Gets the previously cached the identity id retrieved from Cognito. For Unity, the Identity id is stored in PlayerPrefs
public GetCachedIdentityId ( ) : string
리턴 string

GetCredentialsAsync() 공개 메소드

Returns an instance of ImmutableCredentials for this instance
public GetCredentialsAsync ( AmazonCognitoIdentityCallback callback, AsyncOptions options = null ) : void
callback AmazonCognitoIdentityCallback The callback which is executed when the asynchronous operations is completed
options Amazon.Runtime.AsyncOptions Options for executing asynchronous operation
리턴 void

GetIdentityIdAsync() 공개 메소드

Gets the Identity Id corresponding to the credentials retrieved from Cognito. Note: this setting may change during execution. To be notified of its new value, attach a listener to IdentityChangedEvent
public GetIdentityIdAsync ( AmazonCognitoIdentityCallback callback, AsyncOptions options = null ) : void
callback AmazonCognitoIdentityCallback The callback which is executed when the asynchronous operations is completed
options Amazon.Runtime.AsyncOptions Options for executing asynchronous operation
리턴 void