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
,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
-
-
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 theHttpServletResponse
stream.ServiceTransaction
verifyAndGet(IssuerResponse iResponse)
-
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, 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 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 classMyProxyServlet
- 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 classorg.oa4mp.server.api.storage.servlet.OA4MPServlet
- Parameters:
req
-- Returns:
-
verifyAndGet
public ServiceTransaction verifyAndGet(IssuerResponse iResponse) throws IOException
- Specified by:
verifyAndGet
in classorg.oa4mp.server.api.storage.servlet.OA4MPServlet
- Throws:
IOException
-
checkMPConnection
protected void checkMPConnection(org.oa4mp.server.loader.oauth2.storage.transactions.OA2ServiceTransaction st) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
doRealCertRequest
protected void doRealCertRequest(ServiceTransaction trans, String statusString) throws Throwable
Description copied from class:MyProxyServlet
Indirection 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:
doRealCertRequest
in classMyProxyServlet
- 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 classorg.oa4mp.server.api.storage.servlet.OA4MPServlet
- Throws:
Throwable
-
-