Send feedback
Class GoogleIdTokenVerifier.Builder (2.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.7.0 keyboard_arrow_down
public static class GoogleIdTokenVerifier . Builder extends IdTokenVerifier . Builder
Inheritance
java.lang.Object >
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder >
GoogleIdTokenVerifier.Builder
Inherited Members
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.build()
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.getAcceptableTimeSkewSeconds()
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.getAudience()
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.getClock()
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.getIssuer()
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.getIssuers()
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.setAcceptableTimeSkewSeconds(long)
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.setAudience(java.util.Collection<java.lang.String>)
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.setCertificatesLocation(java.lang.String)
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.setClock(com.google.api.client.util.Clock)
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.setHttpTransportFactory(com.google.api.client.auth.openidconnect.HttpTransportFactory)
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.setIssuer(java.lang.String)
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.setIssuers(java.util.Collection<java.lang.String>)
Constructors
Builder(GooglePublicKeysManager publicKeys)
public Builder ( GooglePublicKeysManager publicKeys )
Builder(HttpTransport transport, JsonFactory jsonFactory)
public Builder ( HttpTransport transport , JsonFactory jsonFactory )
Parameters
Name
Description
transport
com.google.api.client.http.HttpTransport
HTTP transport
jsonFactory
com.google.api.client.json.JsonFactory
JSON factory
Methods
build()
public GoogleIdTokenVerifier build ()
Overrides
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.build()
getJsonFactory()
public final JsonFactory getJsonFactory ()
Returns the JSON factory.
Returns
Type
Description
com.google.api.client.json.JsonFactory
getPublicCerts()
public final GooglePublicKeysManager getPublicCerts ()
Returns the Google public keys manager.
getPublicCertsEncodedUrl() (deprecated)
public final String getPublicCertsEncodedUrl ()
Returns
Type
Description
String
getTransport()
public final HttpTransport getTransport ()
Returns the HTTP transport.
Returns
Type
Description
com.google.api.client.http.HttpTransport
setAcceptableTimeSkewSeconds(long acceptableTimeSkewSeconds)
public GoogleIdTokenVerifier . Builder setAcceptableTimeSkewSeconds ( long acceptableTimeSkewSeconds )
Parameter
Name
Description
acceptableTimeSkewSeconds
long
Overrides
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.setAcceptableTimeSkewSeconds(long)
setAudience(Collection<String> audience)
public GoogleIdTokenVerifier . Builder setAudience ( Collection<String> audience )
Overrides
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.setAudience(java.util.Collection<java.lang.String>)
setClock(Clock clock)
public GoogleIdTokenVerifier . Builder setClock ( Clock clock )
Parameter
Name
Description
clock
com.google.api.client.util.Clock
Overrides
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.setClock(com.google.api.client.util.Clock)
setIssuer(String issuer)
public GoogleIdTokenVerifier . Builder setIssuer ( String issuer )
Parameter
Name
Description
issuer
String
Overrides
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.setIssuer(java.lang.String)
setIssuers(Collection<String> issuers)
public GoogleIdTokenVerifier . Builder setIssuers ( Collection<String> issuers )
Overrides
com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder.setIssuers(java.util.Collection<java.lang.String>)
setPublicCertsEncodedUrl(String publicKeysEncodedUrl) (deprecated)
public GoogleIdTokenVerifier . Builder setPublicCertsEncodedUrl ( String publicKeysEncodedUrl )
Parameter
Name
Description
publicKeysEncodedUrl
String
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-01-28 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-01-28 UTC."],[],[]]