Interface TokenIdentity

All Superinterfaces:
Identity
All Known Subinterfaces:
SdkToken
All Known Implementing Classes:
SsoAccessToken, SsoOidcToken

@ThreadSafe public interface TokenIdentity extends Identity
Provides token which is used to securely authorize requests to services that use token based auth, e.g., OAuth.

For more details on OAuth tokens, see: https://oauth.net/2/access-tokens

  • Method Summary

    Modifier and Type
    Method
    Description
    create(String token)
    Constructs a new token object, which can be used to authorize requests to services that use token based auth
    Retrieves string field representing the literal token string.

    Methods inherited from interface software.amazon.awssdk.identity.spi.Identity

    expirationTime, providerName
  • Method Details

    • token

      String token()
      Retrieves string field representing the literal token string.
    • create

      static TokenIdentity create(String token)
      Constructs a new token object, which can be used to authorize requests to services that use token based auth
      Parameters:
      token - The token used to authorize requests.