Class CreateTokenRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateTokenRequest.Builder,CreateTokenRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CreateTokenRequest.Builderbuilder()final StringclientId()The unique identifier string for the client or application.final StringA secret string generated for the client.final Stringcode()Used only when calling this API for the Authorization Code grant type.final StringUsed only when calling this API for the Authorization Code grant type.final StringUsed only when calling this API for the Device Code grant type.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final StringSupports the following OAuth grant types: Authorization Code, Device Code, and Refresh Token.final inthashCode()final booleanhasScope()For responses, this returns true if the service returned a value for the Scope property.final StringUsed only when calling this API for the Authorization Code grant type.final StringUsed only when calling this API for the Refresh Token grant type.scope()The list of scopes for which authorization is requested.static Class<? extends CreateTokenRequest.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
clientId
The unique identifier string for the client or application. This value comes from the result of the RegisterClient API.
- Returns:
- The unique identifier string for the client or application. This value comes from the 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.
- Returns:
- A secret string generated for the client. This value should come from the persisted result of the RegisterClient API.
-
grantType
Supports the following OAuth grant types: Authorization Code, Device Code, and Refresh Token. Specify one of the following values, depending on the grant type that you want:
* Authorization Code -
authorization_code* Device Code -
urn:ietf:params:oauth:grant-type:device_code* Refresh Token -
refresh_token- Returns:
- Supports the following OAuth grant types: Authorization Code, Device Code, and Refresh Token. Specify one
of the following values, depending on the grant type that you want:
* Authorization Code -
authorization_code* Device Code -
urn:ietf:params:oauth:grant-type:device_code* Refresh Token -
refresh_token
-
deviceCode
Used only when calling this API for the Device Code grant type. This short-lived code is used to identify this authorization request. This comes from the result of the StartDeviceAuthorization API.
- Returns:
- Used only when calling this API for the Device Code grant type. This short-lived code is used to identify this authorization request. This comes from the result of the StartDeviceAuthorization API.
-
code
Used only when calling this API for the Authorization Code grant type. The short-lived code is used to identify this authorization request.
- Returns:
- Used only when calling this API for the Authorization Code grant type. The short-lived code is used to identify this authorization request.
-
refreshToken
Used only when calling this API for the Refresh Token grant type. This token is used to refresh short-lived 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.
- Returns:
- Used only when calling this API for the Refresh Token grant type. This token is used to refresh
short-lived 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.
-
hasScope
public final boolean hasScope()For responses, this returns true if the service returned a value for the Scope property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
scope
The list of scopes for which authorization is requested. This parameter has no effect; the access token will always include all scopes configured during client registration.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasScope()method.- Returns:
- The list of scopes for which authorization is requested. This parameter has no effect; the access token will always include all scopes configured during client registration.
-
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.
- Returns:
- 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.
-
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.
- Returns:
- 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.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateTokenRequest.Builder,CreateTokenRequest> - Specified by:
toBuilderin classSsoOidcRequest
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-