public abstract class CRServlet extends MyProxyDelegationServlet
MyProxyConnectable
that has been found and is cached. This will close the connection at the end of the request.
If the client should get a limited proxy, that will be done here as well.Created by Jeff Gaynor
on 2/6/14 at 11:30 AM
caThread, ERROR_NOTIFICATION_BODY_KEY, ERROR_NOTIFICATION_SUBJECT_KEY, kpt, myproxyConnectionCache, myproxyConnectionCleanup, transactionCleanup
storeUpdatesDone
environment, initialization, PING_PARAMETER
Constructor and Description |
---|
CRServlet() |
Modifier and Type | Method and Description |
---|---|
protected MyProxyConnectable |
createMPConnection(Identifier identifier,
String userName,
String password,
long lifetime)
Returns a working MyProxy connection or it fails.
|
protected MyProxyConnectable |
createMPConnection(Identifier identifier,
String userName,
String password,
long lifetime,
String loa) |
protected void |
doCertRequest(ServiceTransaction trans,
String statusString) |
protected abstract void |
doRealCertRequest(ServiceTransaction trans,
String statusString)
Indirection call.
|
protected abstract AccessToken |
getAccessToken(javax.servlet.http.HttpServletRequest request)
There are various requirements for transmitting the access token, so specific methods have to be used.
|
protected LinkedList<X509Certificate> |
getX509Certificates(ServiceTransaction transaction,
MyPKCS10CertRequest localCertRequest,
String statusString)
Loops through the facade looking for the active connection and calls it.
|
addNotificationListener, checkClientApproval, destroy, getAGI, getATI, getClient, getClient, getClient, getFirstParameters, getGrantIDFromRequest, getMPConnection, getMPConnection, getMyproxyConnectionCache, getMyproxyServices, getServiceEnvironment, getTransaction, getTransactionByGrantID, getTransactionStore, hasMPConnection, hasMPConnection, isEmpty, loadProperties2, newTransaction, postprocess, preprocess, realStoreUpdates, removeNotificationListener, say, shutdownCleanup, storeUpdates, verifyAndGet
loadEnvironment, processStoreCheck
CONST, debug, doGet, doIt, doPing, doPost, error, getConfigurationLoader, getEnvironment, getExceptionHandler, getFirstParameterValue, getInitialization, getMyLogger, handleException, info, init, isDebugOn, printAllParameters, resetState, setConfigurationLoader, setDebugOn, setEnvironment, setExceptionHandler, setInitialization, warn
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected abstract void doRealCertRequest(ServiceTransaction trans, String statusString) throws Throwable
doCertRequest(edu.uiuc.ncsa.security.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 the 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.Throwable
protected abstract AccessToken getAccessToken(javax.servlet.http.HttpServletRequest request)
request
- protected void doCertRequest(ServiceTransaction trans, String statusString) throws Throwable
Throwable
protected LinkedList<X509Certificate> getX509Certificates(ServiceTransaction transaction, MyPKCS10CertRequest localCertRequest, String statusString) throws GeneralSecurityException
transaction
- localCertRequest
- statusString
- GeneralSecurityException
protected MyProxyConnectable createMPConnection(Identifier identifier, String userName, String password, long lifetime) throws GeneralSecurityException
identifier
- userName
- password
- GeneralSecurityException
protected MyProxyConnectable createMPConnection(Identifier identifier, String userName, String password, long lifetime, String loa) throws GeneralSecurityException
GeneralSecurityException
Copyright © 2019. All Rights Reserved.