Package net.shibboleth.idp.profile.logic
Class ScriptedPredicate
java.lang.Object
net.shibboleth.shared.scripting.AbstractScriptEvaluator
net.shibboleth.shared.logic.ScriptedPredicate<ProfileRequestContext>
net.shibboleth.profile.context.logic.ScriptedPredicate
net.shibboleth.idp.profile.logic.ScriptedPredicate
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
@Deprecated(since="5.0.0",
forRemoval=true)
public class ScriptedPredicate
extends ScriptedPredicate
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated stub for relocated class.
-
Field Summary
Fields inherited from class net.shibboleth.shared.scripting.AbstractScriptEvaluator
DEFAULT_ENGINE -
Constructor Summary
ConstructorsConstructorDescriptionScriptedPredicate(EvaluableScript theScript) Deprecated, for removal: This API element is subject to removal in a future version.Constructor.ScriptedPredicate(EvaluableScript theScript, String extraInfo) Deprecated, for removal: This API element is subject to removal in a future version.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScriptedPredicateinlineScript(String scriptSource) Deprecated, for removal: This API element is subject to removal in a future version.Factory to createScriptedPredicatefrom inline data.static ScriptedPredicateinlineScript(String engineName, String scriptSource) Deprecated, for removal: This API element is subject to removal in a future version.Factory to createScriptedPredicatefrom inline data.static ScriptedPredicateresourceScript(String engineName, Resource resource) Deprecated, for removal: This API element is subject to removal in a future version.Factory to createScriptedPredicatefrom aResource.static ScriptedPredicateresourceScript(Resource resource) Deprecated, for removal: This API element is subject to removal in a future version.Factory to createScriptedPredicatefrom aResource.Methods inherited from class net.shibboleth.profile.context.logic.ScriptedPredicate
prepareContext, resourceScript, resourceScriptMethods inherited from class net.shibboleth.shared.logic.ScriptedPredicate
getInputType, setInputType, setReturnOnError, testMethods inherited from class net.shibboleth.shared.scripting.AbstractScriptEvaluator
evaluate, finalizeContext, getCustomObject, getHideExceptions, getLogPrefix, getOutputType, getReturnOnError, setContextExtenders, setCustomObject, setHideExceptions, setLogPrefix, setOutputType, setReturnOnError
-
Constructor Details
-
Method Details
-
resourceScript
public static ScriptedPredicate resourceScript(@Nonnull @NotEmpty String engineName, @Nonnull Resource resource) throws ScriptException, IOException, ComponentInitializationException Deprecated, for removal: This API element is subject to removal in a future version.Factory to createScriptedPredicatefrom aResource.- Parameters:
resource- the resource to look atengineName- the language- Returns:
- the predicate
- Throws:
ScriptException- if the compile failsIOException- if the file doesn't exist.ComponentInitializationException- if the scripting initialization fails
-
resourceScript
public static ScriptedPredicate resourceScript(@Nonnull Resource resource) throws ScriptException, IOException, ComponentInitializationException Deprecated, for removal: This API element is subject to removal in a future version.Factory to createScriptedPredicatefrom aResource.- Parameters:
resource- the resource to look at- Returns:
- the predicate
- Throws:
ScriptException- if the compile failsIOException- if the file doesn't exist.ComponentInitializationException- if the scripting initialization fails
-
inlineScript
public static ScriptedPredicate inlineScript(@Nonnull @NotEmpty String engineName, @Nonnull @NotEmpty String scriptSource) throws ScriptException, ComponentInitializationException Deprecated, for removal: This API element is subject to removal in a future version.Factory to createScriptedPredicatefrom inline data.- Parameters:
scriptSource- the script, as a stringengineName- the language- Returns:
- the predicate
- Throws:
ScriptException- if the compile failsComponentInitializationException- if the scripting initialization fails
-
inlineScript
public static ScriptedPredicate inlineScript(@Nonnull @NotEmpty String scriptSource) throws ScriptException, ComponentInitializationException Deprecated, for removal: This API element is subject to removal in a future version.Factory to createScriptedPredicatefrom inline data.- Parameters:
scriptSource- the script, as a string- Returns:
- the predicate
- Throws:
ScriptException- if the compile failsComponentInitializationException- if the script object fails to initialize
-