Class GetWebIdentityTokenResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.sts.model.StsResponse
-
- software.amazon.awssdk.services.sts.model.GetWebIdentityTokenResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetWebIdentityTokenResponse.Builder,GetWebIdentityTokenResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetWebIdentityTokenResponse extends StsResponse implements ToCopyableBuilder<GetWebIdentityTokenResponse.Builder,GetWebIdentityTokenResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetWebIdentityTokenResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetWebIdentityTokenResponse.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Instantexpiration()The date and time when the web identity token expires, in UTC.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends GetWebIdentityTokenResponse.Builder>serializableBuilderClass()GetWebIdentityTokenResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringwebIdentityToken()A signed JSON Web Token (JWT) that represents the caller's Amazon Web Services identity.-
Methods inherited from class software.amazon.awssdk.services.sts.model.StsResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
webIdentityToken
public final String webIdentityToken()
A signed JSON Web Token (JWT) that represents the caller's Amazon Web Services identity. The token contains standard JWT claims such as subject, audience, expiration time, and additional identity attributes added by STS as custom claims. You can also add your own custom claims to the token by passing tags as request parameters to the
GetWebIdentityTokenAPI. The token is signed using the specified signing algorithm and can be verified using the verification keys available at the issuer's JWKS endpoint.- Returns:
- A signed JSON Web Token (JWT) that represents the caller's Amazon Web Services identity. The token
contains standard JWT claims such as subject, audience, expiration time, and additional identity
attributes added by STS as custom claims. You can also add your own custom claims to the token by passing
tags as request parameters to the
GetWebIdentityTokenAPI. The token is signed using the specified signing algorithm and can be verified using the verification keys available at the issuer's JWKS endpoint.
-
expiration
public final Instant expiration()
The date and time when the web identity token expires, in UTC. The expiration is determined by adding the
DurationSecondsvalue to the time the token was issued. After this time, the token should no longer be considered valid.- Returns:
- The date and time when the web identity token expires, in UTC. The expiration is determined by adding the
DurationSecondsvalue to the time the token was issued. After this time, the token should no longer be considered valid.
-
toBuilder
public GetWebIdentityTokenResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetWebIdentityTokenResponse.Builder,GetWebIdentityTokenResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetWebIdentityTokenResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetWebIdentityTokenResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-