Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2CustomStrengthOptions
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2CustomStrengthOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/identitytoolkit_v2/classes.rb,
lib/google/apis/identitytoolkit_v2/representations.rb,
lib/google/apis/identitytoolkit_v2/representations.rb
Overview
Custom strength options to enforce on user passwords.
Instance Attribute Summary collapse
-
#contains_lowercase_character ⇒ Boolean
(also: #contains_lowercase_character?)
The password must contain a lower case character.
-
#contains_non_alphanumeric_character ⇒ Boolean
(also: #contains_non_alphanumeric_character?)
The password must contain a non alpha numeric character.
-
#contains_numeric_character ⇒ Boolean
(also: #contains_numeric_character?)
The password must contain a number.
-
#contains_uppercase_character ⇒ Boolean
(also: #contains_uppercase_character?)
The password must contain an upper case character.
-
#max_password_length ⇒ Fixnum
Maximum password length.
-
#min_password_length ⇒ Fixnum
Minimum password length.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV2CustomStrengthOptions
constructor
A new instance of GoogleCloudIdentitytoolkitV2CustomStrengthOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV2CustomStrengthOptions
Returns a new instance of GoogleCloudIdentitytoolkitV2CustomStrengthOptions.
2109 2110 2111 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2109 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contains_lowercase_character ⇒ Boolean Also known as: contains_lowercase_character?
The password must contain a lower case character.
Corresponds to the JSON property containsLowercaseCharacter
2078 2079 2080 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2078 def contains_lowercase_character @contains_lowercase_character end |
#contains_non_alphanumeric_character ⇒ Boolean Also known as: contains_non_alphanumeric_character?
The password must contain a non alpha numeric character.
Corresponds to the JSON property containsNonAlphanumericCharacter
2084 2085 2086 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2084 def contains_non_alphanumeric_character @contains_non_alphanumeric_character end |
#contains_numeric_character ⇒ Boolean Also known as: contains_numeric_character?
The password must contain a number.
Corresponds to the JSON property containsNumericCharacter
2090 2091 2092 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2090 def contains_numeric_character @contains_numeric_character end |
#contains_uppercase_character ⇒ Boolean Also known as: contains_uppercase_character?
The password must contain an upper case character.
Corresponds to the JSON property containsUppercaseCharacter
2096 2097 2098 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2096 def contains_uppercase_character @contains_uppercase_character end |
#max_password_length ⇒ Fixnum
Maximum password length. No default max length
Corresponds to the JSON property maxPasswordLength
2102 2103 2104 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2102 def max_password_length @max_password_length end |
#min_password_length ⇒ Fixnum
Minimum password length. Range from 6 to 30
Corresponds to the JSON property minPasswordLength
2107 2108 2109 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2107 def min_password_length @min_password_length end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2114 2115 2116 2117 2118 2119 2120 2121 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2114 def update!(**args) @contains_lowercase_character = args[:contains_lowercase_character] if args.key?(:contains_lowercase_character) @contains_non_alphanumeric_character = args[:contains_non_alphanumeric_character] if args.key?(:contains_non_alphanumeric_character) @contains_numeric_character = args[:contains_numeric_character] if args.key?(:contains_numeric_character) @contains_uppercase_character = args[:contains_uppercase_character] if args.key?(:contains_uppercase_character) @max_password_length = args[:max_password_length] if args.key?(:max_password_length) @min_password_length = args[:min_password_length] if args.key?(:min_password_length) end |