public static final class LocalAccountsTypes.Config.Builder
extends java.lang.Object
LocalAccountsTypes.Config
.Constructor and Description |
---|
LocalAccountsTypes.Config.Builder(char[] password,
java.util.List<java.lang.String> roles)
Constructor with parameters for the required properties of
LocalAccountsTypes.Config . |
Modifier and Type | Method and Description |
---|---|
LocalAccountsTypes.Config |
build() |
LocalAccountsTypes.Config.Builder |
setDaysAfterPasswordExpiration(java.lang.Long daysAfterPasswordExpiration)
Number of days after password expiration before the account will be locked.
|
LocalAccountsTypes.Config.Builder |
setEmail(java.lang.String email)
Email address of the local account.
|
LocalAccountsTypes.Config.Builder |
setEnabled(java.lang.Boolean enabled)
Flag indicating if the account is enabled.
|
LocalAccountsTypes.Config.Builder |
setFullName(java.lang.String fullName)
Full name of the user.
|
LocalAccountsTypes.Config.Builder |
setInactiveAfterPasswordExpiration(java.lang.Boolean inactiveAfterPasswordExpiration)
Flag indicating if the account will be locked after password expiration.
|
LocalAccountsTypes.Config.Builder |
setMaxDaysBetweenPasswordChange(java.lang.Long maxDaysBetweenPasswordChange)
Maximum number of days between password change.
|
LocalAccountsTypes.Config.Builder |
setMinDaysBetweenPasswordChange(java.lang.Long minDaysBetweenPasswordChange)
Minimum number of days between password change.
|
LocalAccountsTypes.Config.Builder |
setOldPassword(char[] oldPassword)
Old password of the user (required in case of the password change, not required
if superAdmin user changes the password of the other user).
|
LocalAccountsTypes.Config.Builder |
setPasswordExpires(java.lang.Boolean passwordExpires)
Flag indicating if the account password expires.
|
LocalAccountsTypes.Config.Builder |
setPasswordExpiresAt(java.util.Calendar passwordExpiresAt)
Date when the account's password will expire.
|
LocalAccountsTypes.Config.Builder |
setWarnDaysBeforePasswordExpiration(java.lang.Long warnDaysBeforePasswordExpiration)
Number of days of warning before password expires.
|
public LocalAccountsTypes.Config.Builder(char[] password, java.util.List<java.lang.String> roles)
LocalAccountsTypes.Config
.public LocalAccountsTypes.Config.Builder setOldPassword(char[] oldPassword)
null
, user may not have password set.oldPassword
- New value for the property.public LocalAccountsTypes.Config.Builder setFullName(java.lang.String fullName)
null
, user will have no fullname.fullName
- New value for the property.public LocalAccountsTypes.Config.Builder setEmail(java.lang.String email)
null
, user will have no email.email
- New value for the property.public LocalAccountsTypes.Config.Builder setEnabled(java.lang.Boolean enabled)
null
, defaults to Trueenabled
- New value for the property.public LocalAccountsTypes.Config.Builder setPasswordExpires(java.lang.Boolean passwordExpires)
null
, defaults to True.passwordExpires
- New value for the property.public LocalAccountsTypes.Config.Builder setPasswordExpiresAt(java.util.Calendar passwordExpiresAt)
null
, will be taken from system defaults (see local-accounts/policy).passwordExpiresAt
- New value for the property.public LocalAccountsTypes.Config.Builder setInactiveAfterPasswordExpiration(java.lang.Boolean inactiveAfterPasswordExpiration)
null
, defaults to True.inactiveAfterPasswordExpiration
- New value for the property.public LocalAccountsTypes.Config.Builder setDaysAfterPasswordExpiration(java.lang.Long daysAfterPasswordExpiration)
null
, will be taken from system defaults (see local-accounts/policy).daysAfterPasswordExpiration
- New value for the property.public LocalAccountsTypes.Config.Builder setMinDaysBetweenPasswordChange(java.lang.Long minDaysBetweenPasswordChange)
null
, will be taken from system defaults (see local-accounts/policy).minDaysBetweenPasswordChange
- New value for the property.public LocalAccountsTypes.Config.Builder setMaxDaysBetweenPasswordChange(java.lang.Long maxDaysBetweenPasswordChange)
null
, will be taken from system defaults (see local-accounts/policy).maxDaysBetweenPasswordChange
- New value for the property.public LocalAccountsTypes.Config.Builder setWarnDaysBeforePasswordExpiration(java.lang.Long warnDaysBeforePasswordExpiration)
null
, will be taken from system defaults (see local-accounts/policy).warnDaysBeforePasswordExpiration
- New value for the property.public LocalAccountsTypes.Config build()