public class PasswordParameters extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PasswordParameters.PasswordParametersBuilder
A builder that provides a fluent API for constructing
PasswordParameters.PasswordParametersBuilders. |
| Constructor and Description |
|---|
PasswordParameters()
Create a
PasswordParameters using defaults for all parameter values. |
PasswordParameters(int length,
boolean excludeUpper,
boolean excludeLower,
boolean excludeNumber,
boolean includeSpecial)
Create a
PasswordParameters using the specified values. |
| Modifier and Type | Method and Description |
|---|---|
static PasswordParameters.PasswordParametersBuilder |
builder()
Create a builder that provides a fluent API for providing the values required to
construct a
PasswordParameters. |
Boolean |
getExcludeLower()
Get the value of the exclude lower case characters parameter.
|
Boolean |
getExcludeNumber()
Get the value of the exclude numeric characters parameter.
|
Boolean |
getExcludeUpper()
Get the value of the exclude upper case characters parameter.
|
Boolean |
getIncludeSpecial()
Get the value of the include non-alphanumeric characters parameter.
|
Integer |
getLength()
Get the value of the length parameter.
|
public PasswordParameters()
PasswordParameters using defaults for all parameter values.public PasswordParameters(int length,
boolean excludeUpper,
boolean excludeLower,
boolean excludeNumber,
boolean includeSpecial)
PasswordParameters using the specified values.length - length of generated password valueexcludeUpper - true to exclude upper case alpha characters from
generated credential valueexcludeLower - true to exclude lower case alpha characters from
generated credential valueexcludeNumber - true to exclude numeric characters from generated
credential valueincludeSpecial - true to include non-alphanumeric characters in
generated credential valuepublic Integer getLength()
public Boolean getExcludeUpper()
public Boolean getExcludeLower()
public Boolean getExcludeNumber()
public Boolean getIncludeSpecial()
public static PasswordParameters.PasswordParametersBuilder builder()
PasswordParameters.