Interface Grant.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<Grant.Builder,Grant>
,SdkBuilder<Grant.Builder,Grant>
,SdkPojo
- Enclosing class:
- Grant
public static interface Grant.Builder extends SdkPojo, CopyableBuilder<Grant.Builder,Grant>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Grant.Builder
authorizationCode(Consumer<AuthorizationCodeGrant.Builder> authorizationCode)
Configuration options for theauthorization_code
grant type.Grant.Builder
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.Grant.Builder
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.Grant.Builder
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.Grant.Builder
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
authorizationCode
Grant.Builder authorizationCode(AuthorizationCodeGrant 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
default Grant.Builder authorizationCode(Consumer<AuthorizationCodeGrant.Builder> 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:
authorizationCode(AuthorizationCodeGrant)
-
jwtBearer
Grant.Builder jwtBearer(JwtBearerGrant 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
default Grant.Builder jwtBearer(Consumer<JwtBearerGrant.Builder> 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:
jwtBearer(JwtBearerGrant)
-
refreshToken
Grant.Builder refreshToken(RefreshTokenGrant 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
default Grant.Builder refreshToken(Consumer<RefreshTokenGrant.Builder> 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:
refreshToken(RefreshTokenGrant)
-
tokenExchange
Grant.Builder tokenExchange(TokenExchangeGrant 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
default Grant.Builder tokenExchange(Consumer<TokenExchangeGrant.Builder> 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:
tokenExchange(TokenExchangeGrant)
-
-