Class OA2CertServlet

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

    public class OA2CertServlet
    extends ACS2

    Created by Jeff Gaynor
    on 2/20/14 at 12:50 PM

    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.oa4mp.server.api.storage.servlet.OA4MPServlet

        caThread, kpt, lastAccessedThread, transactionCleanup
      • Fields inherited from class org.oa4mp.server.api.storage.servlet.EnvServlet

        ERROR_NOTIFICATION_BODY_KEY, ERROR_NOTIFICATION_SUBJECT_KEY, notificationListeners, storeUpdatesDone
      • Fields inherited from class edu.uiuc.ncsa.security.servlet.AbstractServlet

        environment, initialization, IP_HEADERS, PING_PARAMETER
    • Constructor Summary

      Constructors 
      Constructor Description
      OA2CertServlet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkMPConnection​(org.oa4mp.server.loader.oauth2.storage.transactions.OA2ServiceTransaction st)  
      protected void doRealCertRequest​(ServiceTransaction trans, String statusString)
      Indirection call.
      protected AccessToken getAccessToken​(javax.servlet.http.HttpServletRequest request)
      There are various requirements for transmitting the access token, so specific methods have to be used.
      Client getClient​(javax.servlet.http.HttpServletRequest req)
      This looks for the information about the client and checks the secret.
      void postprocess​(TransactionState state)
      Invoked after the response has been written to the HttpServletResponse stream.
      ServiceTransaction verifyAndGet​(IssuerResponse iResponse)  
      • Methods inherited from class org.oa4mp.server.api.storage.servlet.OA4MPServlet

        checkAdminClientStatus, checkClientApproval, createDebugger, getAGI, getATI, getClient, getClient, getFirstParameters, getFirstParameterValue, getGrantIDFromRequest, getServiceEnvironment, getTransaction, getTransactionByGrantID, getTransactionStore, isEmpty, loadProperties2, newTransaction, preprocess, realStoreUpdates, say, shutdownCleanup, storeUpdates
      • Methods inherited from class org.oa4mp.server.api.storage.servlet.EnvServlet

        addNotificationListener, loadEnvironment, processStoreCheck, removeNotificationListener
      • Methods inherited from class edu.uiuc.ncsa.security.servlet.AbstractServlet

        checkContentType, CONST, debug, doGet, doPing, doPost, error, error, getConfigurationLoader, getEnvironment, getExceptionHandler, getInitialization, getMyLogger, getRequestIPAddress, handleException, info, init, isDebugOn, logOK, logOK, 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

      • OA2CertServlet

        public OA2CertServlet()
    • Method Detail

      • getAccessToken

        protected AccessToken getAccessToken​(javax.servlet.http.HttpServletRequest request)
        Description copied from class: MyProxyServlet
        There are various requirements for transmitting the access token, so specific methods have to be used.
        Specified by:
        getAccessToken in class MyProxyServlet
        Returns:
      • getClient

        public Client getClient​(javax.servlet.http.HttpServletRequest req)
        This looks for the information about the client and checks the secret.
        Overrides:
        getClient in class org.oa4mp.server.api.storage.servlet.OA4MPServlet
        Parameters:
        req -
        Returns:
      • postprocess

        public void postprocess​(TransactionState state)
                         throws Throwable
        Description copied from interface: TransactionFilter
        Invoked after the response has been written to the HttpServletResponse stream. This is the very last call made by the servlet before returning.
        Specified by:
        postprocess in interface TransactionFilter
        Overrides:
        postprocess in class org.oa4mp.server.api.storage.servlet.OA4MPServlet
        Throws:
        Throwable