Class Info |
|---|
public class SysIntegrityRequest Builds a request class of the SysIntegrity API. |
Method |
|---|
public void setNonce(byte[] nonce) Sets a nonce value. |
Parameters
Name | Description |
|---|---|
nonce | Cryptographic nonce value, which is used to prevent replay attacks. Ensure that the nonce value passed each time when the sysIntegrity API is called is unique. A nonce value must consist of 16 to 66 bytes. NOTE: This parameter is mandatory. |
Method |
|---|
public void setAppId(String appId) Sets the app ID. |
Parameters
Name | Description |
|---|---|
appId | App ID applied on HUAWEI Developers. HMS Core (APK) needs to authenticate the app ID. You need to enable the Safety Detect service for the app with this ID on the Manage APIs page in AppGallery Connect. NOTE: This parameter is mandatory. |
Method |
|---|
public void setAlg(String alg) Sets the signature algorithm. |
Parameters
Name | Description |
|---|---|
alg | Signature algorithm padding mode. The options include RS256 and PS256.
NOTE: This parameter is mandatory. You are advised to set this parameter to PS256. |