Class ScriptableIdentityAssertionPluginTechPreview
java.lang.Object
org.forgerock.openig.script.AbstractScriptableHeapObject<IdentityAssertionClaims>
org.forgerock.openig.handler.assertion.ScriptableIdentityAssertionPluginTechPreview
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IdentityAssertionPluginTechPreview
public class ScriptableIdentityAssertionPluginTechPreview
extends AbstractScriptableHeapObject<IdentityAssertionClaims>
implements IdentityAssertionPluginTechPreview
A scriptable
IdentityAssertionPluginTechPreview
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Creates 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 aFilter
to deal with any pre-processing requirements.Preform some processing and return a set of claims to be returned in the Assertion JWT.Methods inherited from class org.forgerock.openig.script.AbstractScriptableHeapObject
close, runScript, runScriptAsync, setArgs, setClientHandler
-
Method Details
-
preProcessingFilter
Description copied from interface:IdentityAssertionPluginTechPreview
Return aFilter
to deal with any pre-processing requirements. The default implementation simply calls the nextHandler
without doing any processing.- Specified by:
preProcessingFilter
in interfaceIdentityAssertionPluginTechPreview
- Returns:
- a
Filter
to deal with any pre-processing requirements.
-
process
public Promise<IdentityAssertionClaims,IdentityAssertionException> process(Context context, Request request, Map<String, Object> incomingClaims) Description copied from interface:IdentityAssertionPluginTechPreview
Preform some processing and return a set of claims to be returned in the Assertion JWT. The processing may include some form of local authentication and/or authorization.- Specified by:
process
in interfaceIdentityAssertionPluginTechPreview
- Parameters:
context
- The context.request
- The request.incomingClaims
- The claims provided in the JWT from the requester based on the incoming claim keys.- Returns:
- An
IdentityAssertionClaims
promise that represents claims to be returned in the Assertion JWT.
-