Package org.oa4mp.myproxy.servlet
Class OA2CertServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- edu.uiuc.ncsa.security.servlet.AbstractServlet
-
- org.oa4mp.server.api.storage.servlet.EnvServlet
-
- org.oa4mp.server.api.storage.servlet.OA4MPServlet
-
- org.oa4mp.myproxy.servlet.MyProxyServlet
-
- org.oa4mp.myproxy.servlet.ACS2
-
- org.oa4mp.myproxy.servlet.OA2CertServlet
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Logable,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig,org.oa4mp.delegation.common.servlet.TransactionFilter
public class OA2CertServlet extends ACS2
Created by Jeff Gaynor
on 2/20/14 at 12:50 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.oa4mp.myproxy.servlet.MyProxyServlet
MyProxyServlet.MyMyProxyLogon
-
-
Field Summary
-
Fields inherited from class org.oa4mp.myproxy.servlet.MyProxyServlet
myproxyConnectionCache, myproxyConnectionCleanup
-
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
-
-
Constructor Summary
Constructors Constructor Description OA2CertServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckMPConnection(OA2ServiceTransaction st)protected voiddoRealCertRequest(ServiceTransaction trans, String statusString)Indirection call.protected org.oa4mp.delegation.common.token.AccessTokengetAccessToken(javax.servlet.http.HttpServletRequest request)There are various requirements for transmitting the access token, so specific methods have to be used.voidpostprocess(org.oa4mp.delegation.common.servlet.TransactionState state)ServiceTransactionverifyAndGet(org.oa4mp.delegation.server.request.IssuerResponse iResponse)This looks for the information about the client and checks the secret.-
Methods inherited from class org.oa4mp.myproxy.servlet.ACS2
doDelegation, doIt, getPAI
-
Methods inherited from class org.oa4mp.myproxy.servlet.MyProxyServlet
createMPConnection, createMPConnection, destroy, doCertRequest, getMPConnection, getMPConnection, getMyproxyConnectionCache, getX509Certificates, hasMPConnection, hasMPConnection
-
Methods inherited from class org.oa4mp.server.api.storage.servlet.OA4MPServlet
checkAdminClientStatus, checkClientApproval, createDebugger, getAGI, getATI, getClient, 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
-
-
-
-
Method Detail
-
getAccessToken
protected org.oa4mp.delegation.common.token.AccessToken getAccessToken(javax.servlet.http.HttpServletRequest request)
Description copied from class:MyProxyServletThere are various requirements for transmitting the access token, so specific methods have to be used.- Specified by:
getAccessTokenin classMyProxyServlet- Returns:
-
verifyAndGet
public ServiceTransaction verifyAndGet(org.oa4mp.delegation.server.request.IssuerResponse iResponse) throws IOException
This looks for the information about the client and checks the secret.- Specified by:
verifyAndGetin classOA4MPServlet- 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:MyProxyServletIndirection call. If your extension to this class needs to do any prep work before callingMyProxyServlet.doCertRequest(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 theMyProxyServlet.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:
doRealCertRequestin classMyProxyServlet- Throws:
Throwable
-
postprocess
public void postprocess(org.oa4mp.delegation.common.servlet.TransactionState state) throws Throwable- Specified by:
postprocessin interfaceorg.oa4mp.delegation.common.servlet.TransactionFilter- Overrides:
postprocessin classOA4MPServlet- Throws:
Throwable
-
-