ProviderInstaller

class ProviderInstaller


A utility class for installing a dynamically updatable java.security.Provider to replace the platform default provider.

Summary

Nested types

Callback for notification of the result of provider installation.

Constants

const String!
PROVIDER_NAME = "GmsCore_OpenSSL"

Public constructors

Public functions

java-static Unit

Installs the dynamically updatable security provider, if it's not already installed.

java-static Unit

Asynchronously installs the dynamically updatable security provider, if it's not already installed.

Constants

PROVIDER_NAME

const val PROVIDER_NAME = "GmsCore_OpenSSL": String!

Public constructors

ProviderInstaller

ProviderInstaller()

Public functions

installIfNeeded

java-static fun installIfNeeded(context: Context!): Unit

Installs the dynamically updatable security provider, if it's not already installed.

installIfNeededAsync

java-static fun installIfNeededAsync(
    context: Context!,
    listener: ProviderInstaller.ProviderInstallListener!
): Unit

Asynchronously installs the dynamically updatable security provider, if it's not already installed. This method must be called on the UI thread.

Parameters
listener: ProviderInstaller.ProviderInstallListener!

called when the installation completes