# Patent

## Title
Policy interface description framework

## Abstract

Methods, systems, and machine-readable mediums are disclosed for providing resource interface descriptions with policy parameters. In one embodiment, a method comprises intercepting, at a framework, a request for a resource interface description. The resource interface description is obtained at the framework and at least one policy associated with the resource is determined. For each of the determined policies, one or more policy parameters associated with the policy are determined.

## Background
BACKGROUND OF THE INVENTION
A wide variety of resources are made available over networks, such as the Internet. Each of these resources may provide an interface that specifies the operations performed by the resource and the parameters used to perform the operations. Application or application developers that wish to access or use a service provided by a resource need to obtain the resource interface in order to use and access the resource.
One popular method used to making resources available to others is through web services. A web service is a collection of one or more operations which are published and made available on the Internet. A description of the public interface to the web service is generally provided in a Web Services Description Language (WSDL) document, which describes the operations provided by the web service, the input parameters used by the web service, and output parameters which may be returned by an operation. A resource may publish its interface in a WSDL document using a Universal Description Discovery and Integration (UDDI) register.
Other prior art approaches to interoperability of services provided by resources are also used. For instance, the Parlay framework (http://www.parlay.org) specifies a centralized framework for discovering and supporting service enablers. Upon authentication of a requestor, a service enabler is instantiated and made available to the requestor. However, the framework was developed prior to and independently from web services and therefore it does not, for example, cater for providing the Parlay framework functionality to generic web services. The Parlay framework is fundamentally a session-based approach where services are instantiated upon request and then protected by hiding its address for the duration of the instantiation. Further, Parlay requires skilled developers to use an IIOP framework or a CORBA architecture and develop appropriate interfaces for each service enabler or service. Composing such interfaces is not simple, thus the adoption of this approach for determining the availability and the enforceability of supporting functions is limited.
Prior art approaches do not contemplate independent service function composition, combination, aggregation, choreography, or coordination in any way that would allow a resource provider to control and manage efficiently the way that it exposes its resource to other parties in a way that can be automated, where the requestor can determine the conditions that it must satisfy to access and use the enabler or the services and can satisfy them. Further, the existing approaches do not contemplate the service provider validating that these conditions as well as any additional conditions internally imposed and not exposed to the requestor, have been satisfied.
BRIEF SUMMARY OF THE INVENTION
Methods, systems, and machine-readable mediums are disclosed for providing resource and policy interface descriptions. In one embodiment, the method comprises intercepting, at a framework, a request for a resource interface description. The request is associated with a requester. The resource interface description is obtained at the framework. By way of example, the resource interface description may be obtained from a register (e.g., a Universal Description Discovery and Integration (UDDI) register or other type of catalog directory) associated with the resource.
The method also comprises determining at least one policy associated with the resource. By way of example, a policy may be an authentication policy, a billing policy, a prioritization policy, an authorization policy or other type of policy applied to requests to use or access the resource. For each of the determined policies, one or more policy parameters associated with the determined policy are determined. The resource interface description and the policy parameters are then transmitted to the requester. In one embodiment, the resource interface description and the policy parameters may be transmitted by modifying the resource interface description to include the policy parameters and transmitting the modified resource interface description to the requester.
In a second embodiment, a method is disclosed which comprises intercepting, at a framework, a communication from a resource to register a resource description with a register. At least one policy associated with the resource is determined at the framework. For each of the determined policies, one or more policy parameters associated with the determined policy are determined. A policy parameter may be an authentication credential, account information used for charging, or other type of parameter needed to enforce a policy. The resource interface description and the policy parameters are transmitted to the register.
In a third embodiment, a system that may be used to provide resource and policy interface descriptions is disclosed. The system includes a communications interface to intercept a request from a requester for a resource interface description. The system also includes logic to obtain the resource interface description and to determine at least one policy associated with the resource. The logic also determines one or more policy parameters associated with each of the determined policies. The communications interface is further configured to transmit the resource interface description and the policy parameters to the requester.
In a fourth embodiment, a system is disclosed which comprises a communications interface to intercept a communication from a resource to register a resource description with a register. The system further comprises logic to determine at least one policy associated with the resource and to determine one or more policy parameters associated with each of the determined policies. The communications interface is further configured to transmit the resource interface description and the policy parameters to the register.



BRIEF DESCRIPTION OF THE DRAWINGS
Illustrative embodiments in accordance with the invention are illustrated in the drawings in which:
FIG. 1 illustrates an exemplary embodiment of a system that may be used to provide resource interface descriptions and policy parameters;
FIG. 2 is a block diagram of an exemplary computer system upon which the framework of FIG. 1 may be implemented;
FIG. 3 is a flow diagram illustrating an exemplary method that may be used to provide policy parameters and resource interface descriptions;
FIG. 4 is a flow diagram illustrating an exemplary method that may be used to include policy parameters in a resource interface description;
FIG. 5 is a flow diagram illustrating an exemplary method that may be used to enforce policies on a communication; and
FIG. 6 is a block diagram illustrating an exemplary embodiment of applying policies to a communication.



DETAILED DESCRIPTION
In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without some of these specific details. In other instances, well-known structures and devices are shown in block diagram form.
Frameworks for allowing a resource provider to control and manage the way that it exposes its resource to other parties are disclosed in application Ser. No. 10/856,588, entitled “Method and Apparatus for Supporting Service Enablers via Service Request Composition”, filed on May 28, 2004 and application Ser. No. 10/855999, entitled “Method and Apparatus for Supporting Service Enablers Via Service Request Handholding”, the details of both of which are hereby incorporated by reference. The frameworks may be used to enforce policies (e.g., authorization, authentication, billing, and Service Level agreement policies) on requests to use or access resources. Methods and systems that may be used to enforce policies defined by a resource are also disclosed in application Ser. No. 11/024,160, entitled “Policies as Workflows”, filed Dec. 27, 2004 , the details of which are also hereby incorporated by reference.
As previously described, a resource may have an interface which defines the operations performed by the resource, input parameters used, output parameters returned, or other information on how to interact with the resource. When the resource is protected by a policy framework, additional parameters and information may also be required by one or more of the policies enforced on requests to use or access the resource. These policies may be invoked by the policy framework and may each have their own interface description separate from the resource interface description which describes the parameters that must be supplied by a user in order to execute or satisfy the policy. Applications or application developers may need both the resource interface description and the policy interface description(s) to determine all the parameters needed to request use or access of the resource.
FIG. 1 illustrates a system that may be used to provide both resource interface descriptions and policy interface descriptions to a requesting party. The system 100 includes a framework 102. Framework 102 includes a communications interface 104 communicatively coupled with logic 106. By way of example, communications interface 104 may be an interface that may be used to send and receive Internet communications, such as web services communications (e.g., SOAP messages). Logic 106 may be one or more software programs, one or more components of a software program (e.g., function or program object), firmware, or other type of machine-executable instructions.
Framework 102 is communicatively coupled with resource 108 and register 110. Resource 108 may be any type of resource, such as an application or function, providing services or functionality to client requesters. Resource 108 may publish a description of its interface with register 110. The resource interface description may describe the operations or services provided by the resource 108, input parameters used to perform the operations or services and/or output parameters returned by the resource 108. The resource interface description may then be used by an application or application developer to make use of the services or functionality provided by resource 108. In one embodiment, resource 108 may be a web service and the register 110 may be a UDDI register.
Framework 102 may further be communicatively coupled with one or more policies 112, 114. The owner of resource 108 may define the policies 112, 114 to be applied to communications to use or access resource 108. By way of example, policies 112, 114 may be authorization policies, authentication policies, prioritization policies, or billing (e.g., rating and charging) policies. Policies 112, 114 may be programs, program components, or other type of machine-executable instructions that may have a logical combination of conditions to be satisfied and actions to be executed to enforce policies on communications to resource 108. In one embodiment, policies 112, 114 may be program objects, such as BPEL objects. In an alternative embodiment, policies 112, 114 may be web services. It should be appreciated that any number of policies may be associated with resource 108. In some cases, the policies 112, 114 that are applied may vary depending upon the requester or type of request. It should also be appreciated that policies 112, 114 may also apply to additional resources.
As will be described in further detail below, in one embodiment, communications interface 104 may be used to intercept requests from a requester to obtain a resource interface description. Logic 106 may then be used to obtain the resource interface description. By way of example, logic 106 may obtain resource interface description from register 110, resource 108, a data storage associated with framework 102, or another location. Logic 106 may also be used to determine policies 112, 114 associated with resource 108 and in some instances, policies applicable to the specific requester requesting the resource interface description. Once the applicable policies are determined, parameters associated with the determined policies 112, 114 may also be obtained by logic 106. For instance, the parameters may be obtained by requesting policy interface descriptions from policies 112, 114 or examining the policies 112, 114 to determine the parameters that need to be provided by a requester. Communications interface 104 may then be used to transmit both the resource interface description and the policy parameters to the requester. Thus, framework 102 may be used to provide both the resource interface description and the policy parameters, which may be needed to be provided to resource 108 during use or access of its services.
In another embodiment, framework 102 may provide both the resource interface description and the policy parameters by intercepting a communication from resource 108 to register the resource interface description with register 110. Framework 102 may determine the applicable policies and associated policy parameters. The complete description, including the resource interface description and policy parameters, may then transmitted to the register 110, which may return the complete information upon request by a requester to obtain the resource interface description.
In some cases, framework 102 may also be used to enforce policies 112, 114 to communications to access or use resource 108. Framework 102 may thus be used as a gateway or proxy for resource 108. Further details of policy enforcement may be found in application Ser. No. 11/024,160, entitled “Policies as Workflows”, filed Dec. 27, 2004 , previously incorporated by reference.
In the configuration described above, different components were described as being communicatively coupled to other components. A communicative coupling is a coupling that allows communication between the components. This coupling may be by means of a bus, cable, network, wireless mechanism, program code call (e.g., modular or procedural call) or other mechanism that allows communication between the components. Thus, it should be appreciated that communications interface 104, logic 106, resource 108, register 110 and policies 112, 114, may reside on the same or different physical devices and may be components of one or more program applications. It should be also appreciated that system 100 may contain additional or fewer components that that described in FIG. 1. For instance, additional resources may be communicatively coupled with framework 102. As another example, the system 100 may not include register 110. In these embodiments, the resource interface description may be obtained from resource 108 or other component.
FIG. 2 illustrates one embodiment of a computer system 500 upon which a framework 102 may be implemented. The computer system 200 is shown comprising hardware elements that may be electrically coupled via a bus 255. The hardware elements may include one or more central processing units (CPUs) 205; one or more input devices 210 (e.g., a mouse, a keyboard, etc.); and one or more output devices 215 (e.g., a display device, a printer, etc.). The computer system 200 may also include one or more storage device 220. By way of example, storage device(s) 220 may be disk drives, optical storage devices, solid-state storage device such as a random access memory (“RAM”) and/or a read-only memory (“ROM”), which can be programmable, flash-updateable and/or the like.
The computer system 200 may additionally include a computer-readable storage media reader 225; a communications system 230 (e.g., a modem, a network card (wireless or wired), an infra-red communication device, etc.); and working memory 240, which may include RAM and ROM devices as described above. In some embodiments, the computer system 200 may also include a processing acceleration unit 235 , which can include a DSP, a special-purpose processor and/or the like.
The computer-readable storage media reader 225 can further be connected to a computer-readable storage medium, together (and, optionally, in combination with storage device(s) 220) comprehensively representing remote, local, fixed, and/or removable storage devices plus storage media for temporarily and/or more permanently containing computer-readable information. The communications system 230 may permit data to be exchanged with a network and/or any other computer.
The computer system 200 may also comprise software elements, shown as being currently located within a working memory 240, including an operating system 245 and/or other code 250, such as an application program. The application programs may implement a framework, components of a framework, and/or the methods of the invention. It should be appreciate that alternate embodiments of a computer system 200 may have numerous variations from that described above. For example, customized hardware might also be used and/or particular elements might be implemented in hardware, software (including portable software, such as applets), or both. Further, connection to other computing devices such as network input/output devices may be employed.
FIG. 3 illustrates an exemplary method that may be used by a framework to provide policy parameters and resource interface descriptions to a requester. A framework (e.g., gateway or proxy) may intercept 302 a request for a resource interface description. In one embodiment, the request may be a web services discovery request. Other types of resource interface descriptions may also be intercepted 302.
The framework may then obtain 304 the resource interface description. For example, the resource interface description may be obtained 304 from a register associated with the resource, such as a Universal Description Discovery and Integration (UDDI) register. Alternatively, the framework may obtain 304 the resource interface description from the resource, a data storage associated with the framework, or other location.
One or more policies associated with the resource may then be determined 306. The determined policies may be policies that are enforced on communications to use or access the resource. For example, the policy may be an authentication policy that may require a parameter, such as a token or certificate or other type of authentication credential, to authenticate a user. As another example, the policy may be a billing policy that may need parameters (e.g., requester id, communication type, or account information) to determine how a user is charged for use of services provided by the resource. Other types of policies (e.g., authorization, prioritization, etc.), which may have been specified by the resource to enforce on communications to the resource, may also be determined 306 to be associated with the resource and/or specific requester.
A variety of methods may be used to determine 306 the associated policies. For instances, a data storage may be consulted to determine policies associated with the resource. Optionally, the data storage may also indicate requesters to which the policies are applicable. In another embodiment, a policy specified by the resource to be applied to discovery messages may be invoked. The invoked discovery message policy may then be used to determine 306 associated policies and policy parameters 308 for the determined policies. Other methods may also be used to determine 306 policies associated with resource 306.
For each of the policies determined 306 to be associated with the resource (and optionally, the requester), one or more policy parameters associated with the determined policy may be determined 308. The policy parameters may be parameters used by the policy to enforce the policy. By way of example, the policy parameters may be determined 308 by requesting and obtaining policy interface descriptions from the respective policy. Alternatively, the policy parameters may be obtained from a policy register, a data storage associated with the framework, or other location.
The complete interface description describing parameters used to process communications to the resource, including both the resource interface description and the policy parameters, may then be transmitted 312 to the requester. In one embodiment, the resource interface description and policy parameters may be transmitted 312 by passing the original interface description and a description of the policy parameters relative to the interface description. In some cases, the descriptions may be transmitted 312 as separate messages. Alternatively, the descriptions may be transmitted 312 in one message (e.g., a web services discovery response message). Thus, the framework may modify the obtained 304 resource interface description to include the policy parameters or create a new message with the combined information to create an updated interface description. In some aspects, the policy parameters may be transmitted in a message header (e.g., a SOAP message header) and the resource interface description may be transmitted in the message body (e.g., the SOAP message body). Alternative methods of transmitting 312 the resource interface description and policy parameters may also be used.
It should be appreciated that a number of variations may be made to the method described above to provide a complete interface description to a requester. In one embodiment, the request for the resource interface description may be sent to the register for satisfaction and the framework may be used to transmit the policy parameters. Other variations are also contemplated.
FIG. 4 is a flow diagram illustrating an exemplary method that may be used to include policy parameters in a resource interface description. The framework may intercept 402 a communication from a resource to register its resource description with a register associated with the resource. By way of example, the resource may be a web service and the register may be a UDDI register.
As described with reference to FIG. 3, the framework may then use any of a variety of methods to determine 404 policies associated with the resource and to determine 406 policy parameters associated with each of the determined policies. The policy parameters may then be added 408 to the resource interface description and the register message may be transmitted 410 to the register. For instances, the policy parameters may be added to a header of a SOAP message transmitted to the register. Alternatively, the policy parameters may not be added 408, but instead a separate communication with the policy parameters may be created or an additional communication may be sent to the register.
In the embodiment described above, the policy parameters were included in the resource interface description stored in a register associated with the resource. In some embodiments, if the policy parameters change, the framework may update the register with the changes. Similarly, the framework may also update the register if the policies specified by the resource change.
FIG. 5 illustrates an exemplary method that may be used to enforce policies on a communication to a resource. The policies may be enforced by a framework, such as framework 102, or other type of gateway or proxy to a resource. The method may begin by receiving 502 a communication, such as a SOAP message.
A determination 504 may then be made whether all the policy parameters to be invoked on the communication have been provided. The determination 504 may be made by consulting information indicating the policies to invoke and the parameters needed to invoke the respective policy. Alternatively, the determination 504 may be made separately before invoking 506 the policy or the determination 504 may be made upon receipt of an error message from an invoked 506 policy.
If the communication is missing any policy parameters, the framework may transmit 508 an error in response to the communication. In an alternate embodiment, if any of the policy parameters are missing, the framework or policy may transmit a communication to the requester requesting the missing policy parameter. As another alternative, the framework may transmit a policy interface description describing the policy parameters for the policies missing parameters (and optionally, additional policies to be invoked 506) or may transmit a complete resource interface description using a method similar to that described in FIG. 1.
If there are no required policy parameters missing, a policy to be enforced on the communication is then invoked 504. By way of example, policy may be invoked 504 by making a program call to a function, object, or other program. In one embodiment, the policy may be a BPEL policy which is invoked by executing a statement in the format<invoke policy=“policy id”>. Parameters may also be specified in the invocation call. In another embodiment, the policy may be a web services.
Other policies 506 may also be enforced against the communication. For example, policies may be applied to authenticate a user or to authorize a user to access a service. These additional policies are also invoked 504. In some embodiments, policies may be invoked simultaneously, such as by execution as part of a BPEL flow. Policies may also be invoked sequentially. As previously described, before invoking additional policies, a determination 504 may be made for the respective policy on whether there are any parameters that are needed to enforce the policy.
The invoked policies may return a result indicating whether the policy completed successfully. The result is examined to determine whether the policy is validated 508. If all the policies complete successfully, the policies are validated ant the communication may be transmitted 510 to the billable resource. If not, a denial of the communication request may be transmitted 512 to the communication initiator. In some embodiments, an attempt to recover from a failed validation may be performed first. For instances, program code specified in a fault handler may be executed. By way of example, the program code may perform actions to obtain additional funds from the communication initiator if the billing policy failed because of insufficient funds. Other types of error recovery may also be performed. In some instances, a later sequenced policy may not be invoked if a prior policy did not complete successfully. Thus, if any critical policies fail to be validated, processing may continue at block 512 without invoking any additional policies.
FIG. 6 illustrates an exemplary flow diagram of enforcing policies on a communication. Policy enforcement may be done by framework 102 or a different framework. A communication, such as a web services message (e.g., a SOAP message) is received. The communication may be received or intercepted from a client requesting access to a billable resource. A workflow engine, script interpreter, or other type of logic in an execution environment, enforces a variety of different types of policies 602, 604, 606, 608, 612 on the communication by invoking the policies. For instance, a BPEL workflow engine may be used to invoke policies as part of a commands in an execution flow or sequence.
As shown in FIG. 6, logic responsible for processing the communication (e.g., a workflow engine at a gateway or proxy to resource 610) may first invoke a token authorization policy 602 and a certificate policy 604 to authenticate the requester. Appropriate parameters may be passed to the policy by the logic as part of the invocation. For instance, the token policy may be passed a token as a parameter. The authentication policies 602, 604 may then each evaluate one or more conditions and/or execute one or more actions to authenticate the user. An indication may then be returned to the logic by each of the policies 602, 604 whether the respective policy 602, 604 evaluation (execution) completed successfully. As illustrated in FIG. 3, the token authorization policy 602 and the certificate policy 604 may at least partially execute simultaneously. By way of example, the policies 602, 604 may be invoked as part of a BPEL flow.
If both of the authentication policies complete successfully, the policies are validated. Additional policies 606, 608, 612 may then be applied to the communication. For example an access control policy 606 may be invoked to authorize the requester to access a service provided by resource 610. If the authorization policy completes successfully, it is validated. A rating policy 608 may then be invoked to evaluate conditions and execute actions to bill appropriately for the communication. For example, the rating policy 608 may include conditions and actions to determine the requester is associated with an account in good standing, to determine the rate to apply to the communication request, and to reserve a billing amount for the communication. Other conditions and actions may also be included in the rating policy 608.
Upon validation of the rating policy 608, the communication may be passed to resource 610. Resource 610 may then process the communication to satisfy the request for access or services. At some point, the billable resource 610 may issue a confirmation to commit the billing transaction which may have been initiated by the rating policy 608. Charging policy 612 may then be invoked to evaluate conditions and execute actions to commit the billing transaction.
It should be appreciated that the policies illustrated in FIG. 6 are exemplary in nature. In alternate embodiments, additional, different or fewer policies may be applied to a communication to fulfill the policy requirements for resource 610. As one example of a variation, the rating policy 608 may not make a reservation of a billing amount, but may instead create a final billing record for the communication. As another example, resource 610 may issue requests to increase the reserved billing amount during the processing of the communication. These requests may be processed by logic by invoking rating policy 608 a second time or invoking another appropriate billing policy.
In FIG. 6, the policies 602, 604, 606, 608, 612 all executed successfully and were validated. In some embodiments, in the event a policy does not execute successfully, error recovery may be applied. For example, a BPEL fault handler may specify actions that occur if a policy 602, 604, 606, 608, 612 does not execute successfully.
In the foregoing description, for the purposes of illustration, methods were described in a particular order. It should be appreciated that in alternate embodiments, the methods may be performed in a different order than that described. Additionally, the methods may contain additional or fewer steps than described above. It should also be appreciated that the methods described above may be performed by hardware components or may be embodied in sequences of machine-executable instructions, which may be used to cause a machine, such as a general-purpose or special-purpose processor or logic circuits programmed with the instructions, to perform the methods. These machine-executable instructions may be stored on one or more machine readable mediums, such as CD-ROMs or other type of optical disks, floppy diskettes, ROMs, RAMs, EPROMs, EEPROMs, magnetic or optical cards, flash memory, or other types of machine-readable mediums suitable for storing electronic instructions. Alternatively, the methods may be performed by a combination of hardware and software.
While illustrative and presently preferred embodiments of the invention have been described in detail herein, it is to be understood that the inventive concepts may be otherwise variously embodied and employed, and that the appended claims are intended to be construed to include such variations, except as limited by the prior art.

## Claims

1. A method comprising:
intercepting, at a communication interface of a framework, a communication from a web services provider to register a web service interface description with a register;
obtaining, at the framework, the web service interface description;
determining, at the framework, at least one policy associated with the web services provider;
for each of the determined policies, determining, at the framework, one or more policy parameters associated with the respective policy;
generating, via the communications interface of the framework, an update to the web service interface description as a result of enforcement of the at least one policy;
determining, at runtime by the communications interface of the framework, changes to be made to the web service interface description based on the update;
updating the web service interface description by adding the one or more policy parameters to the web service interface description, wherein the one or more policy parameters are configured to enforce resource access for the web service interface; and
transmitting, from the communication interface of the framework to the register, the updated web service interface description and the policy parameters, wherein the transmitting the updated web service interface description and the policy parameters comprises:
modifying the updated web service interface description to include the policy parameters, wherein modifying the updated web service interface description comprises modifying a web services discover response to include the policy parameters, and wherein the modifying of the web services discover response comprises adding the policy parameters to a header of the web services discover response; and
transmitting the modified updated web service interface description to a requester.

2. The method of claim 1, wherein determining one or more policy parameters comprises determining one or more policy parameters used by an authentication policy associated with the web services provider.

3. The method of claim 1, wherein determining one or more policy parameters comprises determining one or more policy parameters used by a billing policy associated with the web services provider.

4. The method of claim 1, wherein determining the one or more policy parameters comprises determining one or more policy parameters used by a prioritization policy associated with the web services provider.

5. A system for applying policies to requests to register a web services provider, comprising:
a processor;
a communication interface configured to intercept a communication from the web services provider to register a web service interface description with a register; and
memory including instructions that, when executed by the processor, provide logic to obtain the web service interface description, determine at least one policy associated with the web services provider, to determine one or more policy parameters associated with each of the determined policies, to generate an update to the web service interface description as a result of enforcement of the at least one policy, to determine, at runtime changes to be made to the web service interface description based on the update, and to update the web service interface description by adding the one or more policy parameters to the web service interface description, wherein the one or more policy parameters are configured to enforce resource access for the web service interface,
wherein the communications interface is further configured to transmit the updated web service interface description and the policy parameters to the register, and wherein the transmitting the updated web service interface description and the policy parameters comprises:
modifying the updated web service interface description to include the policy parameters, wherein modifying the updated web service interface description comprises modifying a web services discover response to include the policy parameters, and wherein the modifying of the web services discover response comprises adding the policy parameters to a header of the web services discover response; and
transmitting the modified updated web service interface description to a requester.

6. The system of claim 5, further comprising the at least one policy, communicatively coupled with the logic, and wherein the logic determines the policy parameters by obtaining the policy parameters from the at least one policy.

7. The system of claim 5, further comprising a register associated with the web services provider, the logic to obtain the web services provider description from the register.

8. A non-transitory computer-readable medium having sets of instructions stored thereon which, when executed by a computer, cause the computer to:
intercept, at a communication interface of a framework, a communication from a web services provider to register a web service interface description with a register; obtain, at the framework, the web service interface description; determine, at the framework, at least one policy associated with the web services provider;
for each of the determined policies, determine, at the framework, one or more policy parameters associated with the respective policy;
generate, via the communications interface of the framework, an update to the web service interface description as a result of enforcement of the at least one policy;
determine, at runtime by the communications interface of the framework, changes to be made to the web service interface description based on the update;
update the web service interface description by adding the one or more policy parameters to the web service interface description, wherein the one or more policy parameters are configured to enforce resource access for the web service interface; and
transmit, from the communication interface of the framework to the register, the updated web service interface description and the policy parameters, wherein the transmitting the updated web service interface description and the policy parameters comprises:
modifying the updated web service interface description to include the policy parameters, wherein modifying the updated web service interface description comprises modifying a web services discover response to include the policy parameters, and wherein the modifying of the web services discover response comprises adding the policy parameters to a header of the web services discover response; and
transmitting the modified updated web service interface description to a requester.