@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTokenWithIAMRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateTokenWithIAMRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTokenWithIAMRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAssertion()
Used only when calling this API for the JWT Bearer grant type.
|
String |
getClientId()
The unique identifier string for the client or application.
|
String |
getCode()
Used only when calling this API for the Authorization Code grant type.
|
String |
getCodeVerifier()
Used only when calling this API for the Authorization Code grant type.
|
String |
getGrantType()
Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer, and Token Exchange.
|
String |
getRedirectUri()
Used only when calling this API for the Authorization Code grant type.
|
String |
getRefreshToken()
Used only when calling this API for the Refresh Token grant type.
|
String |
getRequestedTokenType()
Used only when calling this API for the Token Exchange grant type.
|
List<String> |
getScope()
The list of scopes for which authorization is requested.
|
String |
getSubjectToken()
Used only when calling this API for the Token Exchange grant type.
|
String |
getSubjectTokenType()
Used only when calling this API for the Token Exchange grant type.
|
int |
hashCode() |
void |
setAssertion(String assertion)
Used only when calling this API for the JWT Bearer grant type.
|
void |
setClientId(String clientId)
The unique identifier string for the client or application.
|
void |
setCode(String code)
Used only when calling this API for the Authorization Code grant type.
|
void |
setCodeVerifier(String codeVerifier)
Used only when calling this API for the Authorization Code grant type.
|
void |
setGrantType(String grantType)
Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer, and Token Exchange.
|
void |
setRedirectUri(String redirectUri)
Used only when calling this API for the Authorization Code grant type.
|
void |
setRefreshToken(String refreshToken)
Used only when calling this API for the Refresh Token grant type.
|
void |
setRequestedTokenType(String requestedTokenType)
Used only when calling this API for the Token Exchange grant type.
|
void |
setScope(Collection<String> scope)
The list of scopes for which authorization is requested.
|
void |
setSubjectToken(String subjectToken)
Used only when calling this API for the Token Exchange grant type.
|
void |
setSubjectTokenType(String subjectTokenType)
Used only when calling this API for the Token Exchange grant type.
|
String |
toString()
Returns a string representation of this object.
|
CreateTokenWithIAMRequest |
withAssertion(String assertion)
Used only when calling this API for the JWT Bearer grant type.
|
CreateTokenWithIAMRequest |
withClientId(String clientId)
The unique identifier string for the client or application.
|
CreateTokenWithIAMRequest |
withCode(String code)
Used only when calling this API for the Authorization Code grant type.
|
CreateTokenWithIAMRequest |
withCodeVerifier(String codeVerifier)
Used only when calling this API for the Authorization Code grant type.
|
CreateTokenWithIAMRequest |
withGrantType(String grantType)
Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer, and Token Exchange.
|
CreateTokenWithIAMRequest |
withRedirectUri(String redirectUri)
Used only when calling this API for the Authorization Code grant type.
|
CreateTokenWithIAMRequest |
withRefreshToken(String refreshToken)
Used only when calling this API for the Refresh Token grant type.
|
CreateTokenWithIAMRequest |
withRequestedTokenType(String requestedTokenType)
Used only when calling this API for the Token Exchange grant type.
|
CreateTokenWithIAMRequest |
withScope(Collection<String> scope)
The list of scopes for which authorization is requested.
|
CreateTokenWithIAMRequest |
withScope(String... scope)
The list of scopes for which authorization is requested.
|
CreateTokenWithIAMRequest |
withSubjectToken(String subjectToken)
Used only when calling this API for the Token Exchange grant type.
|
CreateTokenWithIAMRequest |
withSubjectTokenType(String subjectTokenType)
Used only when calling this API for the Token Exchange grant type.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClientId(String clientId)
The unique identifier string for the client or application. This value is an application ARN that has OAuth grants configured.
clientId
- The unique identifier string for the client or application. This value is an application ARN that has
OAuth grants configured.public String getClientId()
The unique identifier string for the client or application. This value is an application ARN that has OAuth grants configured.
public CreateTokenWithIAMRequest withClientId(String clientId)
The unique identifier string for the client or application. This value is an application ARN that has OAuth grants configured.
clientId
- The unique identifier string for the client or application. This value is an application ARN that has
OAuth grants configured.public void setGrantType(String grantType)
Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer, and Token Exchange. Specify one of the following values, depending on the grant type that you want:
* Authorization Code - authorization_code
* Refresh Token - refresh_token
* JWT Bearer - urn:ietf:params:oauth:grant-type:jwt-bearer
* Token Exchange - urn:ietf:params:oauth:grant-type:token-exchange
grantType
- Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer, and Token
Exchange. Specify one of the following values, depending on the grant type that you want:
Authorization Code - authorization_code
Refresh Token - refresh_token
JWT Bearer - urn:ietf:params:oauth:grant-type:jwt-bearer
Token Exchange - urn:ietf:params:oauth:grant-type:token-exchange
public String getGrantType()
Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer, and Token Exchange. Specify one of the following values, depending on the grant type that you want:
* Authorization Code - authorization_code
* Refresh Token - refresh_token
* JWT Bearer - urn:ietf:params:oauth:grant-type:jwt-bearer
* Token Exchange - urn:ietf:params:oauth:grant-type:token-exchange
Authorization Code - authorization_code
Refresh Token - refresh_token
JWT Bearer - urn:ietf:params:oauth:grant-type:jwt-bearer
Token Exchange - urn:ietf:params:oauth:grant-type:token-exchange
public CreateTokenWithIAMRequest withGrantType(String grantType)
Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer, and Token Exchange. Specify one of the following values, depending on the grant type that you want:
* Authorization Code - authorization_code
* Refresh Token - refresh_token
* JWT Bearer - urn:ietf:params:oauth:grant-type:jwt-bearer
* Token Exchange - urn:ietf:params:oauth:grant-type:token-exchange
grantType
- Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer, and Token
Exchange. Specify one of the following values, depending on the grant type that you want:
Authorization Code - authorization_code
Refresh Token - refresh_token
JWT Bearer - urn:ietf:params:oauth:grant-type:jwt-bearer
Token Exchange - urn:ietf:params:oauth:grant-type:token-exchange
public void setCode(String code)
Used only when calling this API for the Authorization Code grant type. This short-term code is used to identify this authorization request. The code is obtained through a redirect from IAM Identity Center to a redirect URI persisted in the Authorization Code GrantOptions for the application.
code
- Used only when calling this API for the Authorization Code grant type. This short-term code is used to
identify this authorization request. The code is obtained through a redirect from IAM Identity Center to a
redirect URI persisted in the Authorization Code GrantOptions for the application.public String getCode()
Used only when calling this API for the Authorization Code grant type. This short-term code is used to identify this authorization request. The code is obtained through a redirect from IAM Identity Center to a redirect URI persisted in the Authorization Code GrantOptions for the application.
public CreateTokenWithIAMRequest withCode(String code)
Used only when calling this API for the Authorization Code grant type. This short-term code is used to identify this authorization request. The code is obtained through a redirect from IAM Identity Center to a redirect URI persisted in the Authorization Code GrantOptions for the application.
code
- Used only when calling this API for the Authorization Code grant type. This short-term code is used to
identify this authorization request. The code is obtained through a redirect from IAM Identity Center to a
redirect URI persisted in the Authorization Code GrantOptions for the application.public void setRefreshToken(String refreshToken)
Used only when calling this API for the Refresh Token grant type. This token is used to refresh short-term tokens, such as the access token, that might expire.
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
- Used only when calling this API for the Refresh Token grant type. This token is used to refresh short-term
tokens, such as the access token, that might expire.
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()
Used only when calling this API for the Refresh Token grant type. This token is used to refresh short-term tokens, such as the access token, that might expire.
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 CreateTokenWithIAMRequest withRefreshToken(String refreshToken)
Used only when calling this API for the Refresh Token grant type. This token is used to refresh short-term tokens, such as the access token, that might expire.
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
- Used only when calling this API for the Refresh Token grant type. This token is used to refresh short-term
tokens, such as the access token, that might expire.
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 setAssertion(String assertion)
Used only when calling this API for the JWT Bearer grant type. This value specifies the JSON Web Token (JWT) issued by a trusted token issuer. To authorize a trusted token issuer, configure the JWT Bearer GrantOptions for the application.
assertion
- Used only when calling this API for the JWT Bearer grant type. This value specifies the JSON Web Token
(JWT) issued by a trusted token issuer. To authorize a trusted token issuer, configure the JWT Bearer
GrantOptions for the application.public String getAssertion()
Used only when calling this API for the JWT Bearer grant type. This value specifies the JSON Web Token (JWT) issued by a trusted token issuer. To authorize a trusted token issuer, configure the JWT Bearer GrantOptions for the application.
public CreateTokenWithIAMRequest withAssertion(String assertion)
Used only when calling this API for the JWT Bearer grant type. This value specifies the JSON Web Token (JWT) issued by a trusted token issuer. To authorize a trusted token issuer, configure the JWT Bearer GrantOptions for the application.
assertion
- Used only when calling this API for the JWT Bearer grant type. This value specifies the JSON Web Token
(JWT) issued by a trusted token issuer. To authorize a trusted token issuer, configure the JWT Bearer
GrantOptions for the application.public List<String> getScope()
The list of scopes for which authorization is requested. The access token that is issued is limited to the scopes
that are granted. If the value is not specified, IAM Identity Center authorizes all scopes configured for the
application, including the following default scopes: openid
, aws
,
sts:identity_context
.
openid
,
aws
, sts:identity_context
.public void setScope(Collection<String> scope)
The list of scopes for which authorization is requested. The access token that is issued is limited to the scopes
that are granted. If the value is not specified, IAM Identity Center authorizes all scopes configured for the
application, including the following default scopes: openid
, aws
,
sts:identity_context
.
scope
- The list of scopes for which authorization is requested. The access token that is issued is limited to the
scopes that are granted. If the value is not specified, IAM Identity Center authorizes all scopes
configured for the application, including the following default scopes: openid
,
aws
, sts:identity_context
.public CreateTokenWithIAMRequest withScope(String... scope)
The list of scopes for which authorization is requested. The access token that is issued is limited to the scopes
that are granted. If the value is not specified, IAM Identity Center authorizes all scopes configured for the
application, including the following default scopes: openid
, aws
,
sts:identity_context
.
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 requested. The access token that is issued is limited to the
scopes that are granted. If the value is not specified, IAM Identity Center authorizes all scopes
configured for the application, including the following default scopes: openid
,
aws
, sts:identity_context
.public CreateTokenWithIAMRequest withScope(Collection<String> scope)
The list of scopes for which authorization is requested. The access token that is issued is limited to the scopes
that are granted. If the value is not specified, IAM Identity Center authorizes all scopes configured for the
application, including the following default scopes: openid
, aws
,
sts:identity_context
.
scope
- The list of scopes for which authorization is requested. The access token that is issued is limited to the
scopes that are granted. If the value is not specified, IAM Identity Center authorizes all scopes
configured for the application, including the following default scopes: openid
,
aws
, sts:identity_context
.public void setRedirectUri(String redirectUri)
Used only when calling this API for the Authorization Code grant type. This value specifies the location of the client or application that has registered to receive the authorization code.
redirectUri
- Used only when calling this API for the Authorization Code grant type. This value specifies the location
of the client or application that has registered to receive the authorization code.public String getRedirectUri()
Used only when calling this API for the Authorization Code grant type. This value specifies the location of the client or application that has registered to receive the authorization code.
public CreateTokenWithIAMRequest withRedirectUri(String redirectUri)
Used only when calling this API for the Authorization Code grant type. This value specifies the location of the client or application that has registered to receive the authorization code.
redirectUri
- Used only when calling this API for the Authorization Code grant type. This value specifies the location
of the client or application that has registered to receive the authorization code.public void setSubjectToken(String subjectToken)
Used only when calling this API for the Token Exchange grant type. This value specifies the subject of the exchange. The value of the subject token must be an access token issued by IAM Identity Center to a different client or application. The access token must have authorized scopes that indicate the requested application as a target audience.
subjectToken
- Used only when calling this API for the Token Exchange grant type. This value specifies the subject of the
exchange. The value of the subject token must be an access token issued by IAM Identity Center to a
different client or application. The access token must have authorized scopes that indicate the requested
application as a target audience.public String getSubjectToken()
Used only when calling this API for the Token Exchange grant type. This value specifies the subject of the exchange. The value of the subject token must be an access token issued by IAM Identity Center to a different client or application. The access token must have authorized scopes that indicate the requested application as a target audience.
public CreateTokenWithIAMRequest withSubjectToken(String subjectToken)
Used only when calling this API for the Token Exchange grant type. This value specifies the subject of the exchange. The value of the subject token must be an access token issued by IAM Identity Center to a different client or application. The access token must have authorized scopes that indicate the requested application as a target audience.
subjectToken
- Used only when calling this API for the Token Exchange grant type. This value specifies the subject of the
exchange. The value of the subject token must be an access token issued by IAM Identity Center to a
different client or application. The access token must have authorized scopes that indicate the requested
application as a target audience.public void setSubjectTokenType(String subjectTokenType)
Used only when calling this API for the Token Exchange grant type. This value specifies the type of token that is passed as the subject of the exchange. The following value is supported:
* Access Token - urn:ietf:params:oauth:token-type:access_token
subjectTokenType
- Used only when calling this API for the Token Exchange grant type. This value specifies the type of token
that is passed as the subject of the exchange. The following value is supported:
Access Token - urn:ietf:params:oauth:token-type:access_token
public String getSubjectTokenType()
Used only when calling this API for the Token Exchange grant type. This value specifies the type of token that is passed as the subject of the exchange. The following value is supported:
* Access Token - urn:ietf:params:oauth:token-type:access_token
Access Token - urn:ietf:params:oauth:token-type:access_token
public CreateTokenWithIAMRequest withSubjectTokenType(String subjectTokenType)
Used only when calling this API for the Token Exchange grant type. This value specifies the type of token that is passed as the subject of the exchange. The following value is supported:
* Access Token - urn:ietf:params:oauth:token-type:access_token
subjectTokenType
- Used only when calling this API for the Token Exchange grant type. This value specifies the type of token
that is passed as the subject of the exchange. The following value is supported:
Access Token - urn:ietf:params:oauth:token-type:access_token
public void setRequestedTokenType(String requestedTokenType)
Used only when calling this API for the Token Exchange grant type. This value specifies the type of token that the requester can receive. 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
requestedTokenType
- Used only when calling this API for the Token Exchange grant type. This value specifies the type of token
that the requester can receive. 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 getRequestedTokenType()
Used only when calling this API for the Token Exchange grant type. This value specifies the type of token that the requester can receive. 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 CreateTokenWithIAMRequest withRequestedTokenType(String requestedTokenType)
Used only when calling this API for the Token Exchange grant type. This value specifies the type of token that the requester can receive. 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
requestedTokenType
- Used only when calling this API for the Token Exchange grant type. This value specifies the type of token
that the requester can receive. 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 void setCodeVerifier(String codeVerifier)
Used only when calling this API for the Authorization Code grant type. This value is generated by the client and presented to validate the original code challenge value the client passed at authorization time.
codeVerifier
- Used only when calling this API for the Authorization Code grant type. This value is generated by the
client and presented to validate the original code challenge value the client passed at authorization
time.public String getCodeVerifier()
Used only when calling this API for the Authorization Code grant type. This value is generated by the client and presented to validate the original code challenge value the client passed at authorization time.
public CreateTokenWithIAMRequest withCodeVerifier(String codeVerifier)
Used only when calling this API for the Authorization Code grant type. This value is generated by the client and presented to validate the original code challenge value the client passed at authorization time.
codeVerifier
- Used only when calling this API for the Authorization Code grant type. This value is generated by the
client and presented to validate the original code challenge value the client passed at authorization
time.public String toString()
toString
in class Object
Object.toString()
public CreateTokenWithIAMRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()