public class PasswordServiceDescriptor extends ServiceDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
PasswordServiceDescriptor.PasswordNotCompliantException |
static class |
PasswordServiceDescriptor.PasswordRepeatedException |
static class |
PasswordServiceDescriptor.UsernameNotCompliantException |
| Constructor and Description |
|---|
PasswordServiceDescriptor() |
PasswordServiceDescriptor(java.lang.Integer minPasswordLength,
java.lang.Long minPasswordAge,
java.lang.Long maxPasswordAge,
java.lang.Integer passwordExpirationNotificationDays,
java.lang.Integer equalPasswordsHistoryLength,
boolean uppercaseRequired,
boolean lowercaseRequired,
boolean numericRequired,
boolean nonAlphaNumericRequired,
boolean nonCompliantPasswordLoginDenied,
boolean firstTimeLoginResetPasswordRequired,
java.lang.String usernamePattern,
int version) |
PasswordServiceDescriptor(PasswordServiceDescriptor that) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertLengthValid(char[] password) |
void |
assertLowercaseIncluded(char[] password) |
void |
assertNonAlphaNumericIncluded(char[] password) |
void |
assertNotRepeated(char[] password,
Account account) |
void |
assertNumericIncluded(char[] password) |
void |
assertUppercaseIncluded(char[] password) |
void |
assertUsernameCompliant(java.lang.String username) |
Configuration |
copy() |
java.lang.Integer |
getEqualPasswordsHistoryLength()
Gets number of previous passwords that may not match new password.
|
java.lang.Long |
getMaxPasswordAge()
Gets maximum password age in days.
|
java.lang.Long |
getMinPasswordAge()
Gets minimum password age.
|
java.lang.Integer |
getMinPasswordLength()
Gets minimum password length in characters.
|
java.lang.Integer |
getPasswordExpirationNotificationDays()
Gets number of days before password expiration to send password change notification.
|
java.lang.String |
getUsernamePattern()
Gets a regular expression to enforce username requirements.
|
boolean |
isFirstTimeLoginResetPasswordRequired()
Gets whether users forced to reset password at first time that they logs in.
|
boolean |
isLowercaseRequired()
Gets whether lowercase letters are required in password.
|
boolean |
isNonAlphaNumericRequired()
Gets whether non-alpha-numeric characters are required in password.
|
boolean |
isNonCompliantPasswordLoginDenied()
Gets whether login is denied if user uses a non-compliant password.
|
boolean |
isNumericRequired()
Gets whether numeric values are required in password.
|
boolean |
isUppercaseRequired()
Gets whether uppercase letters are required in password.
|
void |
setEqualPasswordsHistoryLength(java.lang.Integer value)
Sets number of previous passwords that may not match new password.
|
void |
setFirstTimeLoginResetPasswordRequired(boolean value)
Sets whether users forced to reset password at first time that they logs in.
|
void |
setLowercaseRequired(boolean value)
Sets whether lowercase letters are required in password.
|
void |
setMaxPasswordAge(java.lang.Long value)
Sets maximum password age in days.
|
void |
setMinPasswordAge(java.lang.Long value)
Sets minimum password age.
|
void |
setMinPasswordLength(java.lang.Integer value)
Sets minimum password length in characters.
|
void |
setNonAlphaNumericRequired(boolean value)
Sets whether non-alpha-numeric characters are required in password.
|
void |
setNonCompliantPasswordLoginDenied(boolean value)
Sets whether login is denied if user uses a non-compliant password.
|
void |
setNumericRequired(boolean value)
Sets whether numeric values are required in password.
|
void |
setPasswordExpirationNotificationDays(java.lang.Integer value)
Sets number of days before password expiration to send password change notification.
|
void |
setUppercaseRequired(boolean value)
Sets whether uppercase letters are required in password.
|
void |
setUsernamePattern(java.lang.String value)
Sets a regular expression to enforce username requirements.
|
java.lang.String |
toString() |
getVersion, setVersionpublic PasswordServiceDescriptor(java.lang.Integer minPasswordLength,
java.lang.Long minPasswordAge,
java.lang.Long maxPasswordAge,
java.lang.Integer passwordExpirationNotificationDays,
java.lang.Integer equalPasswordsHistoryLength,
boolean uppercaseRequired,
boolean lowercaseRequired,
boolean numericRequired,
boolean nonAlphaNumericRequired,
boolean nonCompliantPasswordLoginDenied,
boolean firstTimeLoginResetPasswordRequired,
java.lang.String usernamePattern,
int version)
public PasswordServiceDescriptor(PasswordServiceDescriptor that)
public PasswordServiceDescriptor()
public java.lang.Integer getMinPasswordLength()
public void setMinPasswordLength(java.lang.Integer value)
value - minimum password lengthpublic java.lang.Long getMinPasswordAge()
public void setMinPasswordAge(java.lang.Long value)
value - maximum password agepublic java.lang.Long getMaxPasswordAge()
public void setMaxPasswordAge(java.lang.Long value)
value - maximum password agepublic java.lang.Integer getPasswordExpirationNotificationDays()
public void setPasswordExpirationNotificationDays(java.lang.Integer value)
value - number of dayspublic java.lang.Integer getEqualPasswordsHistoryLength()
public void setEqualPasswordsHistoryLength(java.lang.Integer value)
value - number of previous passwordspublic boolean isUppercaseRequired()
true if uppercase letters are requiredpublic void setUppercaseRequired(boolean value)
value - if true uppercase letters are required; false otherwisepublic boolean isLowercaseRequired()
true if lowercase letters are requiredpublic void setLowercaseRequired(boolean value)
value - if true lowercase letters are required; false otherwisepublic boolean isNumericRequired()
true if numeric values are requiredpublic void setNumericRequired(boolean value)
value - if true numeric values are required; false otherwisepublic boolean isNonAlphaNumericRequired()
true if non-alpha-numeric characters are requiredpublic void setNonAlphaNumericRequired(boolean value)
value - if true non-alpha-numeric characters are required; false otherwisepublic boolean isNonCompliantPasswordLoginDenied()
true if login is deniedpublic void setNonCompliantPasswordLoginDenied(boolean value)
value - if true login is denied; false otherwisepublic boolean isFirstTimeLoginResetPasswordRequired()
true force to reset passwordpublic void setFirstTimeLoginResetPasswordRequired(boolean value)
value - if true force to reset password; false otherwisepublic java.lang.String getUsernamePattern()
public void setUsernamePattern(java.lang.String value)
value - regular expressionpublic void assertLengthValid(char[] password)
throws PasswordServiceDescriptor.PasswordNotCompliantException
public void assertUppercaseIncluded(char[] password)
throws PasswordServiceDescriptor.PasswordNotCompliantException
public void assertLowercaseIncluded(char[] password)
throws PasswordServiceDescriptor.PasswordNotCompliantException
public void assertNumericIncluded(char[] password)
throws PasswordServiceDescriptor.PasswordNotCompliantException
public void assertNonAlphaNumericIncluded(char[] password)
throws PasswordServiceDescriptor.PasswordNotCompliantException
public void assertNotRepeated(char[] password,
Account account)
throws PasswordServiceDescriptor.PasswordRepeatedException
public void assertUsernameCompliant(java.lang.String username)
throws PasswordServiceDescriptor.UsernameNotCompliantException
public Configuration copy()
copy in class Configurationpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2023. Redwood Software Inc. All rights reserved.