use of edu.uiuc.ncsa.security.delegation.server.storage.ClientApproval in project OA4MP by ncsa.
the class AutoRegistrationServlet method approveClient.
/**
* This will approve a client. Supply the approver and client
*
* @param clientIdentifier
* @param approver
*/
public static void approveClient(Identifier clientIdentifier, String approver) throws IOException {
ClientApproval clientApproval = getServiceEnvironment().getClientApprovalStore().get(clientIdentifier);
if (approver == null) {
// so you don't get something ugly in the backend.
approver = "";
}
clientApproval.setApprover(approver);
clientApproval.setApproved(true);
getServiceEnvironment().getClientApprovalStore().save(clientApproval);
}
Aggregations