Class ScriptedAttributeDefinition.AttributeDefinitionScriptEvaluator
java.lang.Object
net.shibboleth.utilities.java.support.scripting.AbstractScriptEvaluator
net.shibboleth.idp.attribute.resolver.ad.impl.ScriptedAttributeDefinition.AttributeDefinitionScriptEvaluator
- Enclosing class:
- ScriptedAttributeDefinition
private class ScriptedAttributeDefinition.AttributeDefinitionScriptEvaluator
extends AbstractScriptEvaluator
Evaluator bound to the AttributeDefinition semantic.
-
Field Summary
Fields inherited from class net.shibboleth.utilities.java.support.scripting.AbstractScriptEvaluator
DEFAULT_ENGINE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IdPAttribute
execute
(AttributeResolutionContext resolutionContext, AttributeResolverWorkContext workContext) Execution hook.protected Object
finalizeContext
(ScriptContext scriptContext, Object scriptResult) protected void
prepareContext
(ScriptContext scriptContext, Object... input) Methods inherited from class net.shibboleth.utilities.java.support.scripting.AbstractScriptEvaluator
evaluate, getCustomObject, getHideExceptions, getLogPrefix, getOutputType, getReturnOnError, setCustomObject, setHideExceptions, setLogPrefix, setOutputType, setReturnOnError
-
Constructor Details
-
AttributeDefinitionScriptEvaluator
Constructor.- Parameters:
theScript
- the script we will evaluate.
-
-
Method Details
-
execute
@Nullable protected IdPAttribute execute(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull AttributeResolverWorkContext workContext) throws ResolutionException Execution hook.- Parameters:
resolutionContext
- resolution contextworkContext
- work context- Returns:
- script result
- Throws:
ResolutionException
- if the script fails
-
prepareContext
- Specified by:
prepareContext
in classAbstractScriptEvaluator
-
finalizeContext
@Nullable protected Object finalizeContext(@Nonnull ScriptContext scriptContext, @Nullable Object scriptResult) throws ScriptException - Overrides:
finalizeContext
in classAbstractScriptEvaluator
- Throws:
ScriptException
-