Class MultiAuthServlet
- 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.loader.oauth2.servlet.MultiAuthServlet
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Logable,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig,TransactionFilter
- Direct Known Subclasses:
AbstractAccessTokenServlet2
public abstract class MultiAuthServlet extends OA4MPServlet
This class has the machinery for processing the various types of Authorization for a servlet.
Created by Jeff Gaynor
on 7/24/21 at 5:58 AM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static List<org.oa4mp.delegation.server.storage.upkeep.UpkeepThread>upkeepThreadListThis should be in theOA4MPServlet, but that would have to be moved and refactored.-
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 MultiAuthServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdminClientgetAdminClient(edu.uiuc.ncsa.security.core.Identifier identifier)AdminClientgetAdminClient(javax.servlet.http.HttpServletRequest request)ClientgetClient(javax.servlet.http.HttpServletRequest request)This gets the client from the request.protected StringgetClientSecret(javax.servlet.http.HttpServletRequest request)voidverifyClient(OA2Client client, javax.servlet.http.HttpServletRequest request)voidverifyClient(OA2Client client, javax.servlet.http.HttpServletRequest request, boolean isAT)voidverifyClientSecret(OA2Client client, String rawSecret)-
Methods inherited from class org.oa4mp.server.api.storage.servlet.OA4MPServlet
checkAdminClientStatus, checkClientApproval, createDebugger, destroy, getAGI, getATI, getClient, getClient, getFirstParameters, getFirstParameterValue, getGrantIDFromRequest, getServiceEnvironment, getTransaction, getTransactionByGrantID, getTransactionStore, isEmpty, loadProperties2, newTransaction, postprocess, preprocess, realStoreUpdates, say, shutdownCleanup, storeUpdates, verifyAndGet
-
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, doIt, 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
-
upkeepThreadList
public static List<org.oa4mp.delegation.server.storage.upkeep.UpkeepThread> upkeepThreadList
This should be in theOA4MPServlet, but that would have to be moved and refactored. It stays here for now.
-
-
Method Detail
-
getClient
public Client getClient(javax.servlet.http.HttpServletRequest request)
This gets the client from the request. Note that this does not check the client password. That is done with theverifyClient(OA2Client, HttpServletRequest)- Overrides:
getClientin classOA4MPServlet- Parameters:
request-- Returns:
-
verifyClient
public void verifyClient(OA2Client client, javax.servlet.http.HttpServletRequest request)
-
verifyClient
public void verifyClient(OA2Client client, javax.servlet.http.HttpServletRequest request, boolean isAT)
-
getClientSecret
protected String getClientSecret(javax.servlet.http.HttpServletRequest request)
-
getAdminClient
public AdminClient getAdminClient(javax.servlet.http.HttpServletRequest request)
-
getAdminClient
public AdminClient getAdminClient(edu.uiuc.ncsa.security.core.Identifier identifier)
-
-