Send feedback
Class GoogleIdToken (1.33.4)
bookmark_border bookmark
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.33.4 keyboard_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
Send feedback
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-03-05 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[],[]]