DeviceIdentifier

open class DeviceIdentifier

Model of Device Identifier

Constructors

Link copied to clipboard
constructor(@NotNull context: @NotNull Context, keyStoreManager: KeyStoreManager)

Types

Link copied to clipboard
Builder class to build the device identifier

Properties

Link copied to clipboard
private open var keyAlias: String
Link copied to clipboard
private open var keyStoreManager: KeyStoreManager

Functions

Link copied to clipboard
Initiate the DeviceIdentifierBuilder class
Link copied to clipboard
Retrieve the certificate that used to generate the device ID.
Link copied to clipboard
open fun getIdentifier(): String
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.
Link copied to clipboard
open fun persist(certificate: Array<Byte>)
Persist the X509 certificate to the KeyStore, the certificate will be used to generate the Device Key Identifier
Link copied to clipboard
private open fun toHexString(byteArray: Array<Byte>): String