Interface Grant.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Grant.Builder,,Grant> SdkBuilder<Grant.Builder,,Grant> SdkPojo
- Enclosing class:
Grant
-
Method Summary
Modifier and TypeMethodDescriptiondefault Grant.BuilderauthorizationCode(Consumer<AuthorizationCodeGrant.Builder> authorizationCode) Configuration options for theauthorization_codegrant type.authorizationCode(AuthorizationCodeGrant authorizationCode) Configuration options for theauthorization_codegrant type.default Grant.BuilderjwtBearer(Consumer<JwtBearerGrant.Builder> jwtBearer) Configuration options for theurn:ietf:params:oauth:grant-type:jwt-bearergrant type.jwtBearer(JwtBearerGrant jwtBearer) Configuration options for theurn:ietf:params:oauth:grant-type:jwt-bearergrant type.default Grant.BuilderrefreshToken(Consumer<RefreshTokenGrant.Builder> refreshToken) Configuration options for therefresh_tokengrant type.refreshToken(RefreshTokenGrant refreshToken) Configuration options for therefresh_tokengrant type.default Grant.BuildertokenExchange(Consumer<TokenExchangeGrant.Builder> tokenExchange) Configuration options for theurn:ietf:params:oauth:grant-type:token-exchangegrant type.tokenExchange(TokenExchangeGrant tokenExchange) Configuration options for theurn:ietf:params:oauth:grant-type:token-exchangegrant type.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
authorizationCode
Configuration options for the
authorization_codegrant type.- Parameters:
authorizationCode- Configuration options for theauthorization_codegrant 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_codegrant type.AuthorizationCodeGrant.Builderavoiding the need to create one manually viaAuthorizationCodeGrant.builder().When the
Consumercompletes,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-bearergrant type.- Parameters:
jwtBearer- Configuration options for theurn:ietf:params:oauth:grant-type:jwt-bearergrant 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-bearergrant type.JwtBearerGrant.Builderavoiding the need to create one manually viaJwtBearerGrant.builder().When the
Consumercompletes,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_tokengrant type.- Parameters:
refreshToken- Configuration options for therefresh_tokengrant 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_tokengrant type.RefreshTokenGrant.Builderavoiding the need to create one manually viaRefreshTokenGrant.builder().When the
Consumercompletes,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-exchangegrant type.- Parameters:
tokenExchange- Configuration options for theurn:ietf:params:oauth:grant-type:token-exchangegrant 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-exchangegrant type.TokenExchangeGrant.Builderavoiding the need to create one manually viaTokenExchangeGrant.builder().When the
Consumercompletes,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:
-