@Beta
public static class GoogleIdTokenVerifier.Builder
extends com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder
Constructor and Description |
---|
Builder(GooglePublicKeysManager publicKeys) |
Builder(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory) |
public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory)
transport
- HTTP transportjsonFactory
- JSON factorypublic Builder(GooglePublicKeysManager publicKeys)
publicKeys
- Google public keys managerpublic GoogleIdTokenVerifier build()
GoogleIdTokenVerifier
.build
in class com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder
public final GooglePublicKeysManager getPublicCerts()
public final com.google.api.client.http.HttpTransport getTransport()
public final com.google.api.client.json.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 com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder
public GoogleIdTokenVerifier.Builder setIssuers(Collection<String> issuers)
setIssuers
in class com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder
public GoogleIdTokenVerifier.Builder setAudience(Collection<String> audience)
setAudience
in class com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder
public GoogleIdTokenVerifier.Builder setAcceptableTimeSkewSeconds(long acceptableTimeSkewSeconds)
setAcceptableTimeSkewSeconds
in class com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder
public GoogleIdTokenVerifier.Builder setClock(com.google.api.client.util.Clock clock)
setClock
in class com.google.api.client.auth.openidconnect.IdTokenVerifier.Builder
Copyright © 2010–2019 Google. All rights reserved.