public class RelaxedExternalResourceSecurity extends java.lang.Object implements ExternalResourceSecurity
ExternalResourceSecurity
allows any
external references.Constructor and Description |
---|
RelaxedExternalResourceSecurity(ParsedURL externalResourceURL,
ParsedURL docURL) |
Modifier and Type | Method and Description |
---|---|
void |
checkLoadExternalResource()
Controls whether the externalResource should be loaded or not.
|
public RelaxedExternalResourceSecurity(ParsedURL externalResourceURL, ParsedURL docURL)
externalResourceURL
- url for the externalResource, as defined in
the externalResource's xlink:href attribute. If that
attribute was empty, then this parameter should
be nulldocURL
- url for the document into which the
externalResource was found.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.