|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.integration.authentication.PasswordHelper
public class PasswordHelper
Various password helper methods.
Constructor Summary | |
---|---|
PasswordHelper()
|
Method Summary | |
---|---|
boolean |
isUniquePassword(PasswordCredential newCredential,
RemotePrincipal principal)
Checks if the new credential has already been used by the the principal. |
void |
setI18nHelper(I18nHelper i18nHelper)
|
void |
validateRegex(java.lang.String regex,
PasswordCredential credential)
Validates the password meets the expected regex restriction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PasswordHelper()
Method Detail |
---|
public void validateRegex(java.lang.String regex, PasswordCredential credential) throws InvalidCredentialException
regex
- The regex pattern.credential
- The password to check.
InvalidCredentialException
- The password failed the regex check.public boolean isUniquePassword(PasswordCredential newCredential, RemotePrincipal principal)
newCredential
- The new credential.principal
- The principal.
public void setI18nHelper(I18nHelper i18nHelper)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |