Class AutoRegistrationServlet
- 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.server.api.storage.servlet.AbstractRegistrationServlet
-
- org.oa4mp.server.api.storage.servlet.RegistrationServlet
-
- org.oa4mp.server.api.storage.servlet.AutoRegistrationServlet
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Logable,edu.uiuc.ncsa.security.servlet.Presentable,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig,org.oa4mp.delegation.common.servlet.TransactionFilter
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 ofRegistrationServletNOTE: 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 org.oa4mp.server.api.storage.servlet.AbstractRegistrationServlet
AbstractRegistrationServlet.ClientRegistrationRetryException, AbstractRegistrationServlet.ClientState
-
-
Field Summary
-
Fields inherited from class org.oa4mp.server.api.storage.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 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 AutoRegistrationServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.oa4mp.delegation.common.storage.clients.ClientaddNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)static voidapproveClient(edu.uiuc.ncsa.security.core.Identifier clientIdentifier, String approver)This will approve a client.-
Methods inherited from class org.oa4mp.server.api.storage.servlet.AbstractRegistrationServlet
doIt, fireNewClientEvent, getErrorPage, getInitPage, getOKPage, getParameter, getRequiredParam, getState, getValueTag, handleError, prepare, present, save, setRetryParameters, setupNewClient, verifyAndGet
-
Methods inherited from class org.oa4mp.server.api.storage.servlet.OA4MPServlet
checkAdminClientStatus, checkClientApproval, createDebugger, destroy, getAGI, getATI, getClient, getClient, getClient, getFirstParameters, getFirstParameterValue, getGrantIDFromRequest, getServiceEnvironment, getTransaction, getTransactionByGrantID, getTransactionStore, isEmpty, loadProperties2, newTransaction, postprocess, 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
-
addNewClient
protected org.oa4mp.delegation.common.storage.clients.Client addNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable- Overrides:
addNewClientin classRegistrationServlet- Throws:
Throwable
-
approveClient
public static void approveClient(edu.uiuc.ncsa.security.core.Identifier clientIdentifier, String approver) throws IOExceptionThis will approve a client. Supply the approver and client- Parameters:
clientIdentifier-approver-- Throws:
IOException
-
-