ProviderInstaller

public 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

static final String
PROVIDER_NAME = "GmsCore_OpenSSL"

Public constructors

Public methods

static void

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

static void

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

Constants

PROVIDER_NAME

public static final String PROVIDER_NAME = "GmsCore_OpenSSL"

Public constructors

ProviderInstaller

public ProviderInstaller()

Public methods

installIfNeeded

public static void installIfNeeded(Context context)

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

installIfNeededAsync

public static void installIfNeededAsync(
    Context context,
    ProviderInstaller.ProviderInstallListener listener
)

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

Parameters
ProviderInstaller.ProviderInstallListener listener

called when the installation completes