| Modifier and Type | Field and Description |
|---|---|
private Object |
customObject
The custom object we can get inject into all scripts.
|
static String |
DEFAULT_ENGINE
The default language is JavaScript.
|
private org.slf4j.Logger |
log
Class logger.
|
private String |
logPrefix
Debugging info.
|
private EvaluableScript |
script
The script we care about.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ScriptedTrustedNamesFunction(EvaluableScript theScript)
Constructor.
|
protected |
ScriptedTrustedNamesFunction(EvaluableScript theScript,
String extraInfo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
apply(org.opensaml.core.xml.XMLObject context) |
Object |
getCustomObject()
Return the custom (externally provided) object.
|
(package private) static ScriptedTrustedNamesFunction |
inlineScript(String scriptSource)
Factory to create
ScriptedTrustedNamesFunction for SignatureValidationFilters from inline data. |
(package private) static ScriptedTrustedNamesFunction |
inlineScript(String engineName,
String scriptSource)
Factory to create
ScriptedTrustedNamesFunction for SignatureValidationFilters from inline data. |
(package private) static ScriptedTrustedNamesFunction |
resourceScript(Resource resource)
Factory to create
ScriptedTrustedNamesFunction from a Resource. |
(package private) static ScriptedTrustedNamesFunction |
resourceScript(String engineName,
Resource resource)
|
void |
setCustomObject(Object object)
Set the custom (externally provided) object.
|
@Nonnull @NotEmpty public static final String DEFAULT_ENGINE
@Nonnull private final org.slf4j.Logger log
@Nonnull private final EvaluableScript script
@Nullable private Object customObject
protected ScriptedTrustedNamesFunction(@Nonnull EvaluableScript theScript, @Nullable String extraInfo)
theScript - the script we will evaluate.extraInfo - debugging information.protected ScriptedTrustedNamesFunction(@Nonnull EvaluableScript theScript)
theScript - the script we will evaluate.@Nullable public Object getCustomObject()
@Nullable public void setCustomObject(Object object)
object - the custom object@Nonnull static ScriptedTrustedNamesFunction resourceScript(@Nonnull @NotEmpty String engineName, @Nonnull Resource resource) throws ScriptException, IOException
engineName - the languageresource - the resource to look atScriptException - if the compile failsIOException - if the file doesn't exist.@Nonnull static ScriptedTrustedNamesFunction resourceScript(@Nonnull Resource resource) throws ScriptException, IOException
ScriptedTrustedNamesFunction from a Resource.resource - the resource to look atScriptException - if the compile failsIOException - if the file doesn't exist.@Nonnull static ScriptedTrustedNamesFunction inlineScript(@Nonnull @NotEmpty String engineName, @Nonnull @NotEmpty String scriptSource) throws ScriptException
ScriptedTrustedNamesFunction for SignatureValidationFilters from inline data.scriptSource - the script, as a stringengineName - the languageScriptException - if the compile fails@Nonnull static ScriptedTrustedNamesFunction inlineScript(@Nonnull @NotEmpty String scriptSource) throws ScriptException
ScriptedTrustedNamesFunction for SignatureValidationFilters from inline data.scriptSource - the script, as a stringScriptException - if the compile failsCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.