DeviceFingerPrintService
DeviceFingerPrintService is a device SPI that enables the SDK to request device fingerprints from the MPP. The service requires SHA-256 encryption.
Note: If this SPI is not implemented, or if the returned device fingerprint does not use SHA-256 encryption, the SDK will return a PARAMS_ERROR during card activation.
Method Signature
copy
public interface DeviceFingerPrintService {
String getDeviceFingerPrint();
}Request parameters
Item | Type | Parameters | Description | Require |
getDeviceFingerPrint() | Function | / | Obtains the device fingerprint. | Required |
Response parameters
N/A
Sample
copy
class DeviceIdService(val utdid: String): DeviceFingerPrintService {
override fun getDeviceFingerPrint(): String? {
return DeviceHelper.getDeviceFingerprint(utdid)
}
}