Interface Grant.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Grant.Builder,
,Grant> SdkBuilder<Grant.Builder,
,Grant> SdkPojo
- Enclosing class:
Grant
-
Method Summary
Modifier and TypeMethodDescriptiondefault Grant.Builder
authorizationCode
(Consumer<AuthorizationCodeGrant.Builder> authorizationCode) Configuration options for theauthorization_code
grant type.authorizationCode
(AuthorizationCodeGrant authorizationCode) Configuration options for theauthorization_code
grant type.default Grant.Builder
jwtBearer
(Consumer<JwtBearerGrant.Builder> jwtBearer) Configuration options for theurn:ietf:params:oauth:grant-type:jwt-bearer
grant type.jwtBearer
(JwtBearerGrant jwtBearer) Configuration options for theurn:ietf:params:oauth:grant-type:jwt-bearer
grant type.default Grant.Builder
refreshToken
(Consumer<RefreshTokenGrant.Builder> refreshToken) Configuration options for therefresh_token
grant type.refreshToken
(RefreshTokenGrant refreshToken) Configuration options for therefresh_token
grant type.default Grant.Builder
tokenExchange
(Consumer<TokenExchangeGrant.Builder> tokenExchange) Configuration options for theurn:ietf:params:oauth:grant-type:token-exchange
grant type.tokenExchange
(TokenExchangeGrant tokenExchange) Configuration options for theurn:ietf:params:oauth:grant-type:token-exchange
grant type.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 Details
-
authorizationCode
Configuration options for the
authorization_code
grant type.- Parameters:
authorizationCode
- Configuration options for theauthorization_code
grant type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizationCode
Configuration options for the
This is a convenience method that creates an instance of theauthorization_code
grant type.AuthorizationCodeGrant.Builder
avoiding the need to create one manually viaAuthorizationCodeGrant.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toauthorizationCode(AuthorizationCodeGrant)
.- Parameters:
authorizationCode
- a consumer that will call methods onAuthorizationCodeGrant.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jwtBearer
Configuration options for the
urn:ietf:params:oauth:grant-type:jwt-bearer
grant type.- Parameters:
jwtBearer
- Configuration options for theurn:ietf:params:oauth:grant-type:jwt-bearer
grant type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jwtBearer
Configuration options for the
This is a convenience method that creates an instance of theurn:ietf:params:oauth:grant-type:jwt-bearer
grant type.JwtBearerGrant.Builder
avoiding the need to create one manually viaJwtBearerGrant.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tojwtBearer(JwtBearerGrant)
.- Parameters:
jwtBearer
- a consumer that will call methods onJwtBearerGrant.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
refreshToken
Configuration options for the
refresh_token
grant type.- Parameters:
refreshToken
- Configuration options for therefresh_token
grant type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
refreshToken
Configuration options for the
This is a convenience method that creates an instance of therefresh_token
grant type.RefreshTokenGrant.Builder
avoiding the need to create one manually viaRefreshTokenGrant.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torefreshToken(RefreshTokenGrant)
.- Parameters:
refreshToken
- a consumer that will call methods onRefreshTokenGrant.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tokenExchange
Configuration options for the
urn:ietf:params:oauth:grant-type:token-exchange
grant type.- Parameters:
tokenExchange
- Configuration options for theurn:ietf:params:oauth:grant-type:token-exchange
grant type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenExchange
Configuration options for the
This is a convenience method that creates an instance of theurn:ietf:params:oauth:grant-type:token-exchange
grant type.TokenExchangeGrant.Builder
avoiding the need to create one manually viaTokenExchangeGrant.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totokenExchange(TokenExchangeGrant)
.- Parameters:
tokenExchange
- a consumer that will call methods onTokenExchangeGrant.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-