public class PasswordParameters
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PasswordParameters.PasswordParametersBuilder
A builder that provides a fluent API for constructing
PasswordParameters.PasswordParametersBuilder s. |
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 . |
java.lang.Boolean |
getExcludeLower()
Get the value of the exclude lower case characters parameter.
|
java.lang.Boolean |
getExcludeNumber()
Get the value of the exclude numeric characters parameter.
|
java.lang.Boolean |
getExcludeUpper()
Get the value of the exclude upper case characters parameter.
|
java.lang.Boolean |
getIncludeSpecial()
Get the value of the include non-alphanumeric characters parameter.
|
java.lang.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 java.lang.Integer getLength()
public java.lang.Boolean getExcludeUpper()
public java.lang.Boolean getExcludeLower()
public java.lang.Boolean getExcludeNumber()
public java.lang.Boolean getIncludeSpecial()
public static PasswordParameters.PasswordParametersBuilder builder()
PasswordParameters
.