Use constant for name when removing real provider

This commit is contained in:
Max Rumpf 2021-10-16 18:06:39 +02:00 committed by Danny Lin
parent d4cee49c57
commit ffbe35af33

View File

@ -19,7 +19,7 @@ internal object SecurityBridge {
val provider = ProxyProvider(realProvider)
logDebug("Removing real provider")
Security.removeProvider("AndroidKeyStore")
Security.removeProvider(PROVIDER_NAME)
logDebug("Inserting provider $provider")
Security.insertProviderAt(provider, 1)
ProxyKeyStoreSpi.androidImpl = realSpi