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
-
-
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
-
-
-
-
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
-
-