Interface CreateOAuth2TokenResponseBody.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CreateOAuth2TokenResponseBody.Builder,,CreateOAuth2TokenResponseBody> SdkBuilder<CreateOAuth2TokenResponseBody.Builder,,CreateOAuth2TokenResponseBody> SdkPojo
- Enclosing class:
CreateOAuth2TokenResponseBody
-
Method Summary
Modifier and TypeMethodDescriptionaccessToken(Consumer<AccessToken.Builder> accessToken) Scoped-down AWS credentials (15 minute duration) Present for both authorization code redemption and token refreshaccessToken(AccessToken accessToken) Scoped-down AWS credentials (15 minute duration) Present for both authorization code redemption and token refreshTime to expiry in seconds (maximum 900) Present for both authorization code redemption and token refreshID token containing user identity information Present only in authorization code redemption response (grant_type=authorization_code) Not included in token refresh responsesrefreshToken(String refreshToken) Encrypted refresh token with cnf.jkt (SHA-256 thumbprint of presented jwk) Always present in responses (required for both flows)Token type indicating this is AWS SigV4 credentials Value is "aws_sigv4" for both flowsMethods 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, sdkFieldNameToField, sdkFields
-
Method Details
-
accessToken
Scoped-down AWS credentials (15 minute duration) Present for both authorization code redemption and token refresh
- Parameters:
accessToken- Scoped-down AWS credentials (15 minute duration) Present for both authorization code redemption and token refresh- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessToken
default CreateOAuth2TokenResponseBody.Builder accessToken(Consumer<AccessToken.Builder> accessToken) Scoped-down AWS credentials (15 minute duration) Present for both authorization code redemption and token refresh
This is a convenience method that creates an instance of theAccessToken.Builderavoiding the need to create one manually viaAccessToken.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccessToken(AccessToken).- Parameters:
accessToken- a consumer that will call methods onAccessToken.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tokenType
Token type indicating this is AWS SigV4 credentials Value is "aws_sigv4" for both flows
- Parameters:
tokenType- Token type indicating this is AWS SigV4 credentials Value is "aws_sigv4" for both flows- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiresIn
Time to expiry in seconds (maximum 900) Present for both authorization code redemption and token refresh
- Parameters:
expiresIn- Time to expiry in seconds (maximum 900) Present for both authorization code redemption and token refresh- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
refreshToken
Encrypted refresh token with cnf.jkt (SHA-256 thumbprint of presented jwk) Always present in responses (required for both flows)
- Parameters:
refreshToken- Encrypted refresh token with cnf.jkt (SHA-256 thumbprint of presented jwk) Always present in responses (required for both flows)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
idToken
ID token containing user identity information Present only in authorization code redemption response (grant_type=authorization_code) Not included in token refresh responses
- Parameters:
idToken- ID token containing user identity information Present only in authorization code redemption response (grant_type=authorization_code) Not included in token refresh responses- Returns:
- Returns a reference to this object so that method calls can be chained together.
-