Interface OAuth2Properties.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<OAuth2Properties.Builder,OAuth2Properties>,SdkBuilder<OAuth2Properties.Builder,OAuth2Properties>,SdkPojo
- Enclosing class:
- OAuth2Properties
public static interface OAuth2Properties.Builder extends SdkPojo, CopyableBuilder<OAuth2Properties.Builder,OAuth2Properties>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default OAuth2Properties.BuilderoAuth2ClientApplication(Consumer<OAuth2ClientApplication.Builder> oAuth2ClientApplication)The client application type.OAuth2Properties.BuilderoAuth2ClientApplication(OAuth2ClientApplication oAuth2ClientApplication)The client application type.OAuth2Properties.BuilderoAuth2GrantType(String oAuth2GrantType)The OAuth2 grant type.OAuth2Properties.BuilderoAuth2GrantType(OAuth2GrantType oAuth2GrantType)The OAuth2 grant type.OAuth2Properties.BuildertokenUrl(String tokenUrl)The URL of the provider's authentication server, to exchange an authorization code for an access token.OAuth2Properties.BuildertokenUrlParametersMap(Map<String,String> tokenUrlParametersMap)A map of parameters that are added to the tokenGETrequest.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
oAuth2GrantType
OAuth2Properties.Builder oAuth2GrantType(String oAuth2GrantType)
The OAuth2 grant type. For example,
AUTHORIZATION_CODE,JWT_BEARER, orCLIENT_CREDENTIALS.- Parameters:
oAuth2GrantType- The OAuth2 grant type. For example,AUTHORIZATION_CODE,JWT_BEARER, orCLIENT_CREDENTIALS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OAuth2GrantType,OAuth2GrantType
-
oAuth2GrantType
OAuth2Properties.Builder oAuth2GrantType(OAuth2GrantType oAuth2GrantType)
The OAuth2 grant type. For example,
AUTHORIZATION_CODE,JWT_BEARER, orCLIENT_CREDENTIALS.- Parameters:
oAuth2GrantType- The OAuth2 grant type. For example,AUTHORIZATION_CODE,JWT_BEARER, orCLIENT_CREDENTIALS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OAuth2GrantType,OAuth2GrantType
-
oAuth2ClientApplication
OAuth2Properties.Builder oAuth2ClientApplication(OAuth2ClientApplication oAuth2ClientApplication)
The client application type. For example, AWS_MANAGED or USER_MANAGED.
- Parameters:
oAuth2ClientApplication- The client application type. For example, AWS_MANAGED or USER_MANAGED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
oAuth2ClientApplication
default OAuth2Properties.Builder oAuth2ClientApplication(Consumer<OAuth2ClientApplication.Builder> oAuth2ClientApplication)
The client application type. For example, AWS_MANAGED or USER_MANAGED.
This is a convenience method that creates an instance of theOAuth2ClientApplication.Builderavoiding the need to create one manually viaOAuth2ClientApplication.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooAuth2ClientApplication(OAuth2ClientApplication).- Parameters:
oAuth2ClientApplication- a consumer that will call methods onOAuth2ClientApplication.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
oAuth2ClientApplication(OAuth2ClientApplication)
-
tokenUrl
OAuth2Properties.Builder tokenUrl(String tokenUrl)
The URL of the provider's authentication server, to exchange an authorization code for an access token.
- Parameters:
tokenUrl- The URL of the provider's authentication server, to exchange an authorization code for an access token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenUrlParametersMap
OAuth2Properties.Builder tokenUrlParametersMap(Map<String,String> tokenUrlParametersMap)
A map of parameters that are added to the token
GETrequest.- Parameters:
tokenUrlParametersMap- A map of parameters that are added to the tokenGETrequest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-