Sets the list of equivalent expected issuers or null to suppress the issuer check.
Typically only a single issuer should be used, but multiple may be specified to support an
issuer transitioning to a new string. The collection must not be empty.
Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.
[[["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-08-07 UTC."],[],[],null,["# Class IdTokenVerifier.Builder (1.39.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.39.0 (latest)](/java/docs/reference/google-oauth-client/latest/com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder)\n- [1.38.2](/java/docs/reference/google-oauth-client/1.38.2/com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder)\n- [1.37.0](/java/docs/reference/google-oauth-client/1.37.0/com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder)\n- [1.36.0](/java/docs/reference/google-oauth-client/1.36.0/com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder)\n- [1.34.1](/java/docs/reference/google-oauth-client/1.34.1/com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder)\n- [1.33.3](/java/docs/reference/google-oauth-client/1.33.3/com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder)\n- [1.32.1](/java/docs/reference/google-oauth-client/1.32.1/com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder) \n\n public static class IdTokenVerifier.Builder\n\nBuilder for [IdTokenVerifier](/java/docs/reference/google-oauth-client/latest/com.google.api.client.auth.openidconnect.IdTokenVerifier).\n\nImplementation is not thread-safe. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e IdTokenVerifier.Builder \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### Builder()\n\n public Builder()\n\nMethods\n-------\n\n### build()\n\n public IdTokenVerifier build()\n\nBuilds a new instance of [IdTokenVerifier](/java/docs/reference/google-oauth-client/latest/com.google.api.client.auth.openidconnect.IdTokenVerifier).\n\n### getAcceptableTimeSkewSeconds()\n\n public final long getAcceptableTimeSkewSeconds()\n\nReturns the seconds of time skew to accept when verifying time.\n\n### getAudience()\n\n public final Collection\u003cString\u003e getAudience()\n\nReturns the list of trusted audience client IDs or `null` to suppress the audience\ncheck.\n\n### getClock()\n\n public final Clock getClock()\n\nReturns the clock.\n\n### getIssuer()\n\n public final String getIssuer()\n\nReturns the first of equivalent expected issuers or `null` if issuer check suppressed.\n\n### getIssuers()\n\n public final Collection\u003cString\u003e getIssuers()\n\nReturns the equivalent expected issuers or `null` if issuer check suppressed.\n\n### setAcceptableTimeSkewSeconds(long acceptableTimeSkewSeconds)\n\n public IdTokenVerifier.Builder setAcceptableTimeSkewSeconds(long acceptableTimeSkewSeconds)\n\nSets the seconds of time skew to accept when verifying time (default is #DEFAULT_TIME_SKEW_SECONDS).\n\nIt must be greater or equal to zero.\n\nOverriding is only supported for the purpose of calling the super implementation and\nchanging the return type, but nothing else.\n\n### setAudience(Collection\\\u003cString\\\u003e audience)\n\n public IdTokenVerifier.Builder setAudience(Collection\u003cString\u003e audience)\n\nSets the list of trusted audience client IDs or `null` to suppress the audience check.\n\nOverriding is only supported for the purpose of calling the super implementation and\nchanging the return type, but nothing else.\n\n### setCertificatesLocation(String certificatesLocation)\n\n public IdTokenVerifier.Builder setCertificatesLocation(String certificatesLocation)\n\nOverrides the location URL that contains published public keys. Defaults to well-known Google\nlocations.\n\n### setClock(Clock clock)\n\n public IdTokenVerifier.Builder setClock(Clock clock)\n\nSets the clock.\n\nOverriding is only supported for the purpose of calling the super implementation and\nchanging the return type, but nothing else.\n\n### setHttpTransportFactory(HttpTransportFactory httpTransportFactory)\n\n public IdTokenVerifier.Builder setHttpTransportFactory(HttpTransportFactory httpTransportFactory)\n\nSets the HttpTransportFactory used for requesting public keys from the certificate URL. Used\nmostly for testing.\n\n### setIssuer(String issuer)\n\n public IdTokenVerifier.Builder setIssuer(String issuer)\n\nSets the expected issuer or `null` to suppress the issuer check.\n\nOverriding is only supported for the purpose of calling the super implementation and\nchanging the return type, but nothing else.\n\n### setIssuers(Collection\\\u003cString\\\u003e issuers)\n\n public IdTokenVerifier.Builder setIssuers(Collection\u003cString\u003e issuers)\n\nSets the list of equivalent expected issuers or `null` to suppress the issuer check.\nTypically only a single issuer should be used, but multiple may be specified to support an\nissuer transitioning to a new string. The collection must not be empty.\n\nOverriding is only supported for the purpose of calling the super implementation and\nchanging the return type, but nothing else."]]