Package org.wildfly.security.authz
Class AuthorizationFailureException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.SecurityException
-
- org.wildfly.security.authz.AuthorizationException
-
- org.wildfly.security.authz.AuthorizationFailureException
-
- All Implemented Interfaces:
Serializable
public class AuthorizationFailureException extends AuthorizationException
An exception indicating that an authorization check failed for reasons not related to the actual authorization of the identity.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description AuthorizationFailureException(String msg, Throwable cause, Principal authorizationPrincipal)
Constructs a newAuthorizationFailureException
instance with an initial message and cause.AuthorizationFailureException(String msg, Principal authorizationPrincipal)
Constructs a newAuthorizationFailureException
instance with an initial message.
-
Method Summary
-
Methods inherited from class org.wildfly.security.authz.AuthorizationException
getAuthorizationPrincipal
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AuthorizationFailureException
public AuthorizationFailureException(String msg, Principal authorizationPrincipal)
Constructs a newAuthorizationFailureException
instance with an initial message. No cause is specified.- Parameters:
msg
- the messageauthorizationPrincipal
- the principal being authorized
-
AuthorizationFailureException
public AuthorizationFailureException(String msg, Throwable cause, Principal authorizationPrincipal)
Constructs a newAuthorizationFailureException
instance with an initial message and cause.- Parameters:
msg
- the messagecause
- the causeauthorizationPrincipal
- the principal being authorized
-
-