Class OA2ReadyServlet

  • All Implemented Interfaces:
    edu.uiuc.ncsa.security.core.Logable, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class OA2ReadyServlet
    extends ClientServlet
    A very, very simple (as in stupid) ready servlet. This is the target of the callback uri supplied in the initial request.

    This example is intended to show control flow rather than be a polished application. Feel free to boilerplate from it as needed. Do not deploy this in production environments.

    Created by Jeff Gaynor

    on 2/10/12 at 1:43 PM

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OA2ReadyServlet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doIt​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      protected void setATInfo​(javax.servlet.http.HttpServletRequest request, AccessToken accessToken)  
      protected void setIDTInfo​(javax.servlet.http.HttpServletRequest request, String rawJWT, edu.uiuc.ncsa.security.util.jwk.JSONWebKeys jsonWebKeys)
      Set the attributes for the id token.
      • Methods inherited from class edu.uiuc.ncsa.security.servlet.AbstractServlet

        checkContentType, CONST, debug, doGet, doPing, doPost, error, error, getConfigurationLoader, getEnvironment, getExceptionHandler, getFirstParameterValue, getInitialization, getMyLogger, handleException, info, init, isDebugOn, printAllParameters, printAllParameters, resetState, setConfigurationLoader, setDebugOn, setEnvironment, setExceptionHandler, setInitialization, warn
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • Constructor Detail

      • OA2ReadyServlet

        public OA2ReadyServlet()
    • Method Detail

      • doIt

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

        protected void setIDTInfo​(javax.servlet.http.HttpServletRequest request,
                                  String rawJWT,
                                  edu.uiuc.ncsa.security.util.jwk.JSONWebKeys jsonWebKeys)
        Set the attributes for the id token.
        Parameters:
        request -
        rawJWT -
        jsonWebKeys -
      • setATInfo

        protected void setATInfo​(javax.servlet.http.HttpServletRequest request,
                                 AccessToken accessToken)