Search in sources :

Example 6 with TypePermission

use of edu.uiuc.ncsa.myproxy.oa4mp.server.admin.things.types.TypePermission in project OA4MP by ncsa.

the class PermissionServerTest method removeClient.

public void removeClient(CMTestStoreProvider tp2) throws Exception {
    CC cc = setupClients(tp2);
    RemoveClientRequest req = RequestFactory.createRequest(cc.adminClient, new TypePermission(), new ActionRemove(), cc.client, null);
    PermissionServer permissionServer = new PermissionServer(tp2.getCOSE());
    PermissionResponse resp = (PermissionResponse) permissionServer.process(req);
    assert tp2.getPermissionStore().get(cc.adminClient.getIdentifier(), cc.client.getIdentifier()).isEmpty();
}
Also used : TypePermission(edu.uiuc.ncsa.myproxy.oa4mp.server.admin.things.types.TypePermission) ActionRemove(edu.uiuc.ncsa.myproxy.oa4mp.server.admin.things.actions.ActionRemove)

Aggregations

TypePermission (edu.uiuc.ncsa.myproxy.oa4mp.server.admin.things.types.TypePermission)6 AdminClient (edu.uiuc.ncsa.myproxy.oa4mp.server.admin.adminClient.AdminClient)3 OA2Client (edu.uiuc.ncsa.security.oauth_2_0.OA2Client)3 PermissionServer (edu.uiuc.ncsa.myproxy.oa4mp.oauth2.cm.util.permissions.PermissionServer)2 Permission (edu.uiuc.ncsa.myproxy.oa4mp.server.admin.permissions.Permission)2 ActionAdd (edu.uiuc.ncsa.myproxy.oa4mp.server.admin.things.actions.ActionAdd)2 ActionList (edu.uiuc.ncsa.myproxy.oa4mp.server.admin.things.actions.ActionList)2 Identifier (edu.uiuc.ncsa.security.core.Identifier)2 LinkedList (java.util.LinkedList)2 AddClientRequest (edu.uiuc.ncsa.myproxy.oa4mp.oauth2.cm.util.permissions.AddClientRequest)1 PermissionList (edu.uiuc.ncsa.myproxy.oa4mp.server.admin.permissions.PermissionList)1 ActionRemove (edu.uiuc.ncsa.myproxy.oa4mp.server.admin.things.actions.ActionRemove)1 TypeClient (edu.uiuc.ncsa.myproxy.oa4mp.server.admin.things.types.TypeClient)1 GeneralException (edu.uiuc.ncsa.security.core.exceptions.GeneralException)1 ClientApproval (edu.uiuc.ncsa.security.delegation.server.storage.ClientApproval)1 ClientKeys (edu.uiuc.ncsa.security.delegation.storage.ClientKeys)1 ColumnMap (edu.uiuc.ncsa.security.storage.sql.internals.ColumnMap)1