Class OA2CertServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- edu.uiuc.ncsa.security.servlet.AbstractServlet
-
- All Implemented Interfaces:
TransactionFilter
,edu.uiuc.ncsa.security.core.Logable
,Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
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 edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.MyProxyDelegationServlet
caThread, kpt, lastAccessedThread, myproxyConnectionCache, myproxyConnectionCleanup, transactionCleanup
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.EnvServlet
ERROR_NOTIFICATION_BODY_KEY, ERROR_NOTIFICATION_SUBJECT_KEY, notificationListeners, storeUpdatesDone
-
-
Constructor Summary
Constructors Constructor Description OA2CertServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkMPConnection(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 theHttpServletResponse
stream.ServiceTransaction
verifyAndGet(IssuerResponse iResponse)
This is called after the response is received so that the system can get the approproate transaction.-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.ACS2
doDelegation, doIt, getPAI
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.CRServlet
createMPConnection, createMPConnection, doCertRequest, getX509Certificates
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.MyProxyDelegationServlet
checkClientApproval, createDebugger, destroy, getAGI, getATI, getClient, getClient, getFirstParameters, getGrantIDFromRequest, getMPConnection, getMPConnection, getMyproxyConnectionCache, getMyproxyServices, getServiceEnvironment, getTransaction, getTransactionByGrantID, getTransactionStore, hasMPConnection, hasMPConnection, isEmpty, loadProperties2, newTransaction, preprocess, realStoreUpdates, say, shutdownCleanup, storeUpdates
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.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, 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
-
-
-
-
Method Detail
-
getAccessToken
protected AccessToken getAccessToken(javax.servlet.http.HttpServletRequest request)
Description copied from class:CRServlet
There are various requirements for transmitting the access token, so specific methods have to be used.- Specified by:
getAccessToken
in classCRServlet
- 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 classMyProxyDelegationServlet
- Parameters:
req
-- Returns:
-
verifyAndGet
public ServiceTransaction verifyAndGet(IssuerResponse iResponse) throws IOException
Description copied from class:MyProxyDelegationServlet
This is called after the response is received so that the system can get the approproate transaction. Checks for the validity of the transaction should be done here too.- Specified by:
verifyAndGet
in classMyProxyDelegationServlet
- Returns:
- Throws:
IOException
-
checkMPConnection
protected void checkMPConnection(OA2ServiceTransaction st) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
doRealCertRequest
protected void doRealCertRequest(ServiceTransaction trans, String statusString) throws Throwable
Description copied from class:CRServlet
Indirection call. If your extension to this class needs to do any prep work before callingCRServlet.doCertRequest(edu.uiuc.ncsa.oa4mp.delegation.server.ServiceTransaction, String)
put it here. And this should contain the actual call to that method. This is called in the authorization leg and the getCert call. You should point this at theCRServlet.doCertRequest(ServiceTransaction, String)
method here which does all the dirty work of tracking down the connection and getting the cert. So, depending on your protocol you will have only one of two places where this is fully implemented.- Specified by:
doRealCertRequest
in classCRServlet
- Throws:
Throwable
-
postprocess
public void postprocess(TransactionState state) throws Throwable
Description copied from interface:TransactionFilter
Invoked after the response has been written to theHttpServletResponse
stream. This is the very last call made by the servlet before returning.- Specified by:
postprocess
in interfaceTransactionFilter
- Overrides:
postprocess
in classMyProxyDelegationServlet
- Throws:
Throwable
-
-