Class TokenHandlerMethod
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.claims.qdl.TokenHandlerMethod
-
- All Implemented Interfaces:
edu.uiuc.ncsa.qdl.extensions.QDLFunction
,Serializable
- Direct Known Subclasses:
AccessTokenInitializer.ATMethod
,IDTokenInitializer.IDMethods
,RefreshTokenInitializer.IDMethods
,RefreshTokenInitializer.RTMethod
public abstract class TokenHandlerMethod extends Object implements edu.uiuc.ncsa.qdl.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 edu.uiuc.ncsa.qdl.variables.QDLStem
checkArg(Object[] objects, String name, int argIndex)
Checks that the argument at argIndex is a stem.protected OA2State
checkState(edu.uiuc.ncsa.qdl.state.State state)
Object
evaluate(Object[] objects, edu.uiuc.ncsa.qdl.state.State state)
protected OA2Client
getClient()
protected abstract AbstractPayloadConfig
getPayloadConfig()
protected PayloadHandlerConfigImpl
getPayloadHandlerConfig()
protected OA2SE
getSE()
protected javax.servlet.http.HttpServletRequest
getServletRequest()
protected OA2ServiceTransaction
getTransaction()
protected TXRecord
getTXRecord()
protected void
handleException(Throwable throwable)
-
-
-
Constructor Detail
-
TokenHandlerMethod
public TokenHandlerMethod(OA2State oa2State)
-
-
Method Detail
-
evaluate
public Object evaluate(Object[] objects, edu.uiuc.ncsa.qdl.state.State state)
- Specified by:
evaluate
in interfaceedu.uiuc.ncsa.qdl.extensions.QDLFunction
-
checkState
protected OA2State checkState(edu.uiuc.ncsa.qdl.state.State state)
-
getPayloadHandlerConfig
protected PayloadHandlerConfigImpl getPayloadHandlerConfig()
-
getPayloadConfig
protected abstract AbstractPayloadConfig getPayloadConfig()
-
checkArg
protected edu.uiuc.ncsa.qdl.variables.QDLStem checkArg(Object[] 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
-
-