FUIPasscodePolicy

public extension FUIPasscodePolicy

Initializes SAPcpms Settings Password Policy from config file

  • Initializes FUIPasscodePolicy from [String: Any] dictionary. For example when the policy received from mobile services and should parse the json. Example structure, which is part of the Settings structure downloaded from mobile services: { “mobileservices”: { “settingsExchange”: { … “passwordPolicy”: { “passwordPolicyMinLength”: “8”, “passwordPolicyLowerRequired”: “false”, “passwordPolicyRetryLimit”: “10”, “passwordPolicyUpperRequired”: “false”, “passwordPolicyEnabled”: “false”, “passwordPolicySpecialRequired”: “false”, “passwordPolicyExpiresInNDays”: “0”, “passwordPolicyLockTimeout”: “300”, “passwordPolicyDigitRequired”: “false”, “passwordPolicyMinUniqueChars”: “0”, “passwordPolicyDefaultPasswordAllowed”: “true” } } … } }

    Throws

    ConfigurationError if the received config is invalid.

    Declaration

    Swift

    init(sapcpmsSettings: Any) throws

    Parameters

    sapcpmsSettings

    ‘Any’ type object which can be converted to [String: Any]

  • Initialize passcodepolicy settings from downloaded SAPcpmsSettings

    Throws

    OnboardingError if the structure is invalid or the structure is not transformable

    Declaration

    Swift

    init(sapcpmsSettingsPasswordPolicy: Any) throws

    Parameters

    sapcpmsSettingsPasswordPolicy

    [String: String] structure which stores the fuipasscodepolicy settings key-value pairs downloaded from SAPcpms