Class TokenHandlerMethod
- java.lang.Object
-
- org.oa4mp.server.loader.qdl.claims.TokenHandlerMethod
-
- All Implemented Interfaces:
Serializable,org.qdl_lang.extensions.QDLFunction
- Direct Known Subclasses:
AccessTokenInitializer.ATMethod,IDTokenInitializer.IDMethods,RefreshTokenInitializer.IDMethods,RefreshTokenInitializer.RTMethod
public abstract class TokenHandlerMethod extends Object implements org.qdl_lang.extensions.QDLFunction
Superclass for the various token (id, access, refresh) handlers. The way handlers work is a general init and finish method are called (exposed here) and whatever configuration the user supplies is invoked in between these. The assumption with QDL is that that automatic processing is being done in QDL, so all that is needed is that standard init and finish methods.Created by Jeff Gaynor
on 10/12/20 at 6:10 AM- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TokenHandlerMethod(OA2State oa2State)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.qdl_lang.variables.QDLStemcheckArg(org.qdl_lang.variables.values.QDLValue[] objects, String name, int argIndex)Checks that the argument at argIndex is a stem.protected OA2StatecheckState(org.qdl_lang.state.State state)org.qdl_lang.variables.values.QDLValueevaluate(org.qdl_lang.variables.values.QDLValue[] objects, org.qdl_lang.state.State state)protected OA2ClientgetClient()protected abstract AbstractPayloadConfiggetPayloadConfig()protected PayloadHandlerConfigImplgetPayloadHandlerConfig()protected OA2SEgetSE()protected javax.servlet.http.HttpServletRequestgetServletRequest()protected OA2ServiceTransactiongetTransaction()protected TXRecordgetTXRecord()protected voidhandleException(Throwable throwable)
-
-
-
Constructor Detail
-
TokenHandlerMethod
public TokenHandlerMethod(OA2State oa2State)
-
-
Method Detail
-
evaluate
public org.qdl_lang.variables.values.QDLValue evaluate(org.qdl_lang.variables.values.QDLValue[] objects, org.qdl_lang.state.State state)- Specified by:
evaluatein interfaceorg.qdl_lang.extensions.QDLFunction
-
checkState
protected OA2State checkState(org.qdl_lang.state.State state)
-
getPayloadHandlerConfig
protected PayloadHandlerConfigImpl getPayloadHandlerConfig()
-
getPayloadConfig
protected abstract AbstractPayloadConfig getPayloadConfig()
-
checkArg
protected org.qdl_lang.variables.QDLStem checkArg(org.qdl_lang.variables.values.QDLValue[] objects, String name, int argIndex)Checks that the argument at argIndex is a stem. The name is sent along so the error message can be more meaningful.- Parameters:
objects-name-argIndex-- Returns:
-
getTransaction
protected OA2ServiceTransaction getTransaction()
-
getTXRecord
protected TXRecord getTXRecord()
-
getClient
protected OA2Client getClient()
-
getServletRequest
protected javax.servlet.http.HttpServletRequest getServletRequest()
-
getSE
protected OA2SE getSE()
-
handleException
protected void handleException(Throwable throwable) throws RuntimeException
- Throws:
RuntimeException
-
-