Package org.wildfly.security.authz
Class AuthorizationCheckException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.SecurityException
org.wildfly.security.authz.AuthorizationException
org.wildfly.security.authz.AuthorizationCheckException
- All Implemented Interfaces:
Serializable
An exception indicating that an identity authorization check has failed.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationCheckException(String msg, Throwable cause, Principal authorizationPrincipal, Permission failedPermission) Constructs a newAuthorizationExceptioninstance with an initial message and cause.AuthorizationCheckException(String msg, Principal authorizationPrincipal, Permission failedPermission) Constructs a newAuthorizationExceptioninstance with an initial message. -
Method Summary
Modifier and TypeMethodDescriptionGet the permission that failed the authorization check.Methods inherited from class org.wildfly.security.authz.AuthorizationException
getAuthorizationPrincipalMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthorizationCheckException
public AuthorizationCheckException(String msg, Principal authorizationPrincipal, Permission failedPermission) Constructs a newAuthorizationExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the messageauthorizationPrincipal- the principal that failed the authorization checkfailedPermission- the permission that failed the authorization check
-
AuthorizationCheckException
public AuthorizationCheckException(String msg, Throwable cause, Principal authorizationPrincipal, Permission failedPermission) Constructs a newAuthorizationExceptioninstance with an initial message and cause.- Parameters:
msg- the messagecause- the causeauthorizationPrincipal- the principal that failed the authorization checkfailedPermission- the permission that failed the authorization check
-
-
Method Details
-
getFailedPermission
Get the permission that failed the authorization check.- Returns:
- the permission that failed the authorization check
-