Class AbstractAccessTokenServlet2

    • Field Detail

      • txRecordCleanup

        public static edu.uiuc.ncsa.security.core.cache.Cleanup<edu.uiuc.ncsa.security.core.Identifier,​TXRecord> txRecordCleanup
    • Constructor Detail

      • AbstractAccessTokenServlet2

        public AbstractAccessTokenServlet2()
    • Method Detail

      • doIt

        protected void doIt​(javax.servlet.http.HttpServletRequest httpServletRequest,
                            javax.servlet.http.HttpServletResponse httpServletResponse)
                     throws Throwable
        Specified by:
        doIt in class edu.uiuc.ncsa.security.servlet.AbstractServlet
        Throws:
        Throwable
      • getTransaction

        protected abstract ServiceTransaction getTransaction​(AuthorizationGrant ag,
                                                             javax.servlet.http.HttpServletRequest req)
                                                      throws javax.servlet.ServletException
        Throws:
        javax.servlet.ServletException
      • checkAGExpiration

        protected abstract AuthorizationGrant checkAGExpiration​(AuthorizationGrant ag)
        Contract: if the token gets updated (might have to because of changes to token versions), return it. If no changes, return null.
        Parameters:
        ag -
        Returns:
      • doDelegation

        protected IssuerTransactionState doDelegation​(Client client,
                                                      javax.servlet.http.HttpServletRequest httpServletRequest,
                                                      javax.servlet.http.HttpServletResponse httpServletResponse)
                                               throws Throwable,
                                                      javax.servlet.ServletException
        Throws:
        Throwable
        javax.servlet.ServletException
      • getIssuerTransactionState

        protected IssuerTransactionState getIssuerTransactionState​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                                   javax.servlet.http.HttpServletResponse httpServletResponse,
                                                                   AuthorizationGrant updatedAG,
                                                                   ServiceTransaction transaction,
                                                                   OA2Client client,
                                                                   edu.uiuc.ncsa.security.storage.XMLMap backup)
                                                            throws Throwable
        Default for standard token endpoint call.
        Parameters:
        httpServletRequest -
        httpServletResponse -
        updatedAG -
        transaction -
        Returns:
        Throws:
        Throwable
      • doDelegation

        protected IssuerTransactionState doDelegation​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                      javax.servlet.http.HttpServletResponse httpServletResponse)
                                               throws Throwable,
                                                      javax.servlet.ServletException
        Note that this method does not write the response (using the issuer response). You must do that in your implementation after you have finished all processing. If we were to do that here, the response would be written prematurely.
        Parameters:
        httpServletRequest -
        httpServletResponse -
        Returns:
        Throws:
        Throwable
        javax.servlet.ServletException