public interface ISystemPasswordComplexityPolicy
Modifier and Type | Interface and Description |
---|---|
static class |
ISystemPasswordComplexityPolicy.InvalidPasswordException
Exception class used to indicate password complexity violations.
|
Modifier and Type | Method and Description |
---|---|
void |
checkPasswordForExistingUser(IDirPrincipal user,
String candidatePassword)
Check the candidate password to make sure the value satisfies the complexity
requirements.
|
void |
checkPasswordForNewUser(String candidatePassword)
Check the candidate password to make sure the value satisfies the complexity
requirements.
|
long |
getPasswordExpirationDuration(IDirPrincipal user)
Return how long a password is valid (in milliseconds) before it expires.
|
String |
getPasswordPatternText()
Returns a description of the expected pattern a password must have.
|
void checkPasswordForNewUser(String candidatePassword) throws ISystemPasswordComplexityPolicy.InvalidPasswordException
ISystemPasswordComplexityPolicy.InvalidPasswordException
with the reason. If no exception is thrown
the password is valid.candidatePassword
- the password to checkISystemPasswordComplexityPolicy.InvalidPasswordException
- if the password is not validvoid checkPasswordForExistingUser(IDirPrincipal user, String candidatePassword) throws ISystemPasswordComplexityPolicy.InvalidPasswordException
ISystemPasswordComplexityPolicy.InvalidPasswordException
with the reason. If no exception is thrown
the password is valid.user
- the user whose password is being checked.candidatePassword
- the password to checkISystemPasswordComplexityPolicy.InvalidPasswordException
- if the password is not validlong getPasswordExpirationDuration(IDirPrincipal user)
user
- the user to get the expiration value for.String getPasswordPatternText()