Patent ID: 7069539

Claim:
A computer-implemented method for applying one or more policy constraints in an application program, the method comprising: executing the application program to cause a routine, contained in the application program, to be invoked, wherein invocation of the routine causes redirecting a request, to perform the routine, to a policy broker instead of the application program performing the routine, wherein the redirecting of the request to the policy broker is achieved by substituting original code contained in the routine for which a policy constraint is to be applied with replacement code that invokes a routine managed by the policy broker, wherein the replacement code includes code that invokes the routine managed by the policy broker, and wherein program code, contained in the application program, is not modified to cause the request, to perform the routine for which a policy constraint is to be applied, to be redirected to the policy broker; and the policy broker performing the routine for which a policy constraint is to be applied, wherein the policy broker causes the one or more policy constraints to be applied to the performance of the routine.