-
- All Implemented Interfaces:
public class DeviceIdentifierModel of Device Identifier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDeviceIdentifier.DeviceIdentifierBuilderBuilder class to build the device identifier
-
Constructor Summary
Constructors Constructor Description DeviceIdentifier(Context context, KeyStoreManager keyStoreManager)
-
Method Summary
Modifier and Type Method Description static DeviceIdentifier.DeviceIdentifierBuilderbuilder()Initiate the DeviceIdentifierBuilder class StringgetIdentifier()Retrieve the Device Identifier, the device identifier is stable except when: * App is restored on a new device * User uninstalls/reinstall the App * User clears app data. CertificategetCertificate()Retrieve the certificate that used to generate the device ID. voidpersist(Array<byte> certificate)Persist the X509 certificate to the KeyStore, the certificate will be used to generate the Device Key Identifier -
-
Constructor Detail
-
DeviceIdentifier
DeviceIdentifier(Context context, KeyStoreManager keyStoreManager)
-
-
Method Detail
-
builder
static DeviceIdentifier.DeviceIdentifierBuilder builder()
Initiate the DeviceIdentifierBuilder class
-
getIdentifier
String getIdentifier()
Retrieve the Device Identifier, the device identifier is stable except when:
* App is restored on a new device
* User uninstalls/reinstall the App
* User clears app data.
-
getCertificate
@Nullable() Certificate getCertificate()
Retrieve the certificate that used to generate the device ID. The Certificate is stored in the Android KeyStore
-
-
-
-