public final class RejectedAccessException extends SecurityException
| Constructor and Description |
|---|
RejectedAccessException(String message)
Rejects access to something which the current
StaticWhitelist format could not describe. |
RejectedAccessException(String type,
String details)
Rejects access to a well-described script element.
|
RejectedAccessException(String type,
String details,
String info)
Rejects access to a well-described script element.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSignature()
Gets the signature of the member to which access was rejected.
|
boolean |
isDangerous()
True if
getSignature() is non-null but it would be a bad idea for an administrator to approve it. |
void |
setDangerous(boolean dangerous)
You may set this flag if you think it would be a security risk for this signature to be approved.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RejectedAccessException(String type, String details)
StaticWhitelist.rejectMethod(java.lang.reflect.Method) or similar.type - e.g. fielddetails - e.g. some.Class fieldNamepublic RejectedAccessException(String type, String details, String info)
StaticWhitelist.rejectMethod(java.lang.reflect.Method) or similar.type - e.g. fielddetails - e.g. some.Class fieldNameinfo - some additional information if appropriatepublic RejectedAccessException(String message)
StaticWhitelist format could not describe.message - a descriptive message in no particular format@CheckForNull public String getSignature()
StaticWhitelist, or null in case something was rejected for which a known exemption is not availablepublic boolean isDangerous()
getSignature() is non-null but it would be a bad idea for an administrator to approve it.public void setDangerous(boolean dangerous)
IllegalArgumentException - in case you tried to set this to true when using the nonspecific RejectedAccessException(String) constructorCopyright © 2016. All rights reserved.