@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTokenWithIAMResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
CreateTokenWithIAMResult() |
Modifier and Type | Method and Description |
---|---|
CreateTokenWithIAMResult |
clone() |
boolean |
equals(Object obj) |
String |
getAccessToken()
A bearer token to access Amazon Web Services accounts and applications assigned to a user.
|
Integer |
getExpiresIn()
Indicates the time in seconds when an access token will expire.
|
String |
getIdToken()
A JSON Web Token (JWT) that identifies the user associated with the issued access token.
|
String |
getIssuedTokenType()
Indicates the type of tokens that are issued by IAM Identity Center.
|
String |
getRefreshToken()
A token that, if present, can be used to refresh a previously issued access token that might have expired.
|
List<String> |
getScope()
The list of scopes for which authorization is granted.
|
String |
getTokenType()
Used to notify the requester that the returned token is an access token.
|
int |
hashCode() |
void |
setAccessToken(String accessToken)
A bearer token to access Amazon Web Services accounts and applications assigned to a user.
|
void |
setExpiresIn(Integer expiresIn)
Indicates the time in seconds when an access token will expire.
|
void |
setIdToken(String idToken)
A JSON Web Token (JWT) that identifies the user associated with the issued access token.
|
void |
setIssuedTokenType(String issuedTokenType)
Indicates the type of tokens that are issued by IAM Identity Center.
|
void |
setRefreshToken(String refreshToken)
A token that, if present, can be used to refresh a previously issued access token that might have expired.
|
void |
setScope(Collection<String> scope)
The list of scopes for which authorization is granted.
|
void |
setTokenType(String tokenType)
Used to notify the requester that the returned token is an access token.
|
String |
toString()
Returns a string representation of this object.
|
CreateTokenWithIAMResult |
withAccessToken(String accessToken)
A bearer token to access Amazon Web Services accounts and applications assigned to a user.
|
CreateTokenWithIAMResult |
withExpiresIn(Integer expiresIn)
Indicates the time in seconds when an access token will expire.
|
CreateTokenWithIAMResult |
withIdToken(String idToken)
A JSON Web Token (JWT) that identifies the user associated with the issued access token.
|
CreateTokenWithIAMResult |
withIssuedTokenType(String issuedTokenType)
Indicates the type of tokens that are issued by IAM Identity Center.
|
CreateTokenWithIAMResult |
withRefreshToken(String refreshToken)
A token that, if present, can be used to refresh a previously issued access token that might have expired.
|
CreateTokenWithIAMResult |
withScope(Collection<String> scope)
The list of scopes for which authorization is granted.
|
CreateTokenWithIAMResult |
withScope(String... scope)
The list of scopes for which authorization is granted.
|
CreateTokenWithIAMResult |
withTokenType(String tokenType)
Used to notify the requester that the returned token is an access token.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setAccessToken(String accessToken)
A bearer token to access Amazon Web Services accounts and applications assigned to a user.
accessToken
- A bearer token to access Amazon Web Services accounts and applications assigned to a user.public String getAccessToken()
A bearer token to access Amazon Web Services accounts and applications assigned to a user.
public CreateTokenWithIAMResult withAccessToken(String accessToken)
A bearer token to access Amazon Web Services accounts and applications assigned to a user.
accessToken
- A bearer token to access Amazon Web Services accounts and applications assigned to a user.public void setTokenType(String tokenType)
Used to notify the requester that the returned token is an access token. The supported token type is
Bearer
.
tokenType
- Used to notify the requester that the returned token is an access token. The supported token type is
Bearer
.public String getTokenType()
Used to notify the requester that the returned token is an access token. The supported token type is
Bearer
.
Bearer
.public CreateTokenWithIAMResult withTokenType(String tokenType)
Used to notify the requester that the returned token is an access token. The supported token type is
Bearer
.
tokenType
- Used to notify the requester that the returned token is an access token. The supported token type is
Bearer
.public void setExpiresIn(Integer expiresIn)
Indicates the time in seconds when an access token will expire.
expiresIn
- Indicates the time in seconds when an access token will expire.public Integer getExpiresIn()
Indicates the time in seconds when an access token will expire.
public CreateTokenWithIAMResult withExpiresIn(Integer expiresIn)
Indicates the time in seconds when an access token will expire.
expiresIn
- Indicates the time in seconds when an access token will expire.public void setRefreshToken(String refreshToken)
A token that, if present, can be used to refresh a previously issued access token that might have expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
refreshToken
- A token that, if present, can be used to refresh a previously issued access token that might have
expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
public String getRefreshToken()
A token that, if present, can be used to refresh a previously issued access token that might have expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
public CreateTokenWithIAMResult withRefreshToken(String refreshToken)
A token that, if present, can be used to refresh a previously issued access token that might have expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
refreshToken
- A token that, if present, can be used to refresh a previously issued access token that might have
expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
public void setIdToken(String idToken)
A JSON Web Token (JWT) that identifies the user associated with the issued access token.
idToken
- A JSON Web Token (JWT) that identifies the user associated with the issued access token.public String getIdToken()
A JSON Web Token (JWT) that identifies the user associated with the issued access token.
public CreateTokenWithIAMResult withIdToken(String idToken)
A JSON Web Token (JWT) that identifies the user associated with the issued access token.
idToken
- A JSON Web Token (JWT) that identifies the user associated with the issued access token.public void setIssuedTokenType(String issuedTokenType)
Indicates the type of tokens that are issued by IAM Identity Center. The following values are supported:
* Access Token - urn:ietf:params:oauth:token-type:access_token
* Refresh Token - urn:ietf:params:oauth:token-type:refresh_token
issuedTokenType
- Indicates the type of tokens that are issued by IAM Identity Center. The following values are supported:
Access Token - urn:ietf:params:oauth:token-type:access_token
Refresh Token - urn:ietf:params:oauth:token-type:refresh_token
public String getIssuedTokenType()
Indicates the type of tokens that are issued by IAM Identity Center. The following values are supported:
* Access Token - urn:ietf:params:oauth:token-type:access_token
* Refresh Token - urn:ietf:params:oauth:token-type:refresh_token
Access Token - urn:ietf:params:oauth:token-type:access_token
Refresh Token - urn:ietf:params:oauth:token-type:refresh_token
public CreateTokenWithIAMResult withIssuedTokenType(String issuedTokenType)
Indicates the type of tokens that are issued by IAM Identity Center. The following values are supported:
* Access Token - urn:ietf:params:oauth:token-type:access_token
* Refresh Token - urn:ietf:params:oauth:token-type:refresh_token
issuedTokenType
- Indicates the type of tokens that are issued by IAM Identity Center. The following values are supported:
Access Token - urn:ietf:params:oauth:token-type:access_token
Refresh Token - urn:ietf:params:oauth:token-type:refresh_token
public List<String> getScope()
The list of scopes for which authorization is granted. The access token that is issued is limited to the scopes that are granted.
public void setScope(Collection<String> scope)
The list of scopes for which authorization is granted. The access token that is issued is limited to the scopes that are granted.
scope
- The list of scopes for which authorization is granted. The access token that is issued is limited to the
scopes that are granted.public CreateTokenWithIAMResult withScope(String... scope)
The list of scopes for which authorization is granted. The access token that is issued is limited to the scopes that are granted.
NOTE: This method appends the values to the existing list (if any). Use
setScope(java.util.Collection)
or withScope(java.util.Collection)
if you want to override the
existing values.
scope
- The list of scopes for which authorization is granted. The access token that is issued is limited to the
scopes that are granted.public CreateTokenWithIAMResult withScope(Collection<String> scope)
The list of scopes for which authorization is granted. The access token that is issued is limited to the scopes that are granted.
scope
- The list of scopes for which authorization is granted. The access token that is issued is limited to the
scopes that are granted.public String toString()
toString
in class Object
Object.toString()
public CreateTokenWithIAMResult clone()