Class UserInfoServlet
- 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.BearerTokenServlet
-
- org.oa4mp.server.loader.oauth2.servlet.UserInfoServlet
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Logable,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig,TransactionFilter
public class UserInfoServlet extends BearerTokenServlet
Created by Jeff Gaynor
on 10/4/13 at 11:09 AM- See Also:
- Serialized Form
-
-
Field Summary
-
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 UserInfoServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoIt(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected StringgetUsername(org.oa4mp.delegation.server.ServiceTransaction transaction)Override this if needed.protected net.sf.json.JSONObjectstripClaims(net.sf.json.JSONObject json)This strips out claims that should not be returned, such as the nonce, but are part of the original id token.org.oa4mp.delegation.server.ServiceTransactionverifyAndGet(org.oa4mp.delegation.server.request.IssuerResponse iResponse)-
Methods inherited from class org.oa4mp.server.loader.oauth2.servlet.BearerTokenServlet
findTransaction
-
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
-
doIt
protected void doIt(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable- Specified by:
doItin classedu.uiuc.ncsa.security.servlet.AbstractServlet- Throws:
Throwable
-
stripClaims
protected net.sf.json.JSONObject stripClaims(net.sf.json.JSONObject json)
This strips out claims that should not be returned, such as the nonce, but are part of the original id token.- Parameters:
json-- Returns:
-
getUsername
protected String getUsername(org.oa4mp.delegation.server.ServiceTransaction transaction)
Override this if needed.- Parameters:
transaction-- Returns:
-
verifyAndGet
public org.oa4mp.delegation.server.ServiceTransaction verifyAndGet(org.oa4mp.delegation.server.request.IssuerResponse iResponse) throws IOException- Specified by:
verifyAndGetin classOA4MPServlet- Throws:
IOException
-
-