public static final class LocalAccountsPolicy.Builder
extends java.lang.Object
LocalAccountsPolicy
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
LocalAccountsPolicy . |
Modifier and Type | Method and Description |
---|---|
LocalAccountsPolicy |
build() |
LocalAccountsPolicy.Builder |
setMaxDays(java.lang.Long maxDays)
Maximum number of days a password may be used.
|
LocalAccountsPolicy.Builder |
setMinDays(java.lang.Long minDays)
Minimum number of days allowed between password changes.
|
LocalAccountsPolicy.Builder |
setWarnDays(java.lang.Long warnDays)
Number of days warning given before a password expires.
|
public Builder()
LocalAccountsPolicy
.public LocalAccountsPolicy.Builder setMaxDays(java.lang.Long maxDays)
null
then the restriction will be ignored.maxDays
- New value for the property.public LocalAccountsPolicy.Builder setMinDays(java.lang.Long minDays)
null
then the restriction will be ignored.minDays
- New value for the property.public LocalAccountsPolicy.Builder setWarnDays(java.lang.Long warnDays)
null
then no warning will be provided.warnDays
- New value for the property.public LocalAccountsPolicy build()