# US 2006/0041636 A1 · Policy processing model

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2006/0041636 A1
- Document ID: US20060041636A1
- Status: Published application
- Kind: A1
- Application number: 10/892,007
- Filed: 2004-07-14
- Published: 2006-02-23
- Earliest claimed: 2004-07-14
- Assignees: Microsoft Corporation
- Inventors: Keith Ballinger; Hervey Wilson; Vick Mukherjee
- Web page: https://patentgrep.com/patent/US20060041636A1

## CPC

- H04L 67/51: Discovery or management thereof, e.g. service location protocol [SLP] or web services
- H04L 67/56: Provisioning of proxy services (store-and-forward switching systems in data switching networks H04L12/54)
- H04L 67/5682: Policies or rules for updating, deleting or replacing the stored data
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Example embodiments provide for processing policies that include policy assertions associated with incoming or outgoing messages of an application in a distributed system, without having to have code within the application for executing the policy assertions. When a message is received by a Web service engine, a policy document associated with an application may be accessed for identifying objects corresponding to policy assertions within the policy document. The objects identified can then be used to generate assertion handlers, which are software entities that include executable code configured to determine if messages can satisfy requirements described by the policy assertions.

## Claims

### Claim 1

In a Web services environment for exchanging messages in a distributed system, a method of processing policies that include one or more policy assertions associated with incoming or outgoing messages of an application, without having to have code within the application for executing the one or more policy assertions, the method comprising acts of:
receiving a message at a Web service engine associated with an application that is external to the Web service engine, the application configured to exchange messages in a distributed system;
accessing a policy document associated with the application for identifying one or more objects corresponding to one or more policy assertions; and
based on one or more objects identified in the policy document, generating one or more assertion handlers, which are software entities that include executable code configured to determine if the received message can satisfy requirements described by the one or more policy assertions.

### Claim 2 (depends on 1)

The method of claim 1, wherein the policy document includes one or more policy identifiers for pointing to the one or more objects.

### Claim 3 (depends on 1)

The method of claim 1, wherein a plurality of assertion handlers are generated based on a plurality of objects identified in the policy document, and wherein a plurality of assertion handlers are configured in series to determine if the received message satisfies the requirements described by a plurality of policy assertions corresponding to the plurality of objects.

### Claim 4 (depends on 3)

The method of claim 3, wherein the received message is an outgoing message and one or more of the plurality of assertion handlers is evaluated to determine if the message can be changed to meet the requirements, and wherein those assertion handlers that are determined to be configured to change the message are formatted to form a compiled policy for changing the received message to meet the requirements.

### Claim 5 (depends on 4)

The method of claim 4, wherein the compiled policy is stored for applying to messages with a similar endpoint destination and message types.

### Claim 6 (depends on 5)

The method of claim 5, wherein one or more of the assertion handlers determined to be configured to change the received message are no longer capable of changing the message to conform to the requirements described by corresponding policy assertions, and wherein an error is returned to the application.

### Claim 7 (depends on 6)

The method of claim 6, wherein one or more of the plurality of assertion handlers is evaluated to see if the message can be changed to meet the requirements, and wherein those assertion handlers that are determined to be configured to change the message are formatted to form a second compiled policy for changing the received message to meet the requirements.

### Claim 8 (depends on 1)

The method of claim 1, further comprising the act of:
determining if the message is either outgoing or incoming from the application; and
based on the determination, validating or enforcing one or more policy assertions by processing the received message through the corresponding one or more assertion handlers.

### Claim 9 (depends on 1)

The method of claim 1, wherein the one or more policy assertions are security policies that provide one or more of security token propagation, message integrity and message confidentiality through one or more of a signature, encryption, token, and username/password credentials.

### Claim 10 (depends on 1)

The method of claim 1, wherein the one or more policy assertions are one or more of a message age requirement that specifies the acceptable time period the received message should be received by or a visibility requirement that specifies one or more portions of the received message be able to be processed by an intermediary or endpoint.

### Claim 11 (depends on 1)

The method of claim 1, wherein at least one of the one or more objects is within the policy document and is application specific to policies defined by a developer of the application.

### Claim 12 (depends on 1)

The method of claim 1, wherein the Web service engine receives messages, validates and enforces policies for a plurality of applications.

### Claim 13 (depends on 1)

The method of claim 1, wherein the policy document is one or more of an extensible Markup Language (XML) WS-Policy or WS-Security document.

### Claim 14

In a Web services environment for exchanging messages in a distributed system, a method of processing policies that includes a plurality of policy assertions that make up one or more policy expressions associated with incoming or outgoing messages of an application, without having to have code within the application for executing the one or more policy expressions, the method comprising acts of:
receiving a message at a Web service engine associated with an application that is external to the web service engine, the application configured to exchange messages in a distributed system;
accessing a policy document associated with the application for identifying a plurality of objects corresponding to a plurality of policy assertions, the policy assertions combined using one or more logical operators to form a policy expression; and
based on information associated with the plurality of objects identified in the policy document, generating a policy model using one or more assertion handlers, which are software entities that include executable code configured to determine if the received message can satisfy the requirements described by the policy expression.

### Claim 15 (depends on 14)

The method of claim 14, wherein the one or more logical operators are one or more of a usage qualifier, policy operator or policy preference.

### Claim 16 (depends on 14)

The method of claim 14, wherein the policy document includes policy identifiers for pointing to the plurality of objects.

### Claim 17 (depends on 14)

