public class IdToken extends AccessToken implements Serializable
AccessToken.Builder
Modifier and Type | Method and Description |
---|---|
static IdToken |
create(String tokenValue)
Creates an IdToken given the encoded Json Web Signature.
|
static IdToken |
create(String tokenValue,
com.google.api.client.json.JsonFactory jsonFactory)
Creates an IdToken given the encoded Json Web Signature and JSON Factory
|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
getExpirationTime, getScopes, getTokenValue, newBuilder, toBuilder
public static IdToken create(String tokenValue) throws IOException
tokenValue
- String representation of the ID token.IOException
- if JWT token parsing failspublic static IdToken create(String tokenValue, com.google.api.client.json.JsonFactory jsonFactory) throws IOException
jsonFactory
- JsonFactory to use for parsing the provided token.tokenValue
- String representation of the ID token.IOException
- if JWT token parsing failspublic int hashCode()
hashCode
in class AccessToken
public String toString()
toString
in class AccessToken
public boolean equals(Object obj)
equals
in class AccessToken
Copyright © 2023 Google. All rights reserved.