Class PasscodePolicy

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      PasscodePolicy(Boolean enabled, Integer lockTimeout, Integer minLength, Boolean lowerRequired, Boolean upperRequired, Boolean digitRequired, Boolean specialCharRequired, Boolean fingerPrintEnabled, Integer uniqueCharNumber, Integer retryLimit, Boolean digitOnly, Boolean localizingDigitsToLatin, Integer expireInDays, Boolean defaultPasswordEnabled, Integer historyCount)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • PasscodePolicy

        PasscodePolicy(Boolean enabled, Integer lockTimeout, Integer minLength, Boolean lowerRequired, Boolean upperRequired, Boolean digitRequired, Boolean specialCharRequired, Boolean fingerPrintEnabled, Integer uniqueCharNumber, Integer retryLimit, Boolean digitOnly, Boolean localizingDigitsToLatin, Integer expireInDays, Boolean defaultPasswordEnabled, Integer historyCount)
    • Method Detail

      • getEnabled

         final Boolean getEnabled()

        Whether the passcode policy is enabled or not.

      • getLockTimeout

         final Integer getLockTimeout()

        The app lock time out setting, in seconds.

      • getMinLength

         final Integer getMinLength()

        The minimum length the passcode.

      • getLowerRequired

         final Boolean getLowerRequired()

        Whether the passcode requires lower case letters.

      • getUpperRequired

         final Boolean getUpperRequired()

        Whether the passcode requires upper case letters.

      • getDigitRequired

         final Boolean getDigitRequired()

        Whether the passcode requires digital numbers.

      • getSpecialCharRequired

         final Boolean getSpecialCharRequired()

        Whether the passcode requires special letters.

      • getUniqueCharNumber

         final Integer getUniqueCharNumber()

        How many unique letters are required in the passcode.

      • getDigitOnly

         final Boolean getDigitOnly()

        Whether the passcode can only contain digital numbers.

      • getDefaultPasswordEnabled

         final Boolean getDefaultPasswordEnabled()

        When this is 'true', even the passcode policy is enabled, the passcode creation process can still be skipped for the primary user.

      • getHistoryCount

         final Integer getHistoryCount()

        The passcode history count which cannot be reused. When it's less than or equal to 0, it means the passcode history will NOT be checked.

      • checkLower

         final Boolean checkLower(CharArray code)
      • checkUpper

         final Boolean checkUpper(CharArray code)
      • checkDigit

         final Boolean checkDigit(CharArray code)
      • canSkipPasscodeCreation

         final Boolean canSkipPasscodeCreation()

        Checks if the passcode creation can be skipped on this policy.

      • validatePasscode

         final Boolean validatePasscode(CharArray code, List<String> history, Function1<String, String> algorithm)

        Validates the given code with this passcode policy.

        Parameters:
        code - the passcode
        history - The passcode history which contains the encrypted passcode hashes.
        algorithm - The encryption algorithm which was applied before saving the passcode into local database.