public abstract class AuthorizationException extends SecurityException
Modifier | Constructor and Description |
---|---|
protected |
AuthorizationException(String msg,
Principal authorizationPrincipal)
Constructs a new
AuthorizationException instance with an initial message. |
protected |
AuthorizationException(String msg,
Throwable cause,
Principal authorizationPrincipal)
Constructs a new
AuthorizationException instance with an initial message and cause. |
Modifier and Type | Method and Description |
---|---|
Principal |
getAuthorizationPrincipal()
Get the principal being authorized.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected AuthorizationException(String msg, Principal authorizationPrincipal)
AuthorizationException
instance with an initial message. No cause is specified.msg
- the messageauthorizationPrincipal
- the principal being authorizedprotected AuthorizationException(String msg, Throwable cause, Principal authorizationPrincipal)
AuthorizationException
instance with an initial message and cause.msg
- the messagecause
- the causeauthorizationPrincipal
- the principal being authorizedpublic Principal getAuthorizationPrincipal()
Copyright © 2020 JBoss by Red Hat. All rights reserved.