Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class GoogleIdToken (2.0.1)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 2.0.1keyboard_arrow_down
public class GoogleIdToken extends IdToken
Beta
Google ID tokens as specified in OpenID Connect .
Google ID tokens contain useful information about the authorized end user. Google ID tokens
are signed and the signature must be verified using #verify(GoogleIdTokenVerifier) .
Implementation is not thread-safe.
Inherited Members
com.google.api.client.auth.openidconnect.IdToken.getPayload()
com.google.api.client.auth.openidconnect.IdToken.parse(com.google.api.client.json.JsonFactory,java.lang.String)
com.google.api.client.auth.openidconnect.IdToken.verifyAudience(java.util.Collection<java.lang.String>)
com.google.api.client.auth.openidconnect.IdToken.verifyExpirationTime(long,long)
com.google.api.client.auth.openidconnect.IdToken.verifyIssuedAtTime(long,long)
com.google.api.client.auth.openidconnect.IdToken.verifyIssuer(java.lang.String)
com.google.api.client.auth.openidconnect.IdToken.verifyIssuer(java.util.Collection<java.lang.String>)
com.google.api.client.auth.openidconnect.IdToken.verifyTime(long,long)
com.google.api.client.json.webtoken.JsonWebSignature.getHeader()
com.google.api.client.json.webtoken.JsonWebSignature.getSignatureBytes()
com.google.api.client.json.webtoken.JsonWebSignature.getSignedContentBytes()
com.google.api.client.json.webtoken.JsonWebSignature.parser(com.google.api.client.json.JsonFactory)
com.google.api.client.json.webtoken.JsonWebSignature.signUsingRsaSha256(java.security.PrivateKey,com.google.api.client.json.JsonFactory,com.google.api.client.json.webtoken.JsonWebSignature.Header,com.google.api.client.json.webtoken.JsonWebToken.Payload)
com.google.api.client.json.webtoken.JsonWebSignature.verifySignature()
com.google.api.client.json.webtoken.JsonWebSignature.verifySignature(java.security.PublicKey)
com.google.api.client.json.webtoken.JsonWebSignature.verifySignature(javax.net.ssl.X509TrustManager)
com.google.api.client.json.webtoken.JsonWebToken.toString()
Static Methods
parse(JsonFactory jsonFactory, String idTokenString)
public static GoogleIdToken parse ( JsonFactory jsonFactory , String idTokenString )
Parses the given ID token string and returns the parsed GoogleIdToken .
Parameters
Name
Description
jsonFactory
com.google.api.client.json.JsonFactory
JSON factory
idTokenString
String
ID token string
Returns
Exceptions
Constructors
public GoogleIdToken ( JsonWebSignature . Header header , GoogleIdToken . Payload payload , byte [] signatureBytes , byte [] signedContentBytes )
Parameters
Name
Description
header
com.google.api.client.json.webtoken.JsonWebSignature.Header
header
payload
GoogleIdToken.Payload
payload
signatureBytes
byte []
bytes of the signature
signedContentBytes
byte []
bytes of the signature content
Methods
getPayload()
public GoogleIdToken . Payload getPayload ()
Returns
Overrides
com.google.api.client.auth.openidconnect.IdToken.getPayload()
verify(GoogleIdTokenVerifier verifier)
public boolean verify ( GoogleIdTokenVerifier verifier )
Parameter
Returns
Exceptions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[],[]]