Class ConnectorAuthorizationCodeProperties
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ConnectorAuthorizationCodeProperties.Builder,ConnectorAuthorizationCodeProperties>
OAuth2 authorization code configuration that defines the properties needed for the Authorization Code grant type flow.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal ConnectorPropertyThe authorization code received from the authorization server after user consent.final ConnectorPropertyThe authorization endpoint URL where users will be redirected to grant authorization.builder()final ConnectorPropertyclientId()The OAuth2 client identifier provided by the authorization server.final ConnectorPropertyThe OAuth2 client secret provided by the authorization server.final ContentTypeThe content type to use for token exchange requests, such as application/x-www-form-urlencoded or application/json.final StringThe content type to use for token exchange requests, such as application/x-www-form-urlencoded or application/json.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the TokenUrlParameters property.final ConnectorPropertyprompt()The OAuth2 prompt parameter that controls the authorization server's behavior during user authentication.final ConnectorPropertyThe redirect URI that must match the URI registered with the authorization server.final HTTPMethodThe HTTP method to use when making token exchange requests, typically POST.final StringThe HTTP method to use when making token exchange requests, typically POST.final ConnectorPropertyscope()The OAuth2 scope that defines the level of access requested for the authorization code flow.static Class<? extends ConnectorAuthorizationCodeProperties.Builder> Take this object and create a builder that contains all of the current property values of this object.final ConnectorPropertytokenUrl()The token endpoint URL where the authorization code will be exchanged for an access token.final List<ConnectorProperty> Additional parameters to include in token URL requests as key-value pairs.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
authorizationCodeUrl
The authorization endpoint URL where users will be redirected to grant authorization.
- Returns:
- The authorization endpoint URL where users will be redirected to grant authorization.
-
authorizationCode
The authorization code received from the authorization server after user consent.
- Returns:
- The authorization code received from the authorization server after user consent.
-
redirectUri
The redirect URI that must match the URI registered with the authorization server.
- Returns:
- The redirect URI that must match the URI registered with the authorization server.
-
tokenUrl
The token endpoint URL where the authorization code will be exchanged for an access token.
- Returns:
- The token endpoint URL where the authorization code will be exchanged for an access token.
-
requestMethod
The HTTP method to use when making token exchange requests, typically POST.
If the service returns an enum value that is not available in the current SDK version,
requestMethodwill returnHTTPMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrequestMethodAsString().- Returns:
- The HTTP method to use when making token exchange requests, typically POST.
- See Also:
-
requestMethodAsString
The HTTP method to use when making token exchange requests, typically POST.
If the service returns an enum value that is not available in the current SDK version,
requestMethodwill returnHTTPMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrequestMethodAsString().- Returns:
- The HTTP method to use when making token exchange requests, typically POST.
- See Also:
-
contentType
The content type to use for token exchange requests, such as application/x-www-form-urlencoded or application/json.
If the service returns an enum value that is not available in the current SDK version,
contentTypewill returnContentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcontentTypeAsString().- Returns:
- The content type to use for token exchange requests, such as application/x-www-form-urlencoded or application/json.
- See Also:
-
contentTypeAsString
The content type to use for token exchange requests, such as application/x-www-form-urlencoded or application/json.
If the service returns an enum value that is not available in the current SDK version,
contentTypewill returnContentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcontentTypeAsString().- Returns:
- The content type to use for token exchange requests, such as application/x-www-form-urlencoded or application/json.
- See Also:
-
clientId
The OAuth2 client identifier provided by the authorization server.
- Returns:
- The OAuth2 client identifier provided by the authorization server.
-
clientSecret
The OAuth2 client secret provided by the authorization server.
- Returns:
- The OAuth2 client secret provided by the authorization server.
-
scope
The OAuth2 scope that defines the level of access requested for the authorization code flow.
- Returns:
- The OAuth2 scope that defines the level of access requested for the authorization code flow.
-
prompt
The OAuth2 prompt parameter that controls the authorization server's behavior during user authentication.
- Returns:
- The OAuth2 prompt parameter that controls the authorization server's behavior during user authentication.
-
hasTokenUrlParameters
public final boolean hasTokenUrlParameters()For responses, this returns true if the service returned a value for the TokenUrlParameters 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. -
tokenUrlParameters
Additional parameters to include in token URL requests as key-value pairs.
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
hasTokenUrlParameters()method.- Returns:
- Additional parameters to include in token URL requests as key-value pairs.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ConnectorAuthorizationCodeProperties.Builder,ConnectorAuthorizationCodeProperties> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends ConnectorAuthorizationCodeProperties.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-