Class SsoOidcToken

java.lang.Object
software.amazon.awssdk.services.ssooidc.internal.SsoOidcToken
All Implemented Interfaces:
SdkToken, Identity, TokenIdentity

public final class SsoOidcToken extends Object implements SdkToken
Represents a cached SSO token. { "accessToken": "string", "expiresAt": "2019-11-14T04:05:45Z", "refreshToken": "string", "clientId": "ABCDEFG323242423121312312312312312", "clientSecret": "ABCDE123", "registrationExpiresAt": "2022-03-06T19:53:17Z", "region": "us-west-2", "startUrl": "https://d-abc123.awsapps.com/start" }
  • Field Details

  • Method Details

    • token

      public String token()
      Description copied from interface: TokenIdentity
      Retrieves string field representing the literal token string.
      Specified by:
      token in interface TokenIdentity
    • expirationTime

      public Optional<Instant> expirationTime()
      Description copied from interface: Identity
      The time after which this identity will no longer be valid. If this is empty, an expiration time is not known (but the identity may still expire at some time in the future).
      Specified by:
      expirationTime in interface Identity
    • providerName

      public Optional<String> providerName()
      Description copied from interface: Identity
      The source that resolved this identity, normally an identity provider. Note that this string value would be set by an identity provider implementation and is intended to be used for for tracking purposes. Avoid building logic on its value.
      Specified by:
      providerName in interface Identity
    • refreshToken

      public String refreshToken()
    • clientId

      public String clientId()
    • clientSecret

      public String clientSecret()
    • registrationExpiresAt

      public Instant registrationExpiresAt()
    • region

      public String region()
    • startUrl

      public String startUrl()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static SsoOidcToken.Builder builder()