public class GetOpenIdTokenForDeveloperIdentityRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
GetOpenIdTokenForDeveloperIdentity operation.
 
 Registers (or retrieves) a Cognito IdentityId and an
 OpenID Connect token for a user authenticated by your backend
 authentication process. Supplying multiple logins will create an
 implicit linked account. You can only specify one developer provider
 as part of the Logins map, which is linked to the
 identity pool. The developer provider is the "domain" by which Cognito
 will refer to your users.
 
 You can use GetOpenIdTokenForDeveloperIdentity to create
 a new identity and to link new logins (that is, user credentials
 issued by a public provider or developer provider) to an existing
 identity. When you want to create a new identity, the
 IdentityId should be null. When you want to associate a
 new login with an existing authenticated/unauthenticated identity, you
 can do so by providing the existing IdentityId . This API
 will create the identity in the specified IdentityPoolId
 .
 
You must use AWS Developer credentials to call this API.
NOOP| Constructor and Description | 
|---|
| GetOpenIdTokenForDeveloperIdentityRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| GetOpenIdTokenForDeveloperIdentityRequest | addLoginsEntry(String key,
              String value)A set of optional name-value pairs that map provider names to provider
 tokens. | 
| GetOpenIdTokenForDeveloperIdentityRequest | clearLoginsEntries()Removes all the entries added into Logins. | 
| GetOpenIdTokenForDeveloperIdentityRequest | clone()Creates a shallow clone of this request. | 
| boolean | equals(Object obj) | 
| String | getIdentityId()A unique identifier in the format REGION:GUID. | 
| String | getIdentityPoolId()An identity pool ID in the format REGION:GUID. | 
| Map<String,String> | getLogins()A set of optional name-value pairs that map provider names to provider
 tokens. | 
| Long | getTokenDuration()The expiration time of the token, in seconds. | 
| int | hashCode() | 
| void | setIdentityId(String identityId)A unique identifier in the format REGION:GUID. | 
| void | setIdentityPoolId(String identityPoolId)An identity pool ID in the format REGION:GUID. | 
| void | setLogins(Map<String,String> logins)A set of optional name-value pairs that map provider names to provider
 tokens. | 
| void | setTokenDuration(Long tokenDuration)The expiration time of the token, in seconds. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| GetOpenIdTokenForDeveloperIdentityRequest | withIdentityId(String identityId)A unique identifier in the format REGION:GUID. | 
| GetOpenIdTokenForDeveloperIdentityRequest | withIdentityPoolId(String identityPoolId)An identity pool ID in the format REGION:GUID. | 
| GetOpenIdTokenForDeveloperIdentityRequest | withLogins(Map<String,String> logins)A set of optional name-value pairs that map provider names to provider
 tokens. | 
| GetOpenIdTokenForDeveloperIdentityRequest | withTokenDuration(Long tokenDuration)The expiration time of the token, in seconds. | 
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic GetOpenIdTokenForDeveloperIdentityRequest()
public String getIdentityPoolId()
 Constraints:
 Length: 1 - 50
 Pattern: [\w-]+:[0-9a-f-]+
public void setIdentityPoolId(String identityPoolId)
 Constraints:
 Length: 1 - 50
 Pattern: [\w-]+:[0-9a-f-]+
identityPoolId - An identity pool ID in the format REGION:GUID.public GetOpenIdTokenForDeveloperIdentityRequest withIdentityPoolId(String identityPoolId)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 1 - 50
 Pattern: [\w-]+:[0-9a-f-]+
identityPoolId - An identity pool ID in the format REGION:GUID.public String getIdentityId()
 Constraints:
 Length: 1 - 50
 Pattern: [\w-]+:[0-9a-f-]+
public void setIdentityId(String identityId)
 Constraints:
 Length: 1 - 50
 Pattern: [\w-]+:[0-9a-f-]+
identityId - A unique identifier in the format REGION:GUID.public GetOpenIdTokenForDeveloperIdentityRequest withIdentityId(String identityId)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 1 - 50
 Pattern: [\w-]+:[0-9a-f-]+
identityId - A unique identifier in the format REGION:GUID.public Map<String,String> getLogins()
"developer_provider_name": "developer_user_identifier".
 The developer provider is the "domain" by which Cognito will refer to
 your users; you provided this domain while creating/updating the
 identity pool. The developer user identifier is an identifier from
 your backend that uniquely identifies a user. When you create an
 identity pool, you can specify the supported logins.
 
 Constraints:
 Length: 0 - 10
