Class TokenManagerServlet

  • All Implemented Interfaces:
    edu.uiuc.ncsa.security.core.Logable, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, TransactionFilter, org.oa4mp.delegation.server.server.RFC7662Constants
    Direct Known Subclasses:
    RFC7009, RFC7662

    public abstract class TokenManagerServlet
    extends BearerTokenServlet
    implements org.oa4mp.delegation.server.server.RFC7662Constants
    Superclass for RFC7009 andRFC7662 plus perhaps any others.

    Created by Jeff Gaynor
    on 2/17/20 at 2:21 PM

    See Also:
    Serialized Form
    • Constructor Detail

      • TokenManagerServlet

        public TokenManagerServlet()
    • Method Detail

      • checkBasic

        protected TokenManagerServlet.State checkBasic​(javax.servlet.http.HttpServletRequest req)
                                                throws Throwable
        This will process a request with basic authorization, peel off the supplied token and resolve it. It will then find the transaction or token exchange (TX) record for the given token.
        Parameters:
        req -
        Returns:
        Throws:
        Throwable
      • isRFC7523Client

        protected boolean isRFC7523Client​(javax.servlet.http.HttpServletRequest req)
      • verifyAndGet

        public org.oa4mp.delegation.server.ServiceTransaction verifyAndGet​(org.oa4mp.delegation.server.request.IssuerResponse iResponse)
                                                                    throws IOException
        Specified by:
        verifyAndGet in class OA4MPServlet
        Throws:
        IOException
      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest httpServletRequest,
                          javax.servlet.http.HttpServletResponse httpServletResponse)
                   throws javax.servlet.ServletException,
                          IOException
        Overrides:
        doGet in class edu.uiuc.ncsa.security.servlet.AbstractServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • getTokenType

        protected int getTokenType​(String token)
      • writeOK

        protected void writeOK​(javax.servlet.http.HttpServletResponse httpServletResponse,
                               net.sf.json.JSONObject resp)
                        throws IOException
        Throws:
        IOException