|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.directory.InternalDirectoryUtilsImpl
public class InternalDirectoryUtilsImpl
| Constructor Summary | |
|---|---|
InternalDirectoryUtilsImpl()
|
|
| Method Summary | |
|---|---|
void |
validateCredential(User user,
PasswordCredential credential,
Set<PasswordConstraint> passwordConstraints,
String passwordComplexityMessage)
Validates a password credential for a given user against the given set of constraints. |
void |
validateDirectoryForEntity(DirectoryEntity entity,
Long directoryId)
Validates that the directory entity has the same directory ID as directoryId. |
void |
validateGroupName(Group group,
String groupName)
Validates group name. |
void |
validateUsername(String username)
Validates a username. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InternalDirectoryUtilsImpl()
| Method Detail |
|---|
public void validateDirectoryForEntity(DirectoryEntity entity,
Long directoryId)
InternalDirectoryUtils
validateDirectoryForEntity in interface InternalDirectoryUtilsentity - DirectoryEntitydirectoryId - directory ID to matchpublic void validateUsername(String username)
InternalDirectoryUtils
validateUsername in interface InternalDirectoryUtilsusername - username to validate
public void validateCredential(User user,
PasswordCredential credential,
Set<PasswordConstraint> passwordConstraints,
@Nullable
String passwordComplexityMessage)
throws InvalidCredentialException
InternalDirectoryUtils
validateCredential in interface InternalDirectoryUtilsuser - the User to validate the credential forcredential - Password credential. If encrypted the credential is considered valid.passwordConstraints - The type of validation to perform. Will contain a regex, a password score, or both.passwordComplexityMessage - Password complexity message (optional). If null/blank, a default message is used.
InvalidCredentialException - If the credential failed validation.
public void validateGroupName(Group group,
String groupName)
InternalDirectoryUtils
validateGroupName in interface InternalDirectoryUtilsgroup - Group.groupName - Group name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||