Class PasswordParameters.PasswordParametersBuilder
java.lang.Object
org.springframework.credhub.support.password.PasswordParameters.PasswordParametersBuilder
- Enclosing class:
- PasswordParameters
A builder that provides a fluent API for constructing
PasswordParameters.PasswordParametersBuilder
s.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create aPasswordParameters
from the provided values.excludeLower
(boolean exclude) Set the value of the exclude lower case characters parameter.excludeNumber
(boolean exclude) Set the value of the exclude numeric characters parameter.excludeUpper
(boolean exclude) Set the value of the exclude upper case characters parameter.includeSpecial
(boolean include) Set the value of the include special characters parameter.length
(int length) Set the value of the password length parameter.
-
Constructor Details
-
PasswordParametersBuilder
public PasswordParametersBuilder()
-
-
Method Details
-
length
Set the value of the password length parameter.- Parameters:
length
- the parameter value- Returns:
- the builder
-
excludeUpper
Set the value of the exclude upper case characters parameter.- Parameters:
exclude
- true to exclude upper case alpha characters from generated credential value- Returns:
- the builder
-
excludeLower
Set the value of the exclude lower case characters parameter.- Parameters:
exclude
- true to exclude lower case alpha characters from generated credential value- Returns:
- the builder
-
excludeNumber
Set the value of the exclude numeric characters parameter.- Parameters:
exclude
- true to exclude numeric characters from generated credential value- Returns:
- the builder
-
includeSpecial
Set the value of the include special characters parameter.- Parameters:
include
- true to include non-alphanumeric characters in generated credential value- Returns:
- the builder
-
build
Create aPasswordParameters
from the provided values.- Returns:
- the created
PasswordParameters
-