public class GetOpenIdTokenRequest extends AmazonWebServiceRequest implements Serializable
Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by GetId. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.
The OpenId token is valid for 10 minutes.
This is a public API. You do not need any credentials to call this API.
Constructor and Description |
---|
GetOpenIdTokenRequest() |
Modifier and Type | Method and Description |
---|---|
GetOpenIdTokenRequest |
addLoginsEntry(String key,
String value)
A set of optional name-value pairs that map provider names to provider
tokens.
|
GetOpenIdTokenRequest |
clearLoginsEntries()
Removes all the entries added into Logins.
|
boolean |
equals(Object obj) |
String |
getIdentityId()
A unique identifier in the format REGION:GUID.
|
Map<String,String> |
getLogins()
A set of optional name-value pairs that map provider names to provider
tokens.
|
int |
hashCode() |
void |
setIdentityId(String identityId)
A unique identifier 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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetOpenIdTokenRequest |
withIdentityId(String identityId)
A unique identifier in the format REGION:GUID.
|
GetOpenIdTokenRequest |
withLogins(Map<String,String> logins)
A set of optional name-value pairs that map provider names to provider
tokens.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getIdentityId()
A unique identifier in the format REGION:GUID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
A unique identifier in the format REGION:GUID.
public void setIdentityId(String identityId)
A unique identifier in the format REGION:GUID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
identityId
- A unique identifier in the format REGION:GUID.
public GetOpenIdTokenRequest withIdentityId(String identityId)
A unique identifier in the format REGION:GUID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
identityId
- A unique identifier in the format REGION:GUID.
public Map<String,String> getLogins()
A set of optional name-value pairs that map provider names to provider
tokens. When using graph.facebook.com and www.amazon.com, supply the
access_token returned from the provider's authflow. For
accounts.google.com, an Amazon Cognito user pool provider, or any other
OpenId Connect provider, always include the id_token
.
A set of optional name-value pairs that map provider names to
provider tokens. When using graph.facebook.com and
www.amazon.com, supply the access_token returned from the
provider's authflow. For accounts.google.com, an Amazon Cognito
user pool provider, or any other OpenId Connect provider, always
include the id_token
.
public void setLogins(Map<String,String> logins)
A set of optional name-value pairs that map provider names to provider
tokens. When using graph.facebook.com and www.amazon.com, supply the
access_token returned from the provider's authflow. For
accounts.google.com, an Amazon Cognito user pool provider, or any other
OpenId Connect provider, always include the id_token
.
logins
-
A set of optional name-value pairs that map provider names to
provider tokens. When using graph.facebook.com and
www.amazon.com, supply the access_token returned from the
provider's authflow. For accounts.google.com, an Amazon
Cognito user pool provider, or any other OpenId Connect
provider, always include the id_token
.
public GetOpenIdTokenRequest withLogins(Map<String,String> logins)
A set of optional name-value pairs that map provider names to provider
tokens. When using graph.facebook.com and www.amazon.com, supply the
access_token returned from the provider's authflow. For
accounts.google.com, an Amazon Cognito user pool provider, or any other
OpenId Connect provider, always include the id_token
.
Returns a reference to this object so that method calls can be chained together.
logins
-
A set of optional name-value pairs that map provider names to
provider tokens. When using graph.facebook.com and
www.amazon.com, supply the access_token returned from the
provider's authflow. For accounts.google.com, an Amazon
Cognito user pool provider, or any other OpenId Connect
provider, always include the id_token
.
public GetOpenIdTokenRequest addLoginsEntry(String key, String value)
A set of optional name-value pairs that map provider names to provider
tokens. When using graph.facebook.com and www.amazon.com, supply the
access_token returned from the provider's authflow. For
accounts.google.com, an Amazon Cognito user pool provider, or any other
OpenId Connect provider, always include the id_token
.
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.
key
- The key of the entry to be added into Logins.value
- The corresponding value of the entry to be added into
Logins.public GetOpenIdTokenRequest clearLoginsEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.