Class ScriptedAttributeDefinition.AttributeDefinitionScriptEvaluator
java.lang.Object
net.shibboleth.shared.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.shared.scripting.AbstractScriptEvaluator
DEFAULT_ENGINE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IdPAttributeexecute(AttributeResolutionContext resolutionContext, AttributeResolverWorkContext workContext) Execution hook.protected ObjectfinalizeContext(ScriptContext scriptContext, Object scriptResult) protected voidprepareContext(ScriptContext scriptContext, Object... input) Methods inherited from class net.shibboleth.shared.scripting.AbstractScriptEvaluator
evaluate, getCustomObject, getHideExceptions, getLogPrefix, getOutputType, getReturnOnError, setContextExtenders, setCustomObject, setHideExceptions, setLogPrefix, setOutputType, setReturnOnError
-
Constructor Details
-
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:
prepareContextin classAbstractScriptEvaluator
-
finalizeContext
@Nullable protected Object finalizeContext(@Nonnull ScriptContext scriptContext, @Nullable Object scriptResult) throws ScriptException - Overrides:
finalizeContextin classAbstractScriptEvaluator- Throws:
ScriptException
-