Class OA2AutoRegistrationServlet
- 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.loader.oauth2.servlet.OA2RegistrationServlet
-
- org.oa4mp.server.loader.oauth2.servlet.OA2AutoRegistrationServlet
-
- 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 OA2AutoRegistrationServlet extends OA2RegistrationServlet
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.oauth2.servlet.OA2RegistrationServlet
CALLBACK_URI, ISSUER_NAME, LDAP_NAME, random, REFRESH_TOKEN_FIELD_VISIBLE, REFRESH_TOKEN_LIFETIME, SCOPES_NAME, VO_NAME
-
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 OA2AutoRegistrationServlet()
-
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.oauth2.servlet.OA2RegistrationServlet
addNewClient, getOA2SE, prepare, present, setRetryParameters, setupNewClient
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.servlet.AbstractRegistrationServlet
doIt, fireNewClientEvent, getErrorPage, getInitPage, getOKPage, getParameter, getRequiredParam, getState, getValueTag, handleError, save, 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 classOA2RegistrationServlet
- 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
-
-