Class ManagerFacade
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.cm.ManagerFacade
-
public class ManagerFacade extends Object
Created by Jeff Gaynor
on 10/6/16 at 2:31 PM
-
-
Constructor Summary
Constructors Constructor Description ManagerFacade(OA2SE serviceEnvironment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkAdminClientSecret(AdminClient client)
protected void
checkClientSecret(BaseClient client, BaseClientStore store)
This takes the client created from the JSON that came in the request and goes to the correct store, grabs the client with that ID stashed there and then checks that the secrets match.protected void
checkOA2ClientSecret(OA2Client client)
***************************AdminClientServer
getAdminClientServer()
AttributeServer
getAttributeServer()
ClientServer
getClientServer()
PermissionServer
getPermissionServer()
OA2SE
getSE()
protected Response
process(OA2Client subject, OA2Client target, net.sf.json.JSONObject rawJSON)
protected Response
process(OA2Client subject, AdminClient target, net.sf.json.JSONObject rawJSON)
protected Response
process(OA2Client oa2Client, net.sf.json.JSONObject rawJSON)
protected Response
process(AdminClient subject, OA2Client target, ActionAdd actionAdd, net.sf.json.JSONObject rawJSON)
protected Response
process(AdminClient subject, OA2Client target, ActionApprove actionApprove, net.sf.json.JSONObject rawJSON)
protected Response
process(AdminClient subject, OA2Client target, ActionCreate actionCreate, net.sf.json.JSONObject rawJSON)
protected Response
process(AdminClient subject, OA2Client target, ActionExecute actionExecute, net.sf.json.JSONObject rawJSON)
protected Response
process(AdminClient subject, OA2Client target, ActionGet actionGet, net.sf.json.JSONObject rawJSON)
protected Response
process(AdminClient subject, OA2Client target, ActionList actionList, net.sf.json.JSONObject rawJSON)
protected Response
process(AdminClient subject, OA2Client target, ActionRemove actionRemove, net.sf.json.JSONObject rawJSON)
protected Response
process(AdminClient subject, OA2Client target, ActionSet actionSet, net.sf.json.JSONObject rawJSON)
protected Response
process(AdminClient subject, OA2Client target, ActionUnapprove actionUnapprove, net.sf.json.JSONObject rawJSON)
protected Response
process(AdminClient subject, OA2Client target, net.sf.json.JSONObject rawJSON)
protected Response
process(AdminClient subject, AdminClient target, net.sf.json.JSONObject rawJSON)
protected Response
process(AdminClient adminClient, net.sf.json.JSONObject rawJSON)
Response
process(net.sf.json.JSONObject rawJSON)
-
-
-
Constructor Detail
-
ManagerFacade
public ManagerFacade(OA2SE serviceEnvironment)
-
-
Method Detail
-
getSE
public OA2SE getSE()
-
getAttributeServer
public AttributeServer getAttributeServer()
-
getClientServer
public ClientServer getClientServer()
-
getAdminClientServer
public AdminClientServer getAdminClientServer()
-
getPermissionServer
public PermissionServer getPermissionServer()
-
process
protected Response process(AdminClient adminClient, net.sf.json.JSONObject rawJSON)
-
checkOA2ClientSecret
protected void checkOA2ClientSecret(OA2Client client)
***************************
-
checkAdminClientSecret
protected void checkAdminClientSecret(AdminClient client)
-
checkClientSecret
protected void checkClientSecret(BaseClient client, BaseClientStore store)
This takes the client created from the JSON that came in the request and goes to the correct store, grabs the client with that ID stashed there and then checks that the secrets match. This means that the argument's secret is the actual secret and the stored client's secret is a hash of it.- Parameters:
client
-store
-
-
process
protected Response process(OA2Client subject, OA2Client target, net.sf.json.JSONObject rawJSON)
-
process
protected Response process(AdminClient subject, AdminClient target, net.sf.json.JSONObject rawJSON)
-
process
protected Response process(AdminClient subject, OA2Client target, ActionAdd actionAdd, net.sf.json.JSONObject rawJSON)
-
process
protected Response process(AdminClient subject, OA2Client target, ActionApprove actionApprove, net.sf.json.JSONObject rawJSON)
-
process
protected Response process(AdminClient subject, OA2Client target, ActionCreate actionCreate, net.sf.json.JSONObject rawJSON)
-
process
protected Response process(AdminClient subject, OA2Client target, ActionExecute actionExecute, net.sf.json.JSONObject rawJSON)
-
process
protected Response process(AdminClient subject, OA2Client target, ActionGet actionGet, net.sf.json.JSONObject rawJSON)
-
process
protected Response process(AdminClient subject, OA2Client target, ActionList actionList, net.sf.json.JSONObject rawJSON)
-
process
protected Response process(AdminClient subject, OA2Client target, ActionSet actionSet, net.sf.json.JSONObject rawJSON)
-
process
protected Response process(AdminClient subject, OA2Client target, ActionRemove actionRemove, net.sf.json.JSONObject rawJSON)
-
process
protected Response process(AdminClient subject, OA2Client target, ActionUnapprove actionUnapprove, net.sf.json.JSONObject rawJSON)
-
process
protected Response process(OA2Client subject, AdminClient target, net.sf.json.JSONObject rawJSON)
-
process
protected Response process(AdminClient subject, OA2Client target, net.sf.json.JSONObject rawJSON)
-
process
public Response process(net.sf.json.JSONObject rawJSON)
-
-