-
- All Implemented Interfaces:
-
org.unifiedpush.android.connector.keys.KeyManager
public final class DefaultKeyManager implements KeyManager
Default KeyManager.
For SDK >= 23, private keys are stored encrypted in shared preferences using AES-GCM, and a random key in the Android Key Store.
For SDK < 23, private keys are stored in plain text in shared preferences.
-
-
Constructor Summary
Constructors Constructor Description DefaultKeyManager(Context context)
-
Method Summary
Modifier and Type Method Description ByteArraydecrypt(String instance, ByteArray sealed)Decrypt sealed with instance's keys. Unitgenerate(String instance)Generate a new key pair and auth secret for instance. PublicKeySetgetPublicKeySet(String instance)Get PublicKeySet for instance. Booleanexists(String instance)Check if the key set for instance exists and is valid. Unitdelete(String instance)Delete key set for instance. -
-
Constructor Detail
-
DefaultKeyManager
DefaultKeyManager(Context context)
-
-
Method Detail
-
getPublicKeySet
PublicKeySet getPublicKeySet(String instance)
Get PublicKeySet for instance. Encoded to be shared to the application server.
-
-
-
-