Interface GetOAuthTokenRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetOAuthTokenRequest.Builder,,GetOAuthTokenRequest> CredentialBrokerRequest.Builder,SdkBuilder<GetOAuthTokenRequest.Builder,,GetOAuthTokenRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
GetOAuthTokenRequest
-
Method Summary
Modifier and TypeMethodDescriptionAudience values (RFC 8693) naming the intended recipients of this token.audiences(Collection<String> audiences) Audience values (RFC 8693) naming the intended recipients of this token.credentialProviderArn(String credentialProviderArn) Amazon Resource Name of the credential provider to obtain the token from.customParameters(Map<String, String> customParameters) Extra parameters to include in the request to the authorization server, for vendor extensions.forceAuthentication(Boolean forceAuthentication) Request a new token from the authorization server even when the broker already holds a valid one for this provider.How the token is obtained.How the token is obtained.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Resource indicators (RFC 8707) naming the APIs this token is for.resources(Collection<String> resources) Resource indicators (RFC 8707) naming the APIs this token is for.The OAuth scopes to request from the authorization server.scopes(Collection<String> scopes) The OAuth scopes to request from the authorization server.sessionUri(String sessionUri) Return the token obtained for a consent session that a user has already completed.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.credentialbroker.model.CredentialBrokerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
credentialProviderArn
Amazon Resource Name of the credential provider to obtain the token from. The provider must be an OAuth provider and must be READY.
- Parameters:
credentialProviderArn- Amazon Resource Name of the credential provider to obtain the token from. The provider must be an OAuth provider and must be READY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantType
How the token is obtained. Must be one of the grant types the provider allows; a grant the provider does not allow is rejected.
- Parameters:
grantType- How the token is obtained. Must be one of the grant types the provider allows; a grant the provider does not allow is rejected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
grantType
How the token is obtained. Must be one of the grant types the provider allows; a grant the provider does not allow is rejected.
- Parameters:
grantType- How the token is obtained. Must be one of the grant types the provider allows; a grant the provider does not allow is rejected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scopes
The OAuth scopes to request from the authorization server.
- Parameters:
scopes- The OAuth scopes to request from the authorization server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopes
The OAuth scopes to request from the authorization server.
- Parameters:
scopes- The OAuth scopes to request from the authorization server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
Resource indicators (RFC 8707) naming the APIs this token is for. Omit unless the authorization server requires them.
- Parameters:
resources- Resource indicators (RFC 8707) naming the APIs this token is for. Omit unless the authorization server requires them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
Resource indicators (RFC 8707) naming the APIs this token is for. Omit unless the authorization server requires them.
- Parameters:
resources- Resource indicators (RFC 8707) naming the APIs this token is for. Omit unless the authorization server requires them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
audiences
Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.
- Parameters:
audiences- Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
audiences
Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.
- Parameters:
audiences- Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customParameters
Extra parameters to include in the request to the authorization server, for vendor extensions. Added to the standard OAuth parameters; they never override them.
- Parameters:
customParameters- Extra parameters to include in the request to the authorization server, for vendor extensions. Added to the standard OAuth parameters; they never override them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forceAuthentication
Request a new token from the authorization server even when the broker already holds a valid one for this provider. Defaults to false, which returns the held token when one is available.
- Parameters:
forceAuthentication- Request a new token from the authorization server even when the broker already holds a valid one for this provider. Defaults to false, which returns the held token when one is available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionUri
Return the token obtained for a consent session that a user has already completed. Supply the handle returned when the session was started.
- Parameters:
sessionUri- Return the token obtained for a consent session that a user has already completed. Supply the handle returned when the session was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetOAuthTokenRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetOAuthTokenRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-