DeviceFingerPrintService
The 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_ERRORduring card activation.
Method signature
copy
public interface DeviceFingerPrintService {
String getDeviceFingerPrint();
}Request parameters
Method | Item | Type | Description | Required |
getDeviceFingerPrint() | N/A | Function | Obtains the device fingerprint. | Yes |
Response parameters
Method | Item | Type | Description | Required |
getDeviceFingerPrint | result | String | The device fingerprint.
| Yes |
Sample
copy
class DeviceIdService(val utdid: String): DeviceFingerPrintService {
override fun getDeviceFingerPrint(): String? {
return DeviceHelper.getDeviceFingerprint(utdid)
}
}