Class ScriptableIdentityAssertionPlugin
java.lang.Object
org.forgerock.openig.script.AbstractScriptableHeapObject<IdentityAssertionClaims>
org.forgerock.openig.assertion.plugin.ScriptableIdentityAssertionPlugin
- All Implemented Interfaces:
Closeable,AutoCloseable,IdentityAssertionPlugin
public class ScriptableIdentityAssertionPlugin
extends AbstractScriptableHeapObject<IdentityAssertionClaims>
implements IdentityAssertionPlugin
A scriptable
IdentityAssertionPlugin. If there is an issue during script processing then it will be wrapped
in an IdentityAssertionPluginException.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCreates and initializes a ScriptableIdentityAssertionPlugin in a heap environment.Nested classes/interfaces inherited from class org.forgerock.openig.script.AbstractScriptableHeapObject
AbstractScriptableHeapObject.AbstractScriptableHeaplet<V> -
Method Summary
Modifier and TypeMethodDescriptionReturn aFilterto deal with any pre-processing requirements such as challenging the user for credentials by returning aWWW-Authenticateheader.Preform some processing and return a set of claims to be returned in the Identity Assertion JWT.Methods inherited from class org.forgerock.openig.script.AbstractScriptableHeapObject
close, runScript, runScriptAsync, setArgs, setClientHandler
-
Method Details
-
preProcessingFilter
Description copied from interface:IdentityAssertionPluginReturn aFilterto deal with any pre-processing requirements such as challenging the user for credentials by returning aWWW-Authenticateheader. The default implementation simply calls the nextHandlerwithout doing any processing. This filter is only triggered after the Identity Request JWT has been validated.- Specified by:
preProcessingFilterin interfaceIdentityAssertionPlugin- Returns:
- a
Filterto deal with any pre-processing requirements.
-
process
public Promise<IdentityAssertionClaims,IdentityAssertionPluginException> process(Context context, Request request) Description copied from interface:IdentityAssertionPluginPreform some processing and return a set of claims to be returned in the Identity Assertion JWT. The processing may include some form of local authentication and/or authorization.- Specified by:
processin interfaceIdentityAssertionPlugin- Parameters:
context- The context.request- The request.- Returns:
- An
IdentityAssertionClaimspromise that represents claims to be returned in the Assertion JWT.
-