public interface InternalDirectoryUtils
Modifier and Type | Method and Description |
---|---|
void |
validateCredential(User user,
PasswordCredential credential,
Set<PasswordConstraint> passwordConstraints,
String message)
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.
|
void validateDirectoryForEntity(DirectoryEntity entity, Long directoryId)
entity
- DirectoryEntitydirectoryId
- directory ID to matchIllegalArgumentException
- if the directory IDs do not matchvoid validateUsername(String username)
username
- username to validateIllegalArgumentException
- if the username is not validvoid validateCredential(User user, PasswordCredential credential, Set<PasswordConstraint> passwordConstraints, String message) throws InvalidCredentialException
user
- 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.message
- Password complexity message (optional). If null/blank, a default message is used.InvalidCredentialException
- If the credential failed validation.Copyright © 2021 Atlassian. All rights reserved.
View cookie preferences