Package app.kntrl.client.openapi.model
Class PasswordStrengthRequirements
- java.lang.Object
-
- app.kntrl.client.openapi.model.PasswordStrengthRequirements
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class PasswordStrengthRequirements extends java.lang.ObjectRequirements for password
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPasswordStrengthRequirements.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>openapiFieldsstatic java.util.HashSet<java.lang.String>openapiRequiredFieldsstatic java.lang.StringSERIALIZED_NAME_FORBID_COMMON_PASSWORDSstatic java.lang.StringSERIALIZED_NAME_FORBID_LOGIN_AS_PASSWORDstatic java.lang.StringSERIALIZED_NAME_MIN_LENGTHstatic java.lang.StringSERIALIZED_NAME_REQUIRE_NUMBERstatic java.lang.StringSERIALIZED_NAME_REQUIRE_SYMBOLstatic java.lang.StringSERIALIZED_NAME_REQUIRE_UPPER_CASE
-
Constructor Summary
Constructors Constructor Description PasswordStrengthRequirements()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)PasswordStrengthRequirementsforbidCommonPasswords(java.lang.Boolean forbidCommonPasswords)PasswordStrengthRequirementsforbidLoginAsPassword(java.lang.Boolean forbidLoginAsPassword)static PasswordStrengthRequirementsfromJson(java.lang.String jsonString)Create an instance of PasswordStrengthRequirements given an JSON stringjava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) property.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.lang.BooleangetForbidCommonPasswords()Password will be checked against table 1,000,000 of most overused passwords.java.lang.BooleangetForbidLoginAsPassword()Rejects passwords that match username, email, anything that used as a login according to logins config.java.lang.IntegergetMinLength()Minimal length of passwordjava.lang.BooleangetRequireNumber()Require password to contain at least one digit.java.lang.BooleangetRequireSymbol()Require password to contain at least one symbol e.g.java.lang.BooleangetRequireUpperCase()This requires password to contain both lowercase and uppercase letters.inthashCode()PasswordStrengthRequirementsminLength(java.lang.Integer minLength)PasswordStrengthRequirementsputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.PasswordStrengthRequirementsrequireNumber(java.lang.Boolean requireNumber)PasswordStrengthRequirementsrequireSymbol(java.lang.Boolean requireSymbol)PasswordStrengthRequirementsrequireUpperCase(java.lang.Boolean requireUpperCase)voidsetForbidCommonPasswords(java.lang.Boolean forbidCommonPasswords)voidsetForbidLoginAsPassword(java.lang.Boolean forbidLoginAsPassword)voidsetMinLength(java.lang.Integer minLength)voidsetRequireNumber(java.lang.Boolean requireNumber)voidsetRequireSymbol(java.lang.Boolean requireSymbol)voidsetRequireUpperCase(java.lang.Boolean requireUpperCase)java.lang.StringtoJson()Convert an instance of PasswordStrengthRequirements to an JSON stringjava.lang.StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_MIN_LENGTH
public static final java.lang.String SERIALIZED_NAME_MIN_LENGTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUIRE_NUMBER
public static final java.lang.String SERIALIZED_NAME_REQUIRE_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUIRE_SYMBOL
public static final java.lang.String SERIALIZED_NAME_REQUIRE_SYMBOL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUIRE_UPPER_CASE
public static final java.lang.String SERIALIZED_NAME_REQUIRE_UPPER_CASE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FORBID_COMMON_PASSWORDS
public static final java.lang.String SERIALIZED_NAME_FORBID_COMMON_PASSWORDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FORBID_LOGIN_AS_PASSWORD
public static final java.lang.String SERIALIZED_NAME_FORBID_LOGIN_AS_PASSWORD
- See Also:
- Constant Field Values
-
openapiFields
public static java.util.HashSet<java.lang.String> openapiFields
-
openapiRequiredFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
-
-
Method Detail
-
minLength
public PasswordStrengthRequirements minLength(java.lang.Integer minLength)
-
getMinLength
@Nullable public java.lang.Integer getMinLength()
Minimal length of password- Returns:
- minLength
-
setMinLength
public void setMinLength(java.lang.Integer minLength)
-
requireNumber
public PasswordStrengthRequirements requireNumber(java.lang.Boolean requireNumber)
-
getRequireNumber
@Nullable public java.lang.Boolean getRequireNumber()
Require password to contain at least one digit.- Returns:
- requireNumber
-
setRequireNumber
public void setRequireNumber(java.lang.Boolean requireNumber)
-
requireSymbol
public PasswordStrengthRequirements requireSymbol(java.lang.Boolean requireSymbol)
-
getRequireSymbol
@Nullable public java.lang.Boolean getRequireSymbol()
Require password to contain at least one symbol e.g. @, !, &...- Returns:
- requireSymbol
-
setRequireSymbol
public void setRequireSymbol(java.lang.Boolean requireSymbol)
-
requireUpperCase
public PasswordStrengthRequirements requireUpperCase(java.lang.Boolean requireUpperCase)
-
getRequireUpperCase
@Nullable public java.lang.Boolean getRequireUpperCase()
This requires password to contain both lowercase and uppercase letters.- Returns:
- requireUpperCase
-
setRequireUpperCase
public void setRequireUpperCase(java.lang.Boolean requireUpperCase)
-
forbidCommonPasswords
public PasswordStrengthRequirements forbidCommonPasswords(java.lang.Boolean forbidCommonPasswords)
-
getForbidCommonPasswords
@Nullable public java.lang.Boolean getForbidCommonPasswords()
Password will be checked against table 1,000,000 of most overused passwords.- Returns:
- forbidCommonPasswords
-
setForbidCommonPasswords
public void setForbidCommonPasswords(java.lang.Boolean forbidCommonPasswords)
-
forbidLoginAsPassword
public PasswordStrengthRequirements forbidLoginAsPassword(java.lang.Boolean forbidLoginAsPassword)
-
getForbidLoginAsPassword
@Nullable public java.lang.Boolean getForbidLoginAsPassword()
Rejects passwords that match username, email, anything that used as a login according to logins config.- Returns:
- forbidLoginAsPassword
-
setForbidLoginAsPassword
public void setForbidLoginAsPassword(java.lang.Boolean forbidLoginAsPassword)
-
putAdditionalProperty
public PasswordStrengthRequirements putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
java.io.IOException- if the JSON Object is invalid with respect to PasswordStrengthRequirements
-
fromJson
public static PasswordStrengthRequirements fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of PasswordStrengthRequirements given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PasswordStrengthRequirements
- Throws:
java.io.IOException- if the JSON string is invalid with respect to PasswordStrengthRequirements
-
toJson
public java.lang.String toJson()
Convert an instance of PasswordStrengthRequirements to an JSON string- Returns:
- JSON string
-
-