Class GooglePublicKeysManager.Builder (2.5.0)

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
Name Description
transport com.google.api.client.http.HttpTransport

HTTP transport

jsonFactory com.google.api.client.json.JsonFactory

JSON factory

Methods

build()

public GooglePublicKeysManager build()

Builds a new instance of GooglePublicKeysManager.

Returns
Type Description
GooglePublicKeysManager

getClock()

public final Clock getClock()

Returns the clock.

Returns
Type Description
com.google.api.client.util.Clock

getJsonFactory()

public final JsonFactory getJsonFactory()

Returns the JSON factory.

Returns
Type Description
com.google.api.client.json.JsonFactory

getPublicCertsEncodedUrl()

public final String getPublicCertsEncodedUrl()

Returns the public certificates encoded URL.

Returns
Type Description
String

getTransport()

public final HttpTransport getTransport()

Returns the HTTP transport.

Returns
Type Description
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
Name Description
clock com.google.api.client.util.Clock
Returns
Type Description
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
Name Description
publicCertsEncodedUrl String
Returns
Type Description
GooglePublicKeysManager.Builder