Class GooglePublicKeysManager.Builder (2.1.2)

public static class GooglePublicKeysManager.Builder

Beta
Builder for GooglePublicKeysManager.

Implementation is not thread-safe.

Inheritance

java.lang.Object > GooglePublicKeysManager.Builder

Constructors

Builder(HttpTransport transport, JsonFactory jsonFactory)

public Builder(HttpTransport transport, JsonFactory jsonFactory)

Returns an instance of a new builder.

Parameters
NameDescription
transportcom.google.api.client.http.HttpTransport

HTTP transport

jsonFactorycom.google.api.client.json.JsonFactory

JSON factory

Methods

build()

public GooglePublicKeysManager build()

Builds a new instance of GooglePublicKeysManager.

Returns
TypeDescription
GooglePublicKeysManager

getClock()

public final Clock getClock()

Returns the clock.

Returns
TypeDescription
com.google.api.client.util.Clock

getJsonFactory()

public final JsonFactory getJsonFactory()

Returns the JSON factory.

Returns
TypeDescription
com.google.api.client.json.JsonFactory

getPublicCertsEncodedUrl()

public final String getPublicCertsEncodedUrl()

Returns the public certificates encoded URL.

Returns
TypeDescription
String

getTransport()

public final HttpTransport getTransport()

Returns the HTTP transport.

Returns
TypeDescription
com.google.api.client.http.HttpTransport

setClock(Clock clock)

public GooglePublicKeysManager.Builder setClock(Clock clock)

Sets the clock.

Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.

Parameter
NameDescription
clockcom.google.api.client.util.Clock
Returns
TypeDescription
GooglePublicKeysManager.Builder

setPublicCertsEncodedUrl(String publicCertsEncodedUrl)

public GooglePublicKeysManager.Builder setPublicCertsEncodedUrl(String publicCertsEncodedUrl)

Sets the public certificates encoded URL.

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.

Parameter
NameDescription
publicCertsEncodedUrlString
Returns
TypeDescription
GooglePublicKeysManager.Builder