WifiPasswordUtil

@objcMembers
@objc(GSWifiPasswordUtil)
public class WifiPasswordUtil : NSObject

Class with a static function to validate the syntax of a password.

  • Regular expression in order to check the password validity.

    Declaration

    Swift

    public static let passwordPattern: String
  • Checks wifi password validity.

    Note

    A valid wifi password contains from 8 to 63 printable ASCII characters.

    Declaration

    Swift

    public static func isValid(_ password: String) -> Bool

    Parameters

    password

    the password to validate

    Return Value

    true if password is valid, false otherwise