Esempio n. 1
0
        // Returns boolean signifying if Watermark is allowed or not.
        public bool allowWatermark()
        {
            bool watermarkEnabled = false;

            if (sdkProfile != null && sdkProfile.RestrictionsPayload != null)
            {
                AWRestrictionsPayload restrictionsPayload = sdkProfile.RestrictionsPayload;
                watermarkEnabled = (restrictionsPayload.EnableWatermark);
            }
            return(watermarkEnabled);
        }
Esempio n. 2
0
        // Returns boolean signifying if camera access is allowed or not. Can be configured under DLP Settings in Settings.
        public bool allowCamera()
        {
            bool cameraAccess = false;

            if (sdkProfile != null && sdkProfile.RestrictionsPayload != null)
            {
                AWRestrictionsPayload restrictionsPayload = sdkProfile.RestrictionsPayload;
                cameraAccess = (restrictionsPayload.EnableCameraAccess);
            }
            return(cameraAccess);
        }
Esempio n. 3
0
        // Returns a list of allowed application list for document opening. Can be configured under DLP Settings in Settings.
        public NSArray allowedApplicationsList()
        {
            NSArray allowedApps = null;

            if (sdkProfile != null && sdkProfile.RestrictionsPayload != null)
            {
                AWRestrictionsPayload restrictionsPayload = sdkProfile.RestrictionsPayload;
                allowedApps = restrictionsPayload.AllowedApplications;
            }
            return(allowedApps);
        }
Esempio n. 4
0
        // Returns boolean signifying if document opening is allowed in specific apps or not. If checked then list of allowed apps can be obtained from allowedApplicationsList()
        public bool restrictDocumentToApps()
        {
            bool restrictApps = false;

            if (sdkProfile != null && sdkProfile.RestrictionsPayload != null)
            {
                AWRestrictionsPayload restrictionsPayload = sdkProfile.RestrictionsPayload;
                restrictApps = restrictionsPayload.RestrictDocumentToApps;
            }
            return(restrictApps);
        }
Esempio n. 5
0
        // Returns boolean signifying if copy paste operation is allowed or not. Can be configured under DLP Settings in Settings
        public bool allowCopyPaste()
        {
            bool copyPastePermission = false;

            if (sdkProfile != null && sdkProfile.RestrictionsPayload != null)
            {
                AWRestrictionsPayload restrictionsPayload = sdkProfile.RestrictionsPayload;
                copyPastePermission = !(restrictionsPayload.PreventCopyAndCut);
            }
            return(copyPastePermission);
        }
Esempio n. 6
0
        public bool DLPEnabled()
        {
            bool DLPPersmission = false;
            AWRestrictionsPayload restrictionsPayload = sdkProfile.RestrictionsPayload;

            if (sdkProfile != null && restrictionsPayload != null)
            {
                DLPPersmission = restrictionsPayload.EnableDataLossPrevention;
            }
            return(DLPPersmission);
        }