Class AutoRegistrationServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- edu.uiuc.ncsa.security.servlet.AbstractServlet
-
- org.oa4mp.server.api.servlet.storage.EnvServlet
-
- org.oa4mp.server.api.servlet.storage.MyProxyDelegationServlet
-
- org.oa4mp.server.api.servlet.storage.AbstractRegistrationServlet
-
- org.oa4mp.server.api.servlet.storage.RegistrationServlet
-
- org.oa4mp.server.api.servlet.storage.AutoRegistrationServlet
-
- All Implemented Interfaces:
TransactionFilter
,edu.uiuc.ncsa.security.core.Logable
,edu.uiuc.ncsa.security.servlet.Presentable
,Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class AutoRegistrationServlet extends RegistrationServlet
This will automatically approve every client request. And is intended to allow administrators to test their installation. Do not use in a production environment!!Use
Point to this in the descriptor instead ofRegistrationServlet
NOTE: Can't stress enough that this is a debug tool for testing deployments and is inherently unsafe in a production environment.Created by Jeff Gaynor
on 9/28/11 at 1:20 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.AbstractRegistrationServlet
AbstractRegistrationServlet.ClientRegistrationRetryException, AbstractRegistrationServlet.ClientState
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.AbstractRegistrationServlet
CLIENT_ACTION_KEY, CLIENT_ACTION_REQUEST_VALUE, CLIENT_EMAIL, CLIENT_ERROR_URL, CLIENT_HOME_URL, CLIENT_IS_PUBLIC, CLIENT_NAME, CLIENT_PROXY_LIMITED, CLIENT_PUBLIC_KEY, emailPattern, ERROR_PAGE, ERROR_STATE, INIT_PAGE, INITIAL_STATE, OK_PAGE, REQUEST_STATE
-
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 AutoRegistrationServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Client
addNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static void
approveClient(edu.uiuc.ncsa.security.core.Identifier clientIdentifier, String approver)
This will approve a client.-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.AbstractRegistrationServlet
doIt, fireNewClientEvent, getErrorPage, getInitPage, getOKPage, getParameter, getRequiredParam, getState, getValueTag, handleError, prepare, present, save, setRetryParameters, setupNewClient, verifyAndGet
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.MyProxyDelegationServlet
checkClientApproval, createDebugger, destroy, getAGI, getATI, getClient, getClient, getClient, getFirstParameters, getGrantIDFromRequest, getMPConnection, getMPConnection, getMyproxyConnectionCache, getMyproxyServices, getServiceEnvironment, getTransaction, getTransactionByGrantID, getTransactionStore, hasMPConnection, hasMPConnection, isEmpty, loadProperties2, newTransaction, postprocess, 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
-
addNewClient
protected Client addNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable
- Overrides:
addNewClient
in classRegistrationServlet
- Throws:
Throwable
-
approveClient
public static void approveClient(edu.uiuc.ncsa.security.core.Identifier clientIdentifier, String approver) throws IOException
This will approve a client. Supply the approver and client- Parameters:
clientIdentifier
-approver
-- Throws:
IOException
-
-