Class OA2RegistrationServlet
- 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
-
- All Implemented Interfaces:
TransactionFilter
,edu.uiuc.ncsa.security.core.Logable
,edu.uiuc.ncsa.security.servlet.Presentable
,Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Direct Known Subclasses:
OA2AutoRegistrationServlet
public class OA2RegistrationServlet extends AbstractRegistrationServlet
Created by Jeff Gaynor
on 3/20/14 at 4:48 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 Modifier and Type Field Description static String
CALLBACK_URI
static String
ISSUER_NAME
static String
LDAP_NAME
protected static SecureRandom
random
static String
REFRESH_TOKEN_FIELD_VISIBLE
static String
REFRESH_TOKEN_LIFETIME
static String
SCOPES_NAME
static String
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 OA2RegistrationServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Client
addNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected Client
addNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean fireClientEvents)
protected OA2SE
getOA2SE()
void
prepare(edu.uiuc.ncsa.security.servlet.PresentableState state)
void
present(edu.uiuc.ncsa.security.servlet.PresentableState state)
We override this to set the client secret to be displayed at registration time.protected void
setRetryParameters(javax.servlet.http.HttpServletRequest request, edu.uiuc.ncsa.security.core.exceptions.RetryException r)
Sets the parameters from the request so they can be passed back.protected Client
setupNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
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
-
-
-
-
Field Detail
-
random
protected static SecureRandom random
-
CALLBACK_URI
public static final String CALLBACK_URI
- See Also:
- Constant Field Values
-
REFRESH_TOKEN_LIFETIME
public static final String REFRESH_TOKEN_LIFETIME
- See Also:
- Constant Field Values
-
REFRESH_TOKEN_FIELD_VISIBLE
public static final String REFRESH_TOKEN_FIELD_VISIBLE
- See Also:
- Constant Field Values
-
VO_NAME
public static final String VO_NAME
- See Also:
- Constant Field Values
-
LDAP_NAME
public static final String LDAP_NAME
- See Also:
- Constant Field Values
-
ISSUER_NAME
public static final String ISSUER_NAME
- See Also:
- Constant Field Values
-
SCOPES_NAME
public static final String SCOPES_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOA2SE
protected OA2SE getOA2SE()
-
prepare
public void prepare(edu.uiuc.ncsa.security.servlet.PresentableState state) throws Throwable
- Specified by:
prepare
in interfaceedu.uiuc.ncsa.security.servlet.Presentable
- Overrides:
prepare
in classAbstractRegistrationServlet
- Throws:
Throwable
-
setupNewClient
protected Client setupNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable
- Overrides:
setupNewClient
in classAbstractRegistrationServlet
- Throws:
Throwable
-
addNewClient
protected Client addNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean fireClientEvents) throws Throwable
- Throws:
Throwable
-
addNewClient
protected Client addNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable
- Overrides:
addNewClient
in classAbstractRegistrationServlet
- Throws:
Throwable
-
present
public void present(edu.uiuc.ncsa.security.servlet.PresentableState state) throws Throwable
We override this to set the client secret to be displayed at registration time.- Specified by:
present
in interfaceedu.uiuc.ncsa.security.servlet.Presentable
- Overrides:
present
in classAbstractRegistrationServlet
- Parameters:
state
-- Throws:
Throwable
-
setRetryParameters
protected void setRetryParameters(javax.servlet.http.HttpServletRequest request, edu.uiuc.ncsa.security.core.exceptions.RetryException r)
Description copied from class:AbstractRegistrationServlet
Sets the parameters from the request so they can be passed back.- Overrides:
setRetryParameters
in classAbstractRegistrationServlet
-
-