Package org.wildfly.security.authz
Class AuthorizationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.SecurityException
org.wildfly.security.authz.AuthorizationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorizationCheckException,AuthorizationFailureException
A general authorization exception.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAuthorizationException(String msg, Throwable cause, Principal authorizationPrincipal) Constructs a newAuthorizationExceptioninstance with an initial message and cause.protectedAuthorizationException(String msg, Principal authorizationPrincipal) Constructs a newAuthorizationExceptioninstance with an initial message. -
Method Summary
Modifier and TypeMethodDescriptionGet the principal being authorized.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthorizationException
Constructs a newAuthorizationExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the messageauthorizationPrincipal- the principal being authorized
-
AuthorizationException
Constructs a newAuthorizationExceptioninstance with an initial message and cause.- Parameters:
msg- the messagecause- the causeauthorizationPrincipal- the principal being authorized
-
-
Method Details
-
getAuthorizationPrincipal
Get the principal being authorized.- Returns:
- the principal being authorized
-