public class OIDCCMServlet extends EnvServlet
Created by Jeff Gaynor
on 11/28/18 at 10:04 AM
storeUpdatesDone
environment, initialization, PING_PARAMETER
Constructor and Description |
---|
OIDCCMServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAdminPermission(AdminClient adminClient,
OA2Client client)
Checks that this client exists on the system and that if it exists, the admin client actually
owns it.
|
protected void |
doDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Remove the given client in toto.
|
void |
doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Return information about the client.
|
protected void |
doIt(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
void |
doPost(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
protected void |
doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Update a client.
|
protected AdminClient |
getAndCheckAdminClient(javax.servlet.http.HttpServletRequest request)
Pulls the id and secret from the header then verifies the secret and if it passes,
returns the client.
|
protected OA2Client |
getClient(javax.servlet.http.HttpServletRequest req)
Get the client from the request.
|
protected OA2SE |
getOA2SE() |
protected net.sf.json.JSON |
getPayload(javax.servlet.http.HttpServletRequest httpServletRequest) |
PermissionServer |
getPermissionServer()
We want to be able to manage the permissions associated with a standard client and an admin client.
|
protected OA2Client |
processRegistrationRequest(net.sf.json.JSONObject jsonRequest,
javax.servlet.http.HttpServletResponse httpResponse) |
void |
storeUpdates()
This will be invoked at init before anything else and should include code to seamlessly upgrade stores from earlier versions.
|
protected net.sf.json.JSONObject |
toJSONObject(OA2Client client) |
protected OA2Client |
updateClient(OA2Client client,
net.sf.json.JSONObject jsonRequest,
javax.servlet.http.HttpServletResponse httpResponse) |
loadEnvironment, loadProperties2, processStoreCheck
CONST, debug, doPing, error, getConfigurationLoader, getEnvironment, getExceptionHandler, getFirstParameterValue, getInitialization, getMyLogger, handleException, info, init, isDebugOn, printAllParameters, resetState, setConfigurationLoader, setDebugOn, setEnvironment, setExceptionHandler, setInitialization, warn
doHead, doOptions, doTrace, getLastModified, service, service
public void storeUpdates() throws IOException, SQLException
EnvServlet
EnvServlet.storeUpdatesDone
which should be
checks in overrides. If you override this method and call super, let super manage this flag. If it is true, do not
execute your method.storeUpdates
in class EnvServlet
IOException
SQLException
protected OA2SE getOA2SE()
public void doGet(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws javax.servlet.ServletException, IOException
doGet
in class AbstractServlet
httpServletRequest
- httpServletResponse
- javax.servlet.ServletException
IOException
protected net.sf.json.JSONObject toJSONObject(OA2Client client)
protected void doDelete(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doDelete
in class javax.servlet.http.HttpServlet
req
- resp
- javax.servlet.ServletException
IOException
protected void checkAdminPermission(AdminClient adminClient, OA2Client client)
adminClient
- client
- protected void doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPut
in class javax.servlet.http.HttpServlet
req
- resp
- javax.servlet.ServletException
IOException
public void doPost(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws javax.servlet.ServletException, IOException
doPost
in class AbstractServlet
javax.servlet.ServletException
IOException
public PermissionServer getPermissionServer()
protected AdminClient getAndCheckAdminClient(javax.servlet.http.HttpServletRequest request) throws Throwable
request
- Throwable
protected void doIt(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws Throwable
doIt
in class AbstractServlet
Throwable
protected net.sf.json.JSON getPayload(javax.servlet.http.HttpServletRequest httpServletRequest) throws IOException
IOException
protected OA2Client getClient(javax.servlet.http.HttpServletRequest req)
req
- protected OA2Client updateClient(OA2Client client, net.sf.json.JSONObject jsonRequest, javax.servlet.http.HttpServletResponse httpResponse)
protected OA2Client processRegistrationRequest(net.sf.json.JSONObject jsonRequest, javax.servlet.http.HttpServletResponse httpResponse)
Copyright © 2019. All Rights Reserved.