public class AuthorizationCheckException extends AuthorizationException
Constructor and Description |
---|
AuthorizationCheckException(String msg,
Principal authorizationPrincipal,
Permission failedPermission)
Constructs a new
AuthorizationException instance with an initial message. |
AuthorizationCheckException(String msg,
Throwable cause,
Principal authorizationPrincipal,
Permission failedPermission)
Constructs a new
AuthorizationException instance with an initial message and cause. |
Modifier and Type | Method and Description |
---|---|
Permission |
getFailedPermission()
Get the permission that failed the authorization check.
|
getAuthorizationPrincipal
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AuthorizationCheckException(String msg, Principal authorizationPrincipal, Permission failedPermission)
AuthorizationException
instance with an initial message. No cause is specified.msg
- the messageauthorizationPrincipal
- the principal that failed the authorization checkfailedPermission
- the permission that failed the authorization checkpublic AuthorizationCheckException(String msg, Throwable cause, Principal authorizationPrincipal, Permission failedPermission)
AuthorizationException
instance with an initial message and cause.msg
- the messagecause
- the causeauthorizationPrincipal
- the principal that failed the authorization checkfailedPermission
- the permission that failed the authorization checkpublic Permission getFailedPermission()
Copyright © 2021 JBoss by Red Hat. All rights reserved.