Class DefaultManagedAppProtection.Builder

    • Method Detail

      • allowedAndroidDeviceManufacturers

        public DefaultManagedAppProtection.Builder allowedAndroidDeviceManufacturers​(String allowedAndroidDeviceManufacturers)
        “Semicolon seperated list of device manufacturers allowed, as a string, for the managed app to work. (Android only)”
        Parameters:
        allowedAndroidDeviceManufacturers - value of allowedAndroidDeviceManufacturers property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • allowedAndroidDeviceModels

        public DefaultManagedAppProtection.Builder allowedAndroidDeviceModels​(List<String> allowedAndroidDeviceModels)
        “List of device models allowed, as a string, for the managed app to work. ( Android Only)”
        Parameters:
        allowedAndroidDeviceModels - value of allowedAndroidDeviceModels property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • allowedAndroidDeviceModels

        public DefaultManagedAppProtection.Builder allowedAndroidDeviceModels​(String... allowedAndroidDeviceModels)
        “List of device models allowed, as a string, for the managed app to work. ( Android Only)”
        Parameters:
        allowedAndroidDeviceModels - value of allowedAndroidDeviceModels property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • allowedAndroidDeviceModelsNextLink

        public DefaultManagedAppProtection.Builder allowedAndroidDeviceModelsNextLink​(String allowedAndroidDeviceModelsNextLink)
        “List of device models allowed, as a string, for the managed app to work. ( Android Only)”
        Parameters:
        allowedAndroidDeviceModelsNextLink - value of allowedAndroidDeviceModels@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • allowedIosDeviceModels

        public DefaultManagedAppProtection.Builder allowedIosDeviceModels​(String allowedIosDeviceModels)
        “Semicolon seperated list of device models allowed, as a string, for the managed app to work. (iOS Only)”
        Parameters:
        allowedIosDeviceModels - value of allowedIosDeviceModels property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • appActionIfAndroidDeviceManufacturerNotAllowed

        public DefaultManagedAppProtection.Builder appActionIfAndroidDeviceManufacturerNotAllowed​(ManagedAppRemediationAction appActionIfAndroidDeviceManufacturerNotAllowed)
        “Defines a managed app behavior, either block or wipe, if the specified device manufacturer is not allowed. (Android only)”
        Parameters:
        appActionIfAndroidDeviceManufacturerNotAllowed - value of appActionIfAndroidDeviceManufacturerNotAllowed property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • appActionIfAndroidDeviceModelNotAllowed

        public DefaultManagedAppProtection.Builder appActionIfAndroidDeviceModelNotAllowed​(ManagedAppRemediationAction appActionIfAndroidDeviceModelNotAllowed)
        “Defines a managed app behavior, either block or wipe, if the specified device model is not allowed. (Android Only)”
        Parameters:
        appActionIfAndroidDeviceModelNotAllowed - value of appActionIfAndroidDeviceModelNotAllowed property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • appActionIfAndroidSafetyNetAppsVerificationFailed

        public DefaultManagedAppProtection.Builder appActionIfAndroidSafetyNetAppsVerificationFailed​(ManagedAppRemediationAction appActionIfAndroidSafetyNetAppsVerificationFailed)
        “Defines a managed app behavior, either warn or block, if the specified Android App Verification requirement fails.”
        Parameters:
        appActionIfAndroidSafetyNetAppsVerificationFailed - value of appActionIfAndroidSafetyNetAppsVerificationFailed property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • appActionIfAndroidSafetyNetDeviceAttestationFailed

        public DefaultManagedAppProtection.Builder appActionIfAndroidSafetyNetDeviceAttestationFailed​(ManagedAppRemediationAction appActionIfAndroidSafetyNetDeviceAttestationFailed)
        “Defines a managed app behavior, either warn or block, if the specified Android SafetyNet Attestation requirement fails.”
        Parameters:
        appActionIfAndroidSafetyNetDeviceAttestationFailed - value of appActionIfAndroidSafetyNetDeviceAttestationFailed property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • appActionIfDeviceLockNotSet

        public DefaultManagedAppProtection.Builder appActionIfDeviceLockNotSet​(ManagedAppRemediationAction appActionIfDeviceLockNotSet)
        “Defines a managed app behavior, either warn, block or wipe, if the screen lock is required on device but is not set. (android only)”
        Parameters:
        appActionIfDeviceLockNotSet - value of appActionIfDeviceLockNotSet property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • appActionIfIosDeviceModelNotAllowed

        public DefaultManagedAppProtection.Builder appActionIfIosDeviceModelNotAllowed​(ManagedAppRemediationAction appActionIfIosDeviceModelNotAllowed)
        “Defines a managed app behavior, either block or wipe, if the specified device model is not allowed. (iOS Only)”
        Parameters:
        appActionIfIosDeviceModelNotAllowed - value of appActionIfIosDeviceModelNotAllowed property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • appDataEncryptionType

        public DefaultManagedAppProtection.Builder appDataEncryptionType​(ManagedAppDataEncryptionType appDataEncryptionType)
        “Type of encryption which should be used for data in a managed app. (iOS Only)”
        Parameters:
        appDataEncryptionType - value of appDataEncryptionType property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • biometricAuthenticationBlocked

        public DefaultManagedAppProtection.Builder biometricAuthenticationBlocked​(Boolean biometricAuthenticationBlocked)
        “Indicates whether use of the biometric authentication is allowed in place of a pin if PinRequired is set to True. (Android Only)”
        Parameters:
        biometricAuthenticationBlocked - value of biometricAuthenticationBlocked property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • blockAfterCompanyPortalUpdateDeferralInDays

        public DefaultManagedAppProtection.Builder blockAfterCompanyPortalUpdateDeferralInDays​(Integer blockAfterCompanyPortalUpdateDeferralInDays)
        “Maximum number of days Company Portal update can be deferred on the device or app access will be blocked.”
        Parameters:
        blockAfterCompanyPortalUpdateDeferralInDays - value of blockAfterCompanyPortalUpdateDeferralInDays property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • connectToVpnOnLaunch

        public DefaultManagedAppProtection.Builder connectToVpnOnLaunch​(Boolean connectToVpnOnLaunch)
        “Whether the app should connect to the configured VPN on launch (Android only).”
        Parameters:
        connectToVpnOnLaunch - value of connectToVpnOnLaunch property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • customBrowserDisplayName

        public DefaultManagedAppProtection.Builder customBrowserDisplayName​(String customBrowserDisplayName)
        “Friendly name of the preferred custom browser to open weblink on Android. ( Android only)”
        Parameters:
        customBrowserDisplayName - value of customBrowserDisplayName property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • customBrowserPackageId

        public DefaultManagedAppProtection.Builder customBrowserPackageId​(String customBrowserPackageId)
        “Unique identifier of a custom browser to open weblink on Android. (Android only)”
        Parameters:
        customBrowserPackageId - value of customBrowserPackageId property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • customBrowserProtocol

        public DefaultManagedAppProtection.Builder customBrowserProtocol​(String customBrowserProtocol)
        “A custom browser protocol to open weblink on iOS. (iOS only)”
        Parameters:
        customBrowserProtocol - value of customBrowserProtocol property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • customDialerAppDisplayName

        public DefaultManagedAppProtection.Builder customDialerAppDisplayName​(String customDialerAppDisplayName)
        “Friendly name of a custom dialer app to click-to-open a phone number on Android.”
        Parameters:
        customDialerAppDisplayName - value of customDialerAppDisplayName property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • customDialerAppPackageId

        public DefaultManagedAppProtection.Builder customDialerAppPackageId​(String customDialerAppPackageId)
        “PackageId of a custom dialer app to click-to-open a phone number on Android.”
        Parameters:
        customDialerAppPackageId - value of customDialerAppPackageId property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • customDialerAppProtocol

        public DefaultManagedAppProtection.Builder customDialerAppProtocol​(String customDialerAppProtocol)
        “Protocol of a custom dialer app to click-to-open a phone number on iOS, for example, skype:.”
        Parameters:
        customDialerAppProtocol - value of customDialerAppProtocol property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • customSettings

        public DefaultManagedAppProtection.Builder customSettings​(List<KeyValuePair> customSettings)
        “A set of string key and string value pairs to be sent to the affected users, unalterned by this service”
        Parameters:
        customSettings - value of customSettings property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • customSettings

        public DefaultManagedAppProtection.Builder customSettings​(KeyValuePair... customSettings)
        “A set of string key and string value pairs to be sent to the affected users, unalterned by this service”
        Parameters:
        customSettings - value of customSettings property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • customSettingsNextLink

        public DefaultManagedAppProtection.Builder customSettingsNextLink​(String customSettingsNextLink)
        “A set of string key and string value pairs to be sent to the affected users, unalterned by this service”
        Parameters:
        customSettingsNextLink - value of customSettings@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • deployedAppCount

        public DefaultManagedAppProtection.Builder deployedAppCount​(Integer deployedAppCount)
        “Count of apps to which the current policy is deployed.”
        Parameters:
        deployedAppCount - value of deployedAppCount property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • deviceLockRequired

        public DefaultManagedAppProtection.Builder deviceLockRequired​(Boolean deviceLockRequired)
        “Defines if any kind of lock must be required on device. (android only)”
        Parameters:
        deviceLockRequired - value of deviceLockRequired property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • disableAppEncryptionIfDeviceEncryptionIsEnabled

        public DefaultManagedAppProtection.Builder disableAppEncryptionIfDeviceEncryptionIsEnabled​(Boolean disableAppEncryptionIfDeviceEncryptionIsEnabled)
        “When this setting is enabled, app level encryption is disabled if device level encryption is enabled. (Android only)”
        Parameters:
        disableAppEncryptionIfDeviceEncryptionIsEnabled - value of disableAppEncryptionIfDeviceEncryptionIsEnabled property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • disableProtectionOfManagedOutboundOpenInData

        public DefaultManagedAppProtection.Builder disableProtectionOfManagedOutboundOpenInData​(Boolean disableProtectionOfManagedOutboundOpenInData)
        “Disable protection of data transferred to other apps through IOS OpenIn option. This setting is only allowed to be True when AllowedOutboundDataTransferDestinations is set to ManagedApps. (iOS Only)”
        Parameters:
        disableProtectionOfManagedOutboundOpenInData - value of disableProtectionOfManagedOutboundOpenInData property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • encryptAppData

        public DefaultManagedAppProtection.Builder encryptAppData​(Boolean encryptAppData)
        “Indicates whether managed-app data should be encrypted. (Android only)”
        Parameters:
        encryptAppData - value of encryptAppData property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • exemptedAppPackages

        public DefaultManagedAppProtection.Builder exemptedAppPackages​(List<KeyValuePair> exemptedAppPackages)
        “Android App packages in this list will be exempt from the policy and will be able to receive data from managed apps. (Android only)”
        Parameters:
        exemptedAppPackages - value of exemptedAppPackages property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • exemptedAppPackages

        public DefaultManagedAppProtection.Builder exemptedAppPackages​(KeyValuePair... exemptedAppPackages)
        “Android App packages in this list will be exempt from the policy and will be able to receive data from managed apps. (Android only)”
        Parameters:
        exemptedAppPackages - value of exemptedAppPackages property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • exemptedAppPackagesNextLink

        public DefaultManagedAppProtection.Builder exemptedAppPackagesNextLink​(String exemptedAppPackagesNextLink)
        “Android App packages in this list will be exempt from the policy and will be able to receive data from managed apps. (Android only)”
        Parameters:
        exemptedAppPackagesNextLink - value of exemptedAppPackages@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • exemptedAppProtocols

        public DefaultManagedAppProtection.Builder exemptedAppProtocols​(List<KeyValuePair> exemptedAppProtocols)
        “iOS Apps in this list will be exempt from the policy and will be able to receive data from managed apps. (iOS Only)”
        Parameters:
        exemptedAppProtocols - value of exemptedAppProtocols property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • exemptedAppProtocols

        public DefaultManagedAppProtection.Builder exemptedAppProtocols​(KeyValuePair... exemptedAppProtocols)
        “iOS Apps in this list will be exempt from the policy and will be able to receive data from managed apps. (iOS Only)”
        Parameters:
        exemptedAppProtocols - value of exemptedAppProtocols property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • exemptedAppProtocolsNextLink

        public DefaultManagedAppProtection.Builder exemptedAppProtocolsNextLink​(String exemptedAppProtocolsNextLink)
        “iOS Apps in this list will be exempt from the policy and will be able to receive data from managed apps. (iOS Only)”
        Parameters:
        exemptedAppProtocolsNextLink - value of exemptedAppProtocols@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • faceIdBlocked

        public DefaultManagedAppProtection.Builder faceIdBlocked​(Boolean faceIdBlocked)
        “Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True. (iOS Only)”
        Parameters:
        faceIdBlocked - value of faceIdBlocked property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • filterOpenInToOnlyManagedApps

        public DefaultManagedAppProtection.Builder filterOpenInToOnlyManagedApps​(Boolean filterOpenInToOnlyManagedApps)
        “Defines if open-in operation is supported from the managed app to the filesharing locations selected. This setting only applies when AllowedOutboundDataTransferDestinations is set to ManagedApps and DisableProtectionOfManagedOutboundOpenInData is set to False. (iOS Only)”
        Parameters:
        filterOpenInToOnlyManagedApps - value of filterOpenInToOnlyManagedApps property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • minimumRequiredCompanyPortalVersion

        public DefaultManagedAppProtection.Builder minimumRequiredCompanyPortalVersion​(String minimumRequiredCompanyPortalVersion)
        “Minimum version of the Company portal that must be installed on the device or app access will be blocked”
        Parameters:
        minimumRequiredCompanyPortalVersion - value of minimumRequiredCompanyPortalVersion property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • minimumRequiredPatchVersion

        public DefaultManagedAppProtection.Builder minimumRequiredPatchVersion​(String minimumRequiredPatchVersion)
        “Define the oldest required Android security patch level a user can have to gain secure access to the app. (Android only)”
        Parameters:
        minimumRequiredPatchVersion - value of minimumRequiredPatchVersion property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • minimumRequiredSdkVersion

        public DefaultManagedAppProtection.Builder minimumRequiredSdkVersion​(String minimumRequiredSdkVersion)
        “Versions less than the specified version will block the managed app from accessing company data. (iOS Only)”
        Parameters:
        minimumRequiredSdkVersion - value of minimumRequiredSdkVersion property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • minimumWarningCompanyPortalVersion

        public DefaultManagedAppProtection.Builder minimumWarningCompanyPortalVersion​(String minimumWarningCompanyPortalVersion)
        “Minimum version of the Company portal that must be installed on the device or the user will receive a warning”
        Parameters:
        minimumWarningCompanyPortalVersion - value of minimumWarningCompanyPortalVersion property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • minimumWarningPatchVersion

        public DefaultManagedAppProtection.Builder minimumWarningPatchVersion​(String minimumWarningPatchVersion)
        “Define the oldest recommended Android security patch level a user can have for secure access to the app. (Android only)”
        Parameters:
        minimumWarningPatchVersion - value of minimumWarningPatchVersion property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • minimumWipeCompanyPortalVersion

        public DefaultManagedAppProtection.Builder minimumWipeCompanyPortalVersion​(String minimumWipeCompanyPortalVersion)
        “Minimum version of the Company portal that must be installed on the device or the company data on the app will be wiped”
        Parameters:
        minimumWipeCompanyPortalVersion - value of minimumWipeCompanyPortalVersion property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • minimumWipePatchVersion

        public DefaultManagedAppProtection.Builder minimumWipePatchVersion​(String minimumWipePatchVersion)
        “Android security patch level less than or equal to the specified value will wipe the managed app and the associated company data. (Android only)”
        Parameters:
        minimumWipePatchVersion - value of minimumWipePatchVersion property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • minimumWipeSdkVersion

        public DefaultManagedAppProtection.Builder minimumWipeSdkVersion​(String minimumWipeSdkVersion)
        “Versions less than the specified version will block the managed app from accessing company data.”
        Parameters:
        minimumWipeSdkVersion - value of minimumWipeSdkVersion property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • protectInboundDataFromUnknownSources

        public DefaultManagedAppProtection.Builder protectInboundDataFromUnknownSources​(Boolean protectInboundDataFromUnknownSources)
        “Protect incoming data from unknown source. This setting is only allowed to be True when AllowedInboundDataTransferSources is set to AllApps. (iOS Only)”
        Parameters:
        protectInboundDataFromUnknownSources - value of protectInboundDataFromUnknownSources property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • requiredAndroidSafetyNetAppsVerificationType

        public DefaultManagedAppProtection.Builder requiredAndroidSafetyNetAppsVerificationType​(AndroidManagedAppSafetyNetAppsVerificationType requiredAndroidSafetyNetAppsVerificationType)
        “Defines the Android SafetyNet Apps Verification requirement for a managed app to work.”
        Parameters:
        requiredAndroidSafetyNetAppsVerificationType - value of requiredAndroidSafetyNetAppsVerificationType property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • requiredAndroidSafetyNetDeviceAttestationType

        public DefaultManagedAppProtection.Builder requiredAndroidSafetyNetDeviceAttestationType​(AndroidManagedAppSafetyNetDeviceAttestationType requiredAndroidSafetyNetDeviceAttestationType)
        “Defines the Android SafetyNet Device Attestation requirement for a managed app to work.”
        Parameters:
        requiredAndroidSafetyNetDeviceAttestationType - value of requiredAndroidSafetyNetDeviceAttestationType property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • requiredAndroidSafetyNetEvaluationType

        public DefaultManagedAppProtection.Builder requiredAndroidSafetyNetEvaluationType​(AndroidManagedAppSafetyNetEvaluationType requiredAndroidSafetyNetEvaluationType)
        “Defines the Android SafetyNet evaluation type requirement for a managed app to work. (Android Only)”
        Parameters:
        requiredAndroidSafetyNetEvaluationType - value of requiredAndroidSafetyNetEvaluationType property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • screenCaptureBlocked

        public DefaultManagedAppProtection.Builder screenCaptureBlocked​(Boolean screenCaptureBlocked)
        “Indicates whether screen capture is blocked. (Android only)”
        Parameters:
        screenCaptureBlocked - value of screenCaptureBlocked property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • thirdPartyKeyboardsBlocked

        public DefaultManagedAppProtection.Builder thirdPartyKeyboardsBlocked​(Boolean thirdPartyKeyboardsBlocked)
        “Defines if third party keyboards are allowed while accessing a managed app. (iOS Only)”
        Parameters:
        thirdPartyKeyboardsBlocked - value of thirdPartyKeyboardsBlocked property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • warnAfterCompanyPortalUpdateDeferralInDays

        public DefaultManagedAppProtection.Builder warnAfterCompanyPortalUpdateDeferralInDays​(Integer warnAfterCompanyPortalUpdateDeferralInDays)
        “Maximum number of days Company Portal update can be deferred on the device or the user will receive the warning”
        Parameters:
        warnAfterCompanyPortalUpdateDeferralInDays - value of warnAfterCompanyPortalUpdateDeferralInDays property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • wipeAfterCompanyPortalUpdateDeferralInDays

        public DefaultManagedAppProtection.Builder wipeAfterCompanyPortalUpdateDeferralInDays​(Integer wipeAfterCompanyPortalUpdateDeferralInDays)
        “Maximum number of days Company Portal update can be deferred on the device or the company data on the app will be wiped”
        Parameters:
        wipeAfterCompanyPortalUpdateDeferralInDays - value of wipeAfterCompanyPortalUpdateDeferralInDays property (as defined in service metadata)
        Returns:
        this (for method chaining)