Class ScriptedDataConnector.DataConnectorScriptEvaluator
java.lang.Object
net.shibboleth.shared.scripting.AbstractScriptEvaluator
net.shibboleth.idp.attribute.resolver.dc.impl.ScriptedDataConnector.DataConnectorScriptEvaluator
- Enclosing class:
- ScriptedDataConnector
Evaluator bound to the DataConnector semantic.
-
Field Summary
Fields inherited from class net.shibboleth.shared.scripting.AbstractScriptEvaluator
DEFAULT_ENGINE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckValues(IdPAttribute attribute) Ensure that all the values in the attribute are of the correct type.protected Map<String,IdPAttribute> execute(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 @Unmodifiable @NotLive protected Map<String,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
-
checkValues
Ensure that all the values in the attribute are of the correct type.- Parameters:
attribute- the attribute to look at
-