ProviderInstaller
public class ProviderInstaller
A utility class for installing a dynamically updatable java.security.Provider to replace the platform default provider.
Summary
Nested types |
|---|
public interface ProviderInstaller.ProviderInstallListenerCallback for notification of the result of provider installation. |
Constants |
|
|---|---|
static final String |
PROVIDER_NAME = "GmsCore_OpenSSL" |
Public constructors |
|---|
Public methods |
|
|---|---|
static void |
installIfNeeded(Context context)Installs the dynamically updatable security provider, if it's not already installed. |
static void |
installIfNeededAsync(Asynchronously installs the dynamically updatable security provider, if it's not already installed. |
Constants
Public constructors
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 |