Class GoogleUtils (2.9.0)

public final class GoogleUtils

Utility class for the Google API Client Library.

Inheritance

java.lang.Object > GoogleUtils

Static Fields

BUGFIX_VERSION

public static final Integer BUGFIX_VERSION

Bug fix part of the current release version.

Field Value
Type Description
Integer

MAJOR_VERSION

public static final Integer MAJOR_VERSION

Major part of the current release version.

Field Value
Type Description
Integer

MINOR_VERSION

public static final Integer MINOR_VERSION

Minor part of the current release version.

Field Value
Type Description
Integer

VERSION

public static final String VERSION

Current release version.

Field Value
Type Description
String

Static Methods

getCertificateTrustStore() (deprecated)

public static synchronized KeyStore getCertificateTrustStore()

Deprecated. Depending on your build environment this method potentially can contain outdated certs if loading jdk default certs fails. Instead of getting trusted certs directly use an HttpTransport wrapper such as {@link NetHttpTransport} which uses java jdk internal classes to load default jdk certs specifically for a build environment. If you need to access the keystore directly please create your own keystore file.

Returns a keystore for trusted root certificates to use for Google APIs.

Value is cached, so subsequent access is fast.

This method first attempts to load the JDK default keystore. If that fails or is not available, it falls back to loading the bundled Google certificate store.

Returns
Type Description
KeyStore
Exceptions
Type Description
IOException
GeneralSecurityException