public static final class LocalAccounts.Builder
extends java.lang.Object
LocalAccounts
.Constructor and Description |
---|
Builder(boolean enabled,
boolean hasPassword)
Constructor with parameters for the required properties of
LocalAccounts . |
Modifier and Type | Method and Description |
---|---|
LocalAccounts |
build() |
LocalAccounts.Builder |
setEmail(java.lang.String email)
Email address of the local account
If
null , value will not be changed |
LocalAccounts.Builder |
setFullname(java.lang.String fullname)
Full name of the user
If
null , the value was never set. |
LocalAccounts.Builder |
setLastPasswordChange(java.util.Calendar lastPasswordChange)
Date and time password was changed.
|
LocalAccounts.Builder |
setMaxDaysBetweenPasswordChange(java.lang.Long maxDaysBetweenPasswordChange)
Maximum number of days between password change
If
null , password never expires. |
LocalAccounts.Builder |
setMinDaysBetweenPasswordChange(java.lang.Long minDaysBetweenPasswordChange)
Minimum number of days between password change
If
null , pasword can be changed any time. |
LocalAccounts.Builder |
setPassword(char[] password)
Password
If
null , value will not be changed |
LocalAccounts.Builder |
setPasswordExpiresAt(java.util.Calendar passwordExpiresAt)
Date when the account's password will expire
If
null , the password never expires. |
LocalAccounts.Builder |
setRoles(java.util.List<java.lang.String> roles)
User roles
|
LocalAccounts.Builder |
setWarnDaysBeforePasswordExpiration(java.lang.Long warnDaysBeforePasswordExpiration)
Number of days of warning before password expires
If
null , a user is never warned. |
public Builder(boolean enabled, boolean hasPassword)
LocalAccounts
.public LocalAccounts.Builder setFullname(java.lang.String fullname)
null
, the value was never set.fullname
- New value for the property.public LocalAccounts.Builder setRoles(java.util.List<java.lang.String> roles)
roles
- New value for the property.public LocalAccounts.Builder setLastPasswordChange(java.util.Calendar lastPasswordChange)
null
, the password was never set.lastPasswordChange
- New value for the property.public LocalAccounts.Builder setPasswordExpiresAt(java.util.Calendar passwordExpiresAt)
null
, the password never expires.passwordExpiresAt
- New value for the property.public LocalAccounts.Builder setMinDaysBetweenPasswordChange(java.lang.Long minDaysBetweenPasswordChange)
null
, pasword can be changed any time.minDaysBetweenPasswordChange
- New value for the property.public LocalAccounts.Builder setMaxDaysBetweenPasswordChange(java.lang.Long maxDaysBetweenPasswordChange)
null
, password never expires.maxDaysBetweenPasswordChange
- New value for the property.public LocalAccounts.Builder setWarnDaysBeforePasswordExpiration(java.lang.Long warnDaysBeforePasswordExpiration)
null
, a user is never warned.warnDaysBeforePasswordExpiration
- New value for the property.public LocalAccounts.Builder setPassword(char[] password)
null
, value will not be changedpassword
- New value for the property.public LocalAccounts.Builder setEmail(java.lang.String email)
null
, value will not be changedemail
- New value for the property.public LocalAccounts build()