Class IdToken

All Implemented Interfaces:
Serializable

public class IdToken extends AccessToken implements Serializable
Represents a temporary IdToken and its JsonWebSignature object
See Also:
  • Method Details

    • create

      public static IdToken create(String tokenValue) throws IOException
      Creates an IdToken given the encoded Json Web Signature.
      Parameters:
      tokenValue - String representation of the ID token.
      Returns:
      returns com.google.auth.oauth2.IdToken
      Throws:
      IOException - if JWT token parsing fails
    • create

      public static IdToken create(String tokenValue, com.google.api.client.json.JsonFactory jsonFactory) throws IOException
      Creates an IdToken given the encoded Json Web Signature and JSON Factory
      Parameters:
      jsonFactory - JsonFactory to use for parsing the provided token.
      tokenValue - String representation of the ID token.
      Returns:
      returns com.google.auth.oauth2.IdToken
      Throws:
      IOException - if JWT token parsing fails
    • hashCode

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

      public String toString()
      Description copied from class: AccessToken
      Returns a string representation of this access token, including the raw token value.

      Security Warning: The output of this method includes the raw, unmasked access token value. Do not log this output in production environments as it may expose sensitive credentials.

      Overrides:
      toString in class AccessToken
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class AccessToken