java.lang.Object | |
↳ | com.samsung.android.knox.dlp.DLPManagerPolicy |
Deprecated in API level 27
This class provides APIs for MDM administrators to configure Data Loss Prevention(DLP) on the device. It provides APIs to set configure the information and provide a list of applications (whitelist) that can make use of the DLP functionality
NOTE: : This API is not available since Android 12(deprecated in API level 27)
API level 19 |
KNOX 2.6 |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Deprecated
in API level 27
| |||||||||||
Deprecated
in API level 27
| |||||||||||
Deprecated
in API level 27
| |||||||||||
Deprecated
in API level 27
| |||||||||||
Deprecated
in API level 27
| |||||||||||
Deprecated
in API level 27
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Deprecated in API level 27
API to add list of applications to DLP whitelist.
list | List of objects of type DLPPackageInfo to be added in DLP whitelist |
---|
true
if success, false
if it failedSecurityException | If caller does not have required permissions |
---|
An administrator can use this API to add a list of applications in DLP whitelist which can access DLP files. There are two type of application, both App types can set DLP attribute(s) while creating sensitive contents, and also can access these DLP contents. However, additional Restriction Policy (clipboard, network access, and so on) is enforced on consumer apps to prevent data leakage from these type of apps. You can create the DLP package-info list of apps that needs to be added to DLP whitelist. Each DLP Package-info can consist of package name, app type (creator is 0, consumer is 1), and signature (optional). If "Type" is not set for any given package-info then by default app type considered as creator.
|
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); DLPManagerPolicy dlpManagerPolicy = kcm.getDLPManagerPolicy(); |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_DLP_MGMT" permission which has a protection level of signature. |
API level 19 |
KNOX 2.6 |
User Scope |
Deprecated in API level 27
API to get DLP configuration.
An administrator can use this API to get configuration for DLP
|
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); DLPManagerPolicy dlpManagerPolicy = kcm.getDLPManagerPolicy(); try { Bundle config = dlpManagerPolicy.getDLPConfig(); } catch (SecurityException e) { Log.w(TAG, "Exception" + e); } boolean isActivated = config.getBoolean("Activate", false); boolean isLocked = config.getBoolean("Lock", false); int expiryAfter = config.getInt("ExpiryAfter", 0); // List of additional supported extensions // Note: Since KNOX 2.7, Extra extension support is available for DLP String supportedExtraExtensions = config.getString("Extensions",null); // List of domain names whitelisted to allow DLP file upload operation. // Note: Since Knox 2.8, Domains support is available for DLP String supportedDomains = config.getString("Domains",null); //List of enabled events for dlp audit logging //Note: Since Knox 2.8, Audit logging support is available for DLP boolean isLogFileCreateEvent = config.getBoolean("CREATE", false); boolean isLogFileOpenEvent = config.getBoolean("OPEN", false); boolean isLogFileRenameEvent = config.getBoolean("RENAME", false); boolean isLogFileExpiredAccessEvent = config.getBoolean("EXPIRED", false); boolean isLogFileUnauthorizedAccessEvent = config.getBoolean("UNAUTHORIZED", false); |
API level 19 |
KNOX 2.6 |
User Scope |
Deprecated in API level 27
API to get list of applications from DLP whitelist.
DLPPackageInfo
if succeeds, else null.An administrator can use this API to get a list of applications from DLP whitelist which can access DLP files.
|
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context);
KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID);
DLPManagerPolicy dlpManagerPolicy = kcm.getDLPManagerPolicy();
try {
|
API level 19 |
KNOX 2.6 |
User Scope |
Deprecated in API level 27
API to remove DLP files.
onlyExpired | If true then only expired DLP files will be removed; if false all DLP Files will be removed |
---|
true
if success, false
if it failedSecurityException | If caller does not have required permissions |
---|
An administrator can use this API to remove DLP files on device.
|
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); DLPManagerPolicy dlpManagerPolicy = kcm.getDLPManagerPolicy(); try { boolean ret = dlpManagerPolicy.removeDLPFiles(false); } catch (SecurityException e) { Log.w(TAG, "Exception" + e); } |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_DLP_MGMT" permission which has a protection level of signature. |
API level 19 |
KNOX 2.6 |
User Scope |
Deprecated in API level 27
API to remove list of applications from DLP whitelist.
list | List of String to be removed from DLP whitelist |
---|
true
if success, false
if it failedSecurityException | If caller does not have required permissions |
---|
An administrator can use this API to remove a list of appliations from DLP whitelist.
|
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); DLPManagerPolicy dlpManagerPolicy = kcm.getDLPManagerPolicy(); |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_DLP_MGMT" permission which has a protection level of signature. |
API level 19 |
KNOX 2.6 |
User Scope |
Deprecated in API level 27
API to set DLP configuration.
config | Bundle of configuration data to set |
---|
true
if success, false
if it failedSecurityException | If caller does not have required permissions |
---|
An administrator can use this API to set configuration for DLP.
|
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context); KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID); DLPManagerPolicy dlpManagerPolicy = kcm.getDLPManagerPolicy(); // set configuration Bundle config = new Bundle(); config.putBoolean("Activate", true); config.putBoolean("Lock", false); config.putInt("ExpiryAfter", 3 * 24 * 60 * 60); // Extra extension list to be supported for DLP. In case null is passed only default extensions will be supported // Default supproted extensions:[xls,xlsx,doc,docx,ppt,pptx,pdf,jpg,jpeg,zip,mp4,txt,asd,xlam,htm,html,mht,eml,msg,hwp,gul,rtf,mysingle,png,gif] // To add: pass comma(,) seperated extensions // To delete: remove the extension from list or pass null to delete all previously set extra extensions // Note: Since KNOX 2.7, Extra extension support is available for DLP. config.putString("Extensions", "xxx,yyy,zzz"); //Domain names separated by comma, which are trusted by admin through which //sensitive file upload operations are allowed. To delete: remove the domain //names from list or pass null to delete all previously set domain names. //Note: Since Knox 2.8, Domain name whitelist support for DLP file upload operation is available for DLP. config.putString("Domains", "google.com,filedrive.com"); //5 separate boolean values related to event types must be passed in the config variable //to enable or disable DLP audit logging for respective events //To enable logging: pass true value to respective event flag //To disable logging: pass false value to respective event flag //Note: Since Knox 2.8, Audit logging feature is available for DLP. config.putBoolean("CREATE", true); config.putBoolean("OPEN", true); config.putBoolean("RENAME", false); config.putBoolean("EXPIRED", false); config.putBoolean("UNAUTHORIZED", true); try { dlpManagerPolicy.setDLPConfig(config); } catch (SecurityException e) { Log.w(TAG, "Exception" + e); } |
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_DLP_MGMT" permission which has a protection level of signature. |
API level 19 |
KNOX 2.6 |
User Scope |