Class ScriptedTrustedNamesFunction
java.lang.Object
net.shibboleth.shared.scripting.AbstractScriptEvaluator
org.opensaml.saml.metadata.resolver.filter.impl.ScriptedTrustedNamesFunction
public class ScriptedTrustedNamesFunction
extends AbstractScriptEvaluator
implements Function<XMLObject,Set<String>>
A scripted
Function which can be injected into
SignatureValidationFilter.setDynamicTrustedNamesStrategy(Function).-
Field Summary
Fields inherited from class net.shibboleth.shared.scripting.AbstractScriptEvaluator
DEFAULT_ENGINE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScriptedTrustedNamesFunction(EvaluableScript theScript) Constructor.protectedScriptedTrustedNamesFunction(EvaluableScript theScript, String extraInfo) Constructor. -
Method Summary
Modifier and TypeMethodDescription(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.shared.scripting.AbstractScriptEvaluator
evaluate, finalizeContext, getHideExceptions, getLogPrefix, getOutputType, getReturnOnError, setContextExtenders, setCustomObject, setHideExceptions, setLogPrefix, setOutputType, setReturnOnError
-
Constructor Details
-
Method Details
-
getCustomObject
- Overrides:
getCustomObjectin classAbstractScriptEvaluator
-
apply
-
prepareContext
- Specified by:
prepareContextin classAbstractScriptEvaluator
-
inlineScript
@Nonnull static ScriptedTrustedNamesFunction inlineScript(@Nonnull @NotEmpty @ParameterName(name="engineName") String engineName, @Nonnull @NotEmpty @ParameterName(name="scriptSource") String scriptSource) throws ScriptException, ComponentInitializationException Factory to createScriptedTrustedNamesFunctionforSignatureValidationFilters from inline data.- Parameters:
scriptSource- the script, as a stringengineName- the language- Returns:
- the function
- Throws:
ScriptException- if the compile failsComponentInitializationException- if the scripting initialization fails
-
inlineScript
@Nonnull static ScriptedTrustedNamesFunction inlineScript(@Nonnull @NotEmpty @ParameterName(name="scriptSource") String scriptSource) throws ScriptException, ComponentInitializationException Factory to createScriptedTrustedNamesFunctionforSignatureValidationFilters from inline data.- Parameters:
scriptSource- the script, as a string- Returns:
- the function
- Throws:
ScriptException- if the compile failsComponentInitializationException- if the scripting initialization fails
-