Class OA2RegistrationServlet
- 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.loader.oauth2.servlet.OA2RegistrationServlet
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Logable,edu.uiuc.ncsa.security.servlet.Presentable,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig,TransactionFilter
- 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 org.oa4mp.server.api.storage.servlet.AbstractRegistrationServlet
AbstractRegistrationServlet.ClientRegistrationRetryException, AbstractRegistrationServlet.ClientState
-
-
Field Summary
Fields Modifier and Type Field Description static StringCALLBACK_URIstatic StringISSUER_NAMEstatic StringLDAP_NAMEprotected static SecureRandomrandomstatic StringREFRESH_TOKEN_FIELD_VISIBLEstatic StringREFRESH_TOKEN_LIFETIMEstatic StringSCOPES_NAMEstatic StringVI_NAME-
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 OA2RegistrationServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClientaddNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected ClientaddNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean fireClientEvents)protected Collection<String>getDisplayScopes()protected OA2SEgetOA2SE()voidprepare(edu.uiuc.ncsa.security.servlet.PresentableState state)voidpresent(edu.uiuc.ncsa.security.servlet.PresentableState state)We override this to set the client secret to be displayed at registration time.protected voidsetRetryParameters(javax.servlet.http.HttpServletRequest request, edu.uiuc.ncsa.security.core.exceptions.RetryException r)protected ClientsetupNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)-
Methods inherited from class org.oa4mp.server.api.storage.servlet.AbstractRegistrationServlet
doIt, fireNewClientEvent, getErrorPage, getInitPage, getOKPage, getParameter, getRequiredParam, getState, getValueTag, handleError, save, 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
-
-
-
-
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
-
VI_NAME
public static final String VI_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()
-
getDisplayScopes
protected Collection<String> getDisplayScopes()
-
prepare
public void prepare(edu.uiuc.ncsa.security.servlet.PresentableState state) throws Throwable- Specified by:
preparein interfaceedu.uiuc.ncsa.security.servlet.Presentable- Overrides:
preparein classAbstractRegistrationServlet- Throws:
Throwable
-
setupNewClient
protected Client setupNewClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable
- Overrides:
setupNewClientin 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:
addNewClientin classAbstractRegistrationServlet- Throws:
Throwable
-
present
public void present(edu.uiuc.ncsa.security.servlet.PresentableState state) throws ThrowableWe override this to set the client secret to be displayed at registration time.- Specified by:
presentin interfaceedu.uiuc.ncsa.security.servlet.Presentable- Overrides:
presentin classAbstractRegistrationServlet- Parameters:
state-- Throws:
Throwable
-
setRetryParameters
protected void setRetryParameters(javax.servlet.http.HttpServletRequest request, edu.uiuc.ncsa.security.core.exceptions.RetryException r)- Overrides:
setRetryParametersin classAbstractRegistrationServlet
-
-