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