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
public class AuthorizationCheckException extends AuthorizationException
An exception indicating that an identity authorization check has failed.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Permission
failedPermission
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description AuthorizationCheckException(String msg, Throwable cause, Principal authorizationPrincipal, Permission failedPermission)
Constructs a newAuthorizationException
instance with an initial message and cause.AuthorizationCheckException(String msg, Principal authorizationPrincipal, Permission failedPermission)
Constructs a newAuthorizationException
instance with an initial message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Permission
getFailedPermission()
Get the permission that failed the authorization check.-
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
-
failedPermission
private final Permission failedPermission
-
-
Constructor Detail
-
AuthorizationCheckException
public AuthorizationCheckException(String msg, Principal authorizationPrincipal, Permission failedPermission)
Constructs a newAuthorizationException
instance 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 newAuthorizationException
instance 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 Detail
-
getFailedPermission
public Permission getFailedPermission()
Get the permission that failed the authorization check.- Returns:
- the permission that failed the authorization check
-
-