public static class PasswordPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PasswordPolicy |
build() |
PasswordPolicy.Builder |
copy(PasswordPolicy model) |
PasswordPolicy.Builder |
isLowercaseCharactersRequired(Boolean isLowercaseCharactersRequired)
At least one lower case character required.
|
PasswordPolicy.Builder |
isNumericCharactersRequired(Boolean isNumericCharactersRequired)
At least one numeric character required.
|
PasswordPolicy.Builder |
isSpecialCharactersRequired(Boolean isSpecialCharactersRequired)
At least one special character required.
|
PasswordPolicy.Builder |
isUppercaseCharactersRequired(Boolean isUppercaseCharactersRequired)
At least one uppercase character required.
|
PasswordPolicy.Builder |
isUsernameContainmentAllowed(Boolean isUsernameContainmentAllowed)
User name is allowed to be part of the password.
|
PasswordPolicy.Builder |
minimumPasswordLength(Integer minimumPasswordLength)
Minimum password length required.
|
public PasswordPolicy.Builder minimumPasswordLength(Integer minimumPasswordLength)
Minimum password length required.
minimumPasswordLength
- the value to setpublic PasswordPolicy.Builder isUppercaseCharactersRequired(Boolean isUppercaseCharactersRequired)
At least one uppercase character required.
isUppercaseCharactersRequired
- the value to setpublic PasswordPolicy.Builder isLowercaseCharactersRequired(Boolean isLowercaseCharactersRequired)
At least one lower case character required.
isLowercaseCharactersRequired
- the value to setpublic PasswordPolicy.Builder isNumericCharactersRequired(Boolean isNumericCharactersRequired)
At least one numeric character required.
isNumericCharactersRequired
- the value to setpublic PasswordPolicy.Builder isSpecialCharactersRequired(Boolean isSpecialCharactersRequired)
At least one special character required.
isSpecialCharactersRequired
- the value to setpublic PasswordPolicy.Builder isUsernameContainmentAllowed(Boolean isUsernameContainmentAllowed)
User name is allowed to be part of the password.
isUsernameContainmentAllowed
- the value to setpublic PasswordPolicy build()
public PasswordPolicy.Builder copy(PasswordPolicy model)
Copyright © 2016–2024. All rights reserved.