@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTokenRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateTokenRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTokenRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientId()
The unique identifier string for each client.
|
String |
getClientSecret()
A secret string generated for the client.
|
String |
getCode()
The authorization code received from the authorization service.
|
String |
getDeviceCode()
Used only when calling this API for the device code grant type.
|
String |
getGrantType()
Supports grant types for the authorization code, refresh token, and device code request.
|
String |
getRedirectUri()
The location of the application that will receive the authorization code.
|
String |
getRefreshToken()
Currently,
refreshToken is not yet implemented and is not supported. |
List<String> |
getScope()
The list of scopes that is defined by the client.
|
int |
hashCode() |
void |
setClientId(String clientId)
The unique identifier string for each client.
|
void |
setClientSecret(String clientSecret)
A secret string generated for the client.
|
void |
setCode(String code)
The authorization code received from the authorization service.
|
void |
setDeviceCode(String deviceCode)
Used only when calling this API for the device code grant type.
|
void |
setGrantType(String grantType)
Supports grant types for the authorization code, refresh token, and device code request.
|
void |
setRedirectUri(String redirectUri)
The location of the application that will receive the authorization code.
|
void |
setRefreshToken(String refreshToken)
Currently,
refreshToken is not yet implemented and is not supported. |
void |
setScope(Collection<String> scope)
The list of scopes that is defined by the client.
|
String |
toString()
Returns a string representation of this object.
|
CreateTokenRequest |
withClientId(String clientId)
The unique identifier string for each client.
|
CreateTokenRequest |
withClientSecret(String clientSecret)
A secret string generated for the client.
|
CreateTokenRequest |
withCode(String code)
The authorization code received from the authorization service.
|
CreateTokenRequest |
withDeviceCode(String deviceCode)
Used only when calling this API for the device code grant type.
|
CreateTokenRequest |
withGrantType(String grantType)
Supports grant types for the authorization code, refresh token, and device code request.
|
CreateTokenRequest |
withRedirectUri(String redirectUri)
The location of the application that will receive the authorization code.
|
CreateTokenRequest |
withRefreshToken(String refreshToken)
Currently,
refreshToken is not yet implemented and is not supported. |
CreateTokenRequest |
withScope(Collection<String> scope)
The list of scopes that is defined by the client.
|
CreateTokenRequest |
withScope(String... scope)
The list of scopes that is defined by the client.
|
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 each client. This value should come from the persisted result of the RegisterClient API.
clientId
- The unique identifier string for each client. This value should come from the persisted result of the
RegisterClient API.public String getClientId()
The unique identifier string for each client. This value should come from the persisted result of the RegisterClient API.
public CreateTokenRequest withClientId(String clientId)
The unique identifier string for each client. This value should come from the persisted result of the RegisterClient API.
clientId
- The unique identifier string for each client. This value should come from the persisted result of the
RegisterClient API.public void setClientSecret(String clientSecret)
A secret string generated for the client. This value should come from the persisted result of the RegisterClient API.
clientSecret
- A secret string generated for the client. This value should come from the persisted result of the
RegisterClient API.public String getClientSecret()
A secret string generated for the client. This value should come from the persisted result of the RegisterClient API.
public CreateTokenRequest withClientSecret(String clientSecret)
A secret string generated for the client. This value should come from the persisted result of the RegisterClient API.
clientSecret
- A secret string generated for the client. This value should come from the persisted result of the
RegisterClient API.public void setGrantType(String grantType)
Supports grant types for the authorization code, refresh token, and device code request. For device code requests, specify the following value:
urn:ietf:params:oauth:grant-type:device_code
For information about how to obtain the device code, see the StartDeviceAuthorization topic.
grantType
- Supports grant types for the authorization code, refresh token, and device code request. For device code
requests, specify the following value:
urn:ietf:params:oauth:grant-type:device_code
For information about how to obtain the device code, see the StartDeviceAuthorization topic.
public String getGrantType()
Supports grant types for the authorization code, refresh token, and device code request. For device code requests, specify the following value:
urn:ietf:params:oauth:grant-type:device_code
For information about how to obtain the device code, see the StartDeviceAuthorization topic.
urn:ietf:params:oauth:grant-type:device_code
For information about how to obtain the device code, see the StartDeviceAuthorization topic.
public CreateTokenRequest withGrantType(String grantType)
Supports grant types for the authorization code, refresh token, and device code request. For device code requests, specify the following value:
urn:ietf:params:oauth:grant-type:device_code
For information about how to obtain the device code, see the StartDeviceAuthorization topic.
grantType
- Supports grant types for the authorization code, refresh token, and device code request. For device code
requests, specify the following value:
urn:ietf:params:oauth:grant-type:device_code
For information about how to obtain the device code, see the StartDeviceAuthorization topic.
public void setDeviceCode(String deviceCode)
Used only when calling this API for the device code grant type. This short-term code is used to identify this authentication attempt. This should come from an in-memory reference to the result of the StartDeviceAuthorization API.
deviceCode
- Used only when calling this API for the device code grant type. This short-term code is used to identify
this authentication attempt. This should come from an in-memory reference to the result of the
StartDeviceAuthorization API.public String getDeviceCode()
Used only when calling this API for the device code grant type. This short-term code is used to identify this authentication attempt. This should come from an in-memory reference to the result of the StartDeviceAuthorization API.
public CreateTokenRequest withDeviceCode(String deviceCode)
Used only when calling this API for the device code grant type. This short-term code is used to identify this authentication attempt. This should come from an in-memory reference to the result of the StartDeviceAuthorization API.
deviceCode
- Used only when calling this API for the device code grant type. This short-term code is used to identify
this authentication attempt. This should come from an in-memory reference to the result of the
StartDeviceAuthorization API.public void setCode(String code)
The authorization code received from the authorization service. This parameter is required to perform an authorization grant request to get access to a token.
code
- The authorization code received from the authorization service. This parameter is required to perform an
authorization grant request to get access to a token.public String getCode()
The authorization code received from the authorization service. This parameter is required to perform an authorization grant request to get access to a token.
public CreateTokenRequest withCode(String code)
The authorization code received from the authorization service. This parameter is required to perform an authorization grant request to get access to a token.
code
- The authorization code received from the authorization service. This parameter is required to perform an
authorization grant request to get access to a token.public void setRefreshToken(String refreshToken)
Currently, refreshToken
is not yet implemented and is not supported. 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.
The token used to obtain an access token in the event that the access token is invalid or expired.
refreshToken
- Currently, refreshToken
is not yet implemented and is not supported. 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.
The token used to obtain an access token in the event that the access token is invalid or expired.
public String getRefreshToken()
Currently, refreshToken
is not yet implemented and is not supported. 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.
The token used to obtain an access token in the event that the access token is invalid or expired.
refreshToken
is not yet implemented and is not supported. 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.
The token used to obtain an access token in the event that the access token is invalid or expired.
public CreateTokenRequest withRefreshToken(String refreshToken)
Currently, refreshToken
is not yet implemented and is not supported. 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.
The token used to obtain an access token in the event that the access token is invalid or expired.
refreshToken
- Currently, refreshToken
is not yet implemented and is not supported. 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.
The token used to obtain an access token in the event that the access token is invalid or expired.
public List<String> getScope()
The list of scopes that is defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
public void setScope(Collection<String> scope)
The list of scopes that is defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
scope
- The list of scopes that is defined by the client. Upon authorization, this list is used to restrict
permissions when granting an access token.public CreateTokenRequest withScope(String... scope)
The list of scopes that is defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
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 that is defined by the client. Upon authorization, this list is used to restrict
permissions when granting an access token.public CreateTokenRequest withScope(Collection<String> scope)
The list of scopes that is defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
scope
- The list of scopes that is defined by the client. Upon authorization, this list is used to restrict
permissions when granting an access token.public void setRedirectUri(String redirectUri)
The location of the application that will receive the authorization code. Users authorize the service to send the request to this location.
redirectUri
- The location of the application that will receive the authorization code. Users authorize the service to
send the request to this location.public String getRedirectUri()
The location of the application that will receive the authorization code. Users authorize the service to send the request to this location.
public CreateTokenRequest withRedirectUri(String redirectUri)
The location of the application that will receive the authorization code. Users authorize the service to send the request to this location.
redirectUri
- The location of the application that will receive the authorization code. Users authorize the service to
send the request to this location.public String toString()
toString
in class Object
Object.toString()
public CreateTokenRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()