Class AbstractAccessTokenServlet

    • Constructor Detail

      • AbstractAccessTokenServlet

        public AbstractAccessTokenServlet()
    • 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
      • getATRequest

        protected abstract ATRequest getATRequest​(javax.servlet.http.HttpServletRequest request,
                                                  ServiceTransaction transaction)
      • 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,
                                                                   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