public class SfpPolicyManager extends Object
SfpPolicyManager instance.SystemCapability.Security#DATACLASSFICATION_DATAFLAG| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
ERROR_CODE_CE_DE_CONTEXT |
Indicates that the label value of the file does not match the storage type in the application context,
which is Credential Encrypted (CE) or Device Encrypted (DE).
|
static int |
ERROR_CODE_FAILED |
Indicates that the method fails to be called.
|
static int |
ERROR_CODE_INVALID_PARAM |
Indicates that an input parameter of the method is invalid.
|
static int |
ERROR_CODE_LABEL_HAS_BEEN_SET |
Indicates that a label has been set for the file.
|
static int |
ERROR_CODE_OK |
Indicates that the method is called successfully.
|
static int |
FLAG_FILE_PROTECTION_COMPLETE |
Indicates that the file whose
labelValue is S3 cannot be opened, read, or written
when the device is locked. |
static int |
FLAG_FILE_PROTECTION_COMPLETE_UNLESS_OPEN |
Indicates that when the device is locked, the file whose
labelValue is S3 can be read or written
if it is opened, but cannot be read or written if it has been closed, unless the device is unlocked. |
static String |
LABEL_NAME_SECURITY_LEVEL |
Indicates the label name, which is
LABEL_NAME_SECURITY_LEVEL. |
static String |
LABEL_VALUE_S0 |
Indicates label value
S0, which means that the data is public to all. |
static String |
LABEL_VALUE_S1 |
Indicates label value
S1, which means that the data is at the low risk level. |
static String |
LABEL_VALUE_S2 |
Indicates label value
S2, which means that the data is at the moderate risk level. |
static String |
LABEL_VALUE_S3 |
Indicates label value
S3, which means that the data is at the high risk level. |
static String |
LABEL_VALUE_S4 |
Indicates label value
S4, which means that the data is at the very high risk level. |
public static final int ERROR_CODE_CE_DE_CONTEXT
public static final int ERROR_CODE_FAILED
public static final int ERROR_CODE_INVALID_PARAM
public static final int ERROR_CODE_LABEL_HAS_BEEN_SET
public static final int ERROR_CODE_OK
public static final int FLAG_FILE_PROTECTION_COMPLETE
labelValue is S3 cannot be opened, read, or written
when the device is locked.public static final int FLAG_FILE_PROTECTION_COMPLETE_UNLESS_OPEN
labelValue is S3 can be read or written
if it is opened, but cannot be read or written if it has been closed, unless the device is unlocked.public static final String LABEL_NAME_SECURITY_LEVEL
LABEL_NAME_SECURITY_LEVEL.public static final String LABEL_VALUE_S0
S0, which means that the data is public to all.
Examples of such data: introductions to products that have been released, information about open meetings, and open-source code
public static final String LABEL_VALUE_S1
S1, which means that the data is at the low risk level.
Leakage of such data may result in minor adverse impact on individuals or organizations.
Examples of such data: nationality, birthplace, and education
public static final String LABEL_VALUE_S2
S2, which means that the data is at the moderate risk level. Leakage of such data
may result in severe adverse impact on individuals or organizations.
Examples of such data: detailed address, name, and nickname of an individual
public static final String LABEL_VALUE_S3
S3, which means that the data is at the high risk level. Leakage of such data
may result in very severe adverse impact on individuals or organizations.
Examples of such data: precise real-time position and motion track of an individual
public static final String LABEL_VALUE_S4
S4, which means that the data is at the very high risk level.
Leakage of such data may result in significant adverse impact on individuals or organizations.
Examples of such data: health status and credit card information of an individual
public static ISfpPolicyManager getInstance()
SfpPolicyManager instance.SfpPolicyManager instance if it is available; returns
a new SfpPolicyManager instance if no initialized SfpPolicyManager instance is available.