public class ScriptedTrustedNamesFunction extends AbstractScriptEvaluator implements com.google.common.base.Function<org.opensaml.core.xml.XMLObject,Set<String>>
Function which can be injected into
SignatureValidationFilter.setDynamicTrustedNamesStrategy(Function).DEFAULT_ENGINE| 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() |
(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. |
protected void |
prepareContext(ScriptContext scriptContext,
Object... input) |
(package private) static ScriptedTrustedNamesFunction |
resourceScript(Resource resource)
Factory to create
ScriptedTrustedNamesFunction from a Resource. |
(package private) static ScriptedTrustedNamesFunction |
resourceScript(String engineName,
Resource resource)
|
evaluate, finalizeContext, getHideExceptions, getLogPrefix, getOutputType, getReturnOnError, setCustomObject, setHideExceptions, setLogPrefix, setOutputType, setReturnOnErrorprotected 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()
getCustomObject in class AbstractScriptEvaluatorprotected void prepareContext(@Nonnull ScriptContext scriptContext, @Nullable Object... input)
prepareContext in class AbstractScriptEvaluator@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–2019 Shibboleth Consortium. All rights reserved.