@Beta public static class GoogleIdTokenVerifier.Builder extends IdTokenVerifier.Builder
Constructor and Description |
---|
Builder(GooglePublicKeysManager publicKeys) |
Builder(HttpTransport transport,
JsonFactory jsonFactory) |
getAcceptableTimeSkewSeconds, getAudience, getClock, getIssuer, getIssuers
public Builder(HttpTransport transport, JsonFactory jsonFactory)
transport
- HTTP transportjsonFactory
- JSON factorypublic Builder(GooglePublicKeysManager publicKeys)
publicKeys
- Google public keys managerpublic GoogleIdTokenVerifier build()
GoogleIdTokenVerifier
.build
in class IdTokenVerifier.Builder
public final GooglePublicKeysManager getPublicCerts()
public final HttpTransport getTransport()
public final JsonFactory getJsonFactory()
@Deprecated public final String getPublicCertsEncodedUrl()
getPublicCerts()
and GooglePublicKeysManager.getPublicCertsEncodedUrl()
instead.@Deprecated public GoogleIdTokenVerifier.Builder setPublicCertsEncodedUrl(String publicKeysEncodedUrl)
GooglePublicKeysManager.Builder.setPublicCertsEncodedUrl(String)
instead.The default value is GoogleOAuthConstants.DEFAULT_PUBLIC_CERTS_ENCODED_URL
.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public GoogleIdTokenVerifier.Builder setIssuer(String issuer)
setIssuer
in class IdTokenVerifier.Builder
public GoogleIdTokenVerifier.Builder setIssuers(Collection<String> issuers)
setIssuers
in class IdTokenVerifier.Builder
public GoogleIdTokenVerifier.Builder setAudience(Collection<String> audience)
setAudience
in class IdTokenVerifier.Builder
public GoogleIdTokenVerifier.Builder setAcceptableTimeSkewSeconds(long acceptableTimeSkewSeconds)
setAcceptableTimeSkewSeconds
in class IdTokenVerifier.Builder
public GoogleIdTokenVerifier.Builder setClock(Clock clock)
setClock
in class IdTokenVerifier.Builder
Copyright © 2010–2021 Google. All rights reserved.