public class NoLoadExternalResourceSecurity extends java.lang.Object implements ExternalResourceSecurity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERROR_NO_EXTERNAL_RESOURCE_ALLOWED
Message when trying to load an external resource
|
protected java.lang.SecurityException |
se
The exception is built in the constructor and thrown if
not null and the checkLoadExternalResource method is called.
|
Constructor and Description |
---|
NoLoadExternalResourceSecurity() |
Modifier and Type | Method and Description |
---|---|
void |
checkLoadExternalResource()
Controls whether the external resource should be loaded or not.
|
public static final java.lang.String ERROR_NO_EXTERNAL_RESOURCE_ALLOWED
protected java.lang.SecurityException se
public void checkLoadExternalResource()
checkLoadExternalResource
in interface ExternalResourceSecurity
java.lang.SecurityException
- if the externalResource should not be loaded.Copyright © 2022 Apache Software Foundation. All Rights Reserved.