Class AndroidManagedAppProtection.Builder

    • Method Detail

      • allowedAndroidDeviceManufacturers

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

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

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

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

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

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

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

        public AndroidManagedAppProtection.Builder approvedKeyboards​(List<KeyValuePair> approvedKeyboards)
        “If Keyboard Restriction is enabled, only keyboards in this approved list will be allowed. A key should be Android package id for a keyboard and value should be a friendly name”
        Parameters:
        approvedKeyboards - value of approvedKeyboards property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • approvedKeyboards

        public AndroidManagedAppProtection.Builder approvedKeyboards​(KeyValuePair... approvedKeyboards)
        “If Keyboard Restriction is enabled, only keyboards in this approved list will be allowed. A key should be Android package id for a keyboard and value should be a friendly name”
        Parameters:
        approvedKeyboards - value of approvedKeyboards property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • approvedKeyboardsNextLink

        public AndroidManagedAppProtection.Builder approvedKeyboardsNextLink​(String approvedKeyboardsNextLink)
        “If Keyboard Restriction is enabled, only keyboards in this approved list will be allowed. A key should be Android package id for a keyboard and value should be a friendly name”
        Parameters:
        approvedKeyboardsNextLink - value of approvedKeyboards@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • biometricAuthenticationBlocked

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

        public AndroidManagedAppProtection.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 AndroidManagedAppProtection.Builder connectToVpnOnLaunch​(Boolean connectToVpnOnLaunch)
        “Whether the app should connect to the configured VPN on launch.”
        Parameters:
        connectToVpnOnLaunch - value of connectToVpnOnLaunch property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • customBrowserDisplayName

        public AndroidManagedAppProtection.Builder customBrowserDisplayName​(String customBrowserDisplayName)
        “Friendly name of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true.”
        Parameters:
        customBrowserDisplayName - value of customBrowserDisplayName property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • customBrowserPackageId

        public AndroidManagedAppProtection.Builder customBrowserPackageId​(String customBrowserPackageId)
        “Unique identifier of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true.”
        Parameters:
        customBrowserPackageId - value of customBrowserPackageId property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • customDialerAppDisplayName

        public AndroidManagedAppProtection.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 AndroidManagedAppProtection.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)
      • deployedAppCount

        public AndroidManagedAppProtection.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 AndroidManagedAppProtection.Builder deviceLockRequired​(Boolean deviceLockRequired)
        “Defines if any kind of lock must be required on android device”
        Parameters:
        deviceLockRequired - value of deviceLockRequired property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • disableAppEncryptionIfDeviceEncryptionIsEnabled

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

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

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

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

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

        public AndroidManagedAppProtection.Builder keyboardsRestricted​(Boolean keyboardsRestricted)
        “Indicates if keyboard restriction is enabled. If enabled list of approved keyboards must be provided as well.”
        Parameters:
        keyboardsRestricted - value of keyboardsRestricted property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • minimumRequiredCompanyPortalVersion

        public AndroidManagedAppProtection.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 AndroidManagedAppProtection.Builder minimumRequiredPatchVersion​(String minimumRequiredPatchVersion)
        “Define the oldest required Android security patch level a user can have to gain secure access to the app.”
        Parameters:
        minimumRequiredPatchVersion - value of minimumRequiredPatchVersion property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • minimumWarningCompanyPortalVersion

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

        public AndroidManagedAppProtection.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 AndroidManagedAppProtection.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.”
        Parameters:
        minimumWipePatchVersion - value of minimumWipePatchVersion property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • requiredAndroidSafetyNetAppsVerificationType

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

        public AndroidManagedAppProtection.Builder screenCaptureBlocked​(Boolean screenCaptureBlocked)
        “Indicates whether a managed user can take screen captures of managed apps”
        Parameters:
        screenCaptureBlocked - value of screenCaptureBlocked property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • warnAfterCompanyPortalUpdateDeferralInDays

        public AndroidManagedAppProtection.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 AndroidManagedAppProtection.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)