"developer_provider_name": "developer_user_identifier".
         The developer provider is the "domain" by which Cognito will refer to
         your users; you provided this domain while creating/updating the
         identity pool. The developer user identifier is an identifier from
         your backend that uniquely identifies a user. When you create an
         identity pool, you can specify the supported logins.public void setLogins(Map<String,String> logins)
"developer_provider_name": "developer_user_identifier".
 The developer provider is the "domain" by which Cognito will refer to
 your users; you provided this domain while creating/updating the
 identity pool. The developer user identifier is an identifier from
 your backend that uniquely identifies a user. When you create an
 identity pool, you can specify the supported logins.
 
 Constraints:
 Length: 0 - 10
logins - A set of optional name-value pairs that map provider names to provider
         tokens. Each name-value pair represents a user from a public provider
         or developer provider. If the user is from a developer provider, the
         name-value pair will follow the syntax
         "developer_provider_name": "developer_user_identifier".
         The developer provider is the "domain" by which Cognito will refer to
         your users; you provided this domain while creating/updating the
         identity pool. The developer user identifier is an identifier from
         your backend that uniquely identifies a user. When you create an
         identity pool, you can specify the supported logins.public GetOpenIdTokenForDeveloperIdentityRequest withLogins(Map<String,String> logins)
"developer_provider_name": "developer_user_identifier".
 The developer provider is the "domain" by which Cognito will refer to
 your users; you provided this domain while creating/updating the
 identity pool. The developer user identifier is an identifier from
 your backend that uniquely identifies a user. When you create an
 identity pool, you can specify the supported logins.
 Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 10
logins - A set of optional name-value pairs that map provider names to provider
         tokens. Each name-value pair represents a user from a public provider
         or developer provider. If the user is from a developer provider, the
         name-value pair will follow the syntax
         "developer_provider_name": "developer_user_identifier".
         The developer provider is the "domain" by which Cognito will refer to
         your users; you provided this domain while creating/updating the
         identity pool. The developer user identifier is an identifier from
         your backend that uniquely identifies a user. When you create an
         identity pool, you can specify the supported logins.public GetOpenIdTokenForDeveloperIdentityRequest addLoginsEntry(String key, String value)
"developer_provider_name": "developer_user_identifier".
 The developer provider is the "domain" by which Cognito will refer to
 your users; you provided this domain while creating/updating the
 identity pool. The developer user identifier is an identifier from
 your backend that uniquely identifies a user. When you create an
 identity pool, you can specify the supported logins.
 The method adds a new key-value pair into Logins parameter, and returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 10
key - The key of the entry to be added into Logins.value - The corresponding value of the entry to be added into Logins.public GetOpenIdTokenForDeveloperIdentityRequest clearLoginsEntries()
Returns a reference to this object so that method calls can be chained together.
public Long getTokenDuration()
 Constraints:
 Range: 1 - 86400
public void setTokenDuration(Long tokenDuration)
 Constraints:
 Range: 1 - 86400
tokenDuration - The expiration time of the token, in seconds. You can specify a custom
         expiration time for the token so that you can cache it. If you don't
         provide an expiration time, the token is valid for 15 minutes. You can
         exchange the token with Amazon STS for temporary AWS credentials,
         which are valid for a maximum of one hour. The maximum token duration
         you can set is 24 hours. You should take care in setting the
         expiration time for a token, as there are significant security
         implications: an attacker could use a leaked token to access your AWS
         resources for the token's duration.public GetOpenIdTokenForDeveloperIdentityRequest withTokenDuration(Long tokenDuration)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Range: 1 - 86400
tokenDuration - The expiration time of the token, in seconds. You can specify a custom
         expiration time for the token so that you can cache it. If you don't
         provide an expiration time, the token is valid for 15 minutes. You can
         exchange the token with Amazon STS for temporary AWS credentials,
         which are valid for a maximum of one hour. The maximum token duration
         you can set is 24 hours. You should take care in setting the
         expiration time for a token, as there are significant security
         implications: an attacker could use a leaked token to access your AWS
         resources for the token's duration.public String toString()
toString in class ObjectObject.toString()public GetOpenIdTokenForDeveloperIdentityRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2015. All rights reserved.