ProviderInstaller

Kotlin|Java

public classProviderInstaller


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

Summary

Nested types

Callback for notification of the result of provider installation.

Constants

static finalString
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

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.