Class ScriptedTrustedNamesFunction
- java.lang.Object
-
- net.shibboleth.utilities.java.support.scripting.AbstractScriptEvaluator
-
- org.opensaml.saml.metadata.resolver.filter.impl.ScriptedTrustedNamesFunction
-
-
Field Summary
-
Fields inherited from class net.shibboleth.utilities.java.support.scripting.AbstractScriptEvaluator
DEFAULT_ENGINE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedScriptedTrustedNamesFunction(EvaluableScript theScript)Constructor.protectedScriptedTrustedNamesFunction(EvaluableScript theScript, String extraInfo)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>apply(XMLObject context)ObjectgetCustomObject()(package private) static ScriptedTrustedNamesFunctioninlineScript(String scriptSource)Factory to createScriptedTrustedNamesFunctionforSignatureValidationFilters from inline data.(package private) static ScriptedTrustedNamesFunctioninlineScript(String engineName, String scriptSource)Factory to createScriptedTrustedNamesFunctionforSignatureValidationFilters from inline data.protected voidprepareContext(ScriptContext scriptContext, Object... input)(package private) static ScriptedTrustedNamesFunctionresourceScript(String engineName, Resource resource)(package private) static ScriptedTrustedNamesFunctionresourceScript(Resource resource)Factory to createScriptedTrustedNamesFunctionfrom aResource.-
Methods inherited from class net.shibboleth.utilities.java.support.scripting.AbstractScriptEvaluator
evaluate, finalizeContext, getHideExceptions, getLogPrefix, getOutputType, getReturnOnError, setCustomObject, setHideExceptions, setLogPrefix, setOutputType, setReturnOnError
-
-
-
-
Constructor Detail
-
ScriptedTrustedNamesFunction
protected ScriptedTrustedNamesFunction(@Nonnull EvaluableScript theScript, @Nullable String extraInfo)Constructor.- Parameters:
theScript- the script we will evaluate.extraInfo- debugging information.
-
ScriptedTrustedNamesFunction
protected ScriptedTrustedNamesFunction(@Nonnull EvaluableScript theScript)Constructor.- Parameters:
theScript- the script we will evaluate.
-
-
Method Detail
-
getCustomObject
@Nullable public Object getCustomObject()
- Overrides:
getCustomObjectin classAbstractScriptEvaluator
-
prepareContext
protected void prepareContext(@Nonnull ScriptContext scriptContext, @Nullable Object... input)- Specified by:
prepareContextin classAbstractScriptEvaluator
-
resourceScript
@Nonnull static ScriptedTrustedNamesFunction resourceScript(@Nonnull @NotEmpty String engineName, @Nonnull Resource resource) throws ScriptException, IOException
- Parameters:
engineName- the languageresource- the resource to look at- Returns:
- the function
- Throws:
ScriptException- if the compile failsIOException- if the file doesn't exist.
-
resourceScript
@Nonnull static ScriptedTrustedNamesFunction resourceScript(@Nonnull Resource resource) throws ScriptException, IOException
Factory to createScriptedTrustedNamesFunctionfrom aResource.- Parameters:
resource- the resource to look at- Returns:
- the function
- Throws:
ScriptException- if the compile failsIOException- if the file doesn't exist.
-
inlineScript
@Nonnull static ScriptedTrustedNamesFunction inlineScript(@Nonnull @NotEmpty String engineName, @Nonnull @NotEmpty String scriptSource) throws ScriptException
Factory to createScriptedTrustedNamesFunctionforSignatureValidationFilters from inline data.- Parameters:
scriptSource- the script, as a stringengineName- the language- Returns:
- the function
- Throws:
ScriptException- if the compile fails
-
inlineScript
@Nonnull static ScriptedTrustedNamesFunction inlineScript(@Nonnull @NotEmpty String scriptSource) throws ScriptException
Factory to createScriptedTrustedNamesFunctionforSignatureValidationFilters from inline data.- Parameters:
scriptSource- the script, as a string- Returns:
- the function
- Throws:
ScriptException- if the compile fails
-
-