public class AuthorizationErrors extends BaseCategory
Constructor and Description |
---|
AuthorizationErrors() |
Modifier and Type | Method and Description |
---|---|
BadPasswordBuilder |
badPassword()
Logged when a user inputs a wrong password.
|
InvalidLicenseBuilder |
invalidLicense()
Logged when the user has an invalid license.
|
MissingUserPrivilegeBuilder |
missingUserPrivilege()
Logged when a user tries to perform an action without having the necessary rights.
|
getCategoryName
@Error(userMessage="The user %{userName} has inputted an incorrect password.", technicalMessage="The authorization of the user %{userName} failed due to an incorrect password.", solution="Enter the correct password.", severity=FATAL) public BadPasswordBuilder badPassword()
@Error(userMessage="The user %{userName} has an invalid license and is therefore unable to log in.", technicalMessage="The user %{userName} has an invalid license. The hash of the user license: %{licenseHash}.", solution="Upgrade the user license if the user has a right to have it.", severity=FATAL) public InvalidLicenseBuilder invalidLicense()
@Error(userMessage="The user %{userName} has attempted to %{action} but lacks user privileges to do so.", technicalMessage="The user %{userName} has attempted to %{action} but that user has a role %{userRole} which does not allow to perform this action. The user must be a %{requiredRole} to be able to do this.", solution="Change role settings for %{userName} or don\'t if this is the desired outcome.", severity=ERROR) public MissingUserPrivilegeBuilder missingUserPrivilege()
Copyright © 2020. All rights reserved.