Class 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>
  • Method Details

    • 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 GetWebIdentityToken API. 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 GetWebIdentityToken API. 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 DurationSeconds value 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 DurationSeconds value to the time the token was issued. After this time, the token should no longer be considered valid.
    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<GetWebIdentityTokenResponse.Builder,GetWebIdentityTokenResponse>
      Specified by:
      toBuilder in class AwsResponse
    • builder

      public static GetWebIdentityTokenResponse.Builder builder()
    • serializableBuilderClass

      public static Class<? extends GetWebIdentityTokenResponse.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsResponse
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsResponse
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Overrides:
      getValueForField in class SdkResponse
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo