public static interface CreateTokenRequest.Builder extends SsoOidcRequest.Builder, SdkPojo, CopyableBuilder<CreateTokenRequest.Builder,CreateTokenRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateTokenRequest.Builder |
clientId(String clientId)
The unique identifier string for each client.
|
CreateTokenRequest.Builder |
clientSecret(String clientSecret)
A secret string generated for the client.
|
CreateTokenRequest.Builder |
code(String code)
The authorization code received from the authorization service.
|
CreateTokenRequest.Builder |
deviceCode(String deviceCode)
Used only when calling this API for the device code grant type.
|
CreateTokenRequest.Builder |
grantType(String grantType)
Supports grant types for authorization code, refresh token, and device code request.
|
CreateTokenRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateTokenRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateTokenRequest.Builder |
redirectUri(String redirectUri)
The location of the application that will receive the authorization code.
|
CreateTokenRequest.Builder |
refreshToken(String refreshToken)
The token used to obtain an access token in the event that the access token is invalid or expired.
|
CreateTokenRequest.Builder |
scope(Collection<String> scope)
The list of scopes that is defined by the client.
|
CreateTokenRequest.Builder |
scope(String... scope)
The list of scopes that is defined by the client.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateTokenRequest.Builder clientId(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.CreateTokenRequest.Builder clientSecret(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.CreateTokenRequest.Builder grantType(String grantType)
Supports grant types for authorization code, refresh token, and device code request.
grantType - Supports grant types for authorization code, refresh token, and device code request.CreateTokenRequest.Builder deviceCode(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.CreateTokenRequest.Builder code(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.CreateTokenRequest.Builder refreshToken(String refreshToken)
The token used to obtain an access token in the event that the access token is invalid or expired. This token is not issued by the service.
refreshToken - The token used to obtain an access token in the event that the access token is invalid or expired.
This token is not issued by the service.CreateTokenRequest.Builder scope(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.CreateTokenRequest.Builder scope(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.CreateTokenRequest.Builder redirectUri(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.CreateTokenRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateTokenRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2020. All rights reserved.