Class IdToken

    • Method Detail

      • 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