Class 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 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 interface edu.uiuc.ncsa.qdl.extensions.QDLFunction
      • checkState

        protected OA2State checkState​(edu.uiuc.ncsa.qdl.state.State state)
      • 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:
      • getTXRecord

        protected TXRecord getTXRecord()
      • getClient

        protected OA2Client getClient()
      • getServletRequest

        protected javax.servlet.http.HttpServletRequest getServletRequest()
      • getSE

        protected OA2SE getSE()