The method of claim 14, wherein the received message is an outgoing message and the policy document includes a plurality of policy expressions combined by one or more policy operators, and wherein at least one assertion handler for at least one of the plurality of policy expressions is evaluated to determine if the message can be changed to meet the requirements of the corresponding policy expression, and wherein one or more of those assertion handlers that are determined to be configured to change the message are formatted to form a compiled policy from the policy model for changing the received message to meet the requirements described by the policy expressions.

### Claim 18 (depends on 17)

The method of claim 17, wherein the compiled policy is stored for applying to messages with similar message types and endpoint destination.

### Claim 19 (depends on 18)

The method of claim 18, wherein one or more of the assertion handlers determined to be configured to change the received message are no longer capable of changing the message to conform to the requirements described by corresponding policy assertions, and wherein an error is returned to the application.

### Claim 20 (depends on 19)

The method of claim 19, wherein one or more of the plurality of assertion handlers is evaluated to see if the message can be changed to meet the requirements, and wherein those assertion handlers that are determined to be configured to change the message are formatted to form a second compiled policy from the policy model for changing the received message to meet the requirements.

### Claim 21 (depends on 14)

The method of claim 14, further comprising the act of:
determining if the message is either outgoing or incoming from the application; and
based on the determination, validating or enforcing the policy expression by processing the received message through the corresponding one or more assertion handlers.

### Claim 22 (depends on 14)

The method of claim 14, wherein the one or more policy assertions are security policies that provide one or more of security token propagation, message integrity and message confidentiality through one or more of a signature, encryption, token, and username/password credentials.

### Claim 23 (depends on 14)

The method of claim 14, wherein the one or more policy assertions are one or more of a message age requirement that specifies the acceptable time period the received message should be received by or a visibility requirement that specifies one or more portions of the received message be able to be processed by an intermediary or endpoint.

### Claim 24 (depends on 14)

The method of claim 14, wherein at least one of the one or more objects is within the policy document and is application specific to policies defined by a developer of the application.

### Claim 25 (depends on 14)

The method of claim 14, wherein the Web service engine receives messages, validates and enforces policies for a plurality of applications.

### Claim 26 (depends on 14)

The method of claim 14, wherein the policy document is one or more of an extensible Markup Language (XML) WS-Policy or WS-Security document.

### Claim 27

In a Web services environment for exchanging messages in a distributed system, a computer program product for implementing a method of processing policies that include one or more policy assertions associated with incoming or outgoing messages of an application, without having to have code within the application for executing the one or more policy assertions, the computer program product comprising one or more computer readable media having stored thereon computer executable instructions that, when executed by a processor, can cause the distributed computing system to perform the following:
receive a message at a Web service engine associated with an application that is external to the Web service engine, the application configured to exchange messages in a distributed system;
access a policy document associated with the application for identifying one or more objects corresponding to one or more policy assertions; and
based on one or more objects identified in the policy document, generate one or more assertion handlers, which are software entities that include executable code configured to determine if the received message can satisfy requirements described by the one or more policy assertions.

### Claim 28 (depends on 27)

The computer program product of claim 27, wherein the policy document includes one or more policy identifiers for pointing to the one or more objects.

### Claim 29 (depends on 27)

The computer program product of claim 27, further comprising computer executable instructions that can cause the distributed computing system to perform the following:
determine if the message is either outgoing or incoming from the application; and
based on the determination, validate or enforcing one or more policy assertions by processing the received message through the corresponding one or more assertion handlers.

### Claim 30 (depends on 27)

The computer program product of claim 27, wherein at least one of the one or more objects is within the policy document and is application specific to policies defined by a developer of the application.

### Claim 31 (depends on 27)

The computer program product of claim 27, wherein the Web service engine receives messages, validates and enforces policies for a plurality of applications.

### Claim 32

In a Web services environment for exchanging messages in a distributed system, a computer program product for implementing a method of processing policies that includes a plurality of policy assertions that make up one or more policy expressions associated with incoming or outgoing messages of an application, without having to have code within the application for executing the one or more policy expressions, the computer program product comprising one or more computer readable media having stored thereon computer executable instructions that, when executed by a processor, can cause the distributed computing system to perform the following:
receive a message at a Web service engine associated with an application that is external to the web service engine, the application configured to exchange messages in a distributed system;
access a policy document associated with the application for identifying a plurality of objects corresponding to a plurality of policy assertions, the policy assertions combined using one or more logical operators to form a policy expression; and
based on information associated with the plurality of objects identified in the policy document, generate a policy model using one or more assertion handlers, which are software entities that include executable code configured to determine if the received message can satisfy the requirements described by the policy expression.

### Claim 33 (depends on 32)

The computer program product of claim 32, wherein the one or more logical operators are one or more of a usage qualifier, policy operator or policy preference.

### Claim 34 (depends on 32)

The computer program product of claim 32, wherein the policy document includes policy identifiers for pointing to the plurality of objects.

### Claim 35 (depends on 32)

The computer program product of claim 32, further comprising computer executable instructions that can cause the distributed computing system to perform the following:
determine if the message is either outgoing or incoming from the application; and
based on the determination, validate or enforcing the policy expression by processing the received message through the corresponding one or more assertion handlers.

### Claim 36 (depends on 32)

The computer program product of claim 32, wherein at least one of the one or more objects is within the policy document and is application specific to policies defined by a developer of the application.

### Claim 37 (depends on 32)

The computer program product of claim 32, wherein the Web service engine receives messages, validates and enforces policies for a plurality of applications.
