# US 2020/0287877 A1 · Policy based message cryptographic expiry

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

- Number: US 2020/0287877 A1
- Document ID: US20200287877A1
- Status: Published application
- Kind: A1
- Application number: 16/841,314
- Filed: 2020-04-06
- Published: 2020-09-10
- Earliest claimed: 2015-07-09
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jonathan L. Rumsey
- Web page: https://patentgrep.com/patent/US20200287877A1

## CPC

- H04L 63/0435: {wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption (cryptographic mechanisms or cryptographic arrangements for symmetric key encryption H04L9/06)}
- H04L 9/3268: {using certificate validation, registration, distribution or revocation, e.g. certificate revocation list [CRL]}
- H04L 41/0806: for initial configuration or provisioning, e.g. plug-and-play
- H04L 51/18: Commands or executable codes
- H04L 51/212: using filtering or selective blocking
- H04L 63/20: {for managing network security; network security policies in general (filtering policies H04L63/0227)}
- H04L 51/214: using selective forwarding
- H04L 63/068: {using time-dependent keys, e.g. periodically changing keys (cryptographic mechanisms or cryptographic arrangements for controlling usage of secret information H04L9/088)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method of managing messages in a messaging system, the method including: identifying a policy associated with the messaging system, the policy including directives associated with the privacy and integrity of messages; applying the policy to a message, the policy including configuration data that determines when the message should be expired; sending the message to the messaging system; using the configuration data to calculate the expiry of the message and passing the calculated expiry of the message to the messaging system; determining whether the expiry has been reached; responsive to the expiry being reached, sending a report message to the message producer; and responsive to the expiry not being reached, attempting to deliver the message to the message consumer.

## Claims

### Claim 1

A computer-implemented method comprising:
publishing, by one or more processors, a message to a location at a message provider, wherein the message was obtained from a message producer;
identifying, by the one or more processors, a policy associated with the message producer of the published message, the policy comprising a directive to calculate an expiry of the message, wherein applying the policy comprises:
accessing the identified configuration data to obtain the directive; and
based on obtaining the directive, calculating a time period in which the published message has not reached the expiry;
obtaining, by the one or more processors, a request from a message consumer for the published message, wherein the message consumer is a subscriber to the location at the message provider;
based on obtaining the request, determining, by the one or more processors, whether the published message has reached the expiry;
based on the expiry of the published message being reached, sending a report message; and
based on the expiry of message not being reached, providing the published message to the message consumer.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
based on the expiry of the published message being reached, deleting, by the one or more processors, the published message from the topic or queue.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the published method is encrypted by the message producer with a pre-shared symmetric key, and wherein the pre-shared symmetric key was shared with the message consumer by the message producer.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the policy comprises a directive to calculate the expiry date of the encrypted message based on a first use of the pre-shared symmetric key, and wherein the directive comprises the first use of the pre-shared symmetric key and the time period from the first use at which the expiry of the encrypted message is reached.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the location at the message provider comprises a queue, and wherein providing the published message to the message consumer comprises:
retrieving, by the one or more processors, the published message from the queue; and
transmitting, by the one or more processors, the published message to the message consumer.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the location at the message provider comprises a topic, and wherein providing the published message to the message consumer comprises:
enabling, by the one or more processors, read access for the message consumer to the published message at the message provider.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein determining whether the published message has reached the expiry comprises:
determining, by the one or more processor, if the request is within the time period; and
determining, by the one or more processors, if a certificate of the message consumer has expired.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein the expiry of the published message was reached based on one or more of: the certificate of the message consumer has expired, or the request was not within the time period.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the report message is sent to a party selected from the group consisting of: the message producer and the message consumer.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the report message is sent to the message producer and the message consumer.

### Claim 11

A system, comprising:
a memory; and
one or more processors in communication with the memory, wherein system is configured to perform a method, the method comprising:
publishing, by the one or more processors, a message to a location at a message provider, wherein the message was obtained from a message producer;
identifying, by the one or more processors, a policy associated with the message producer of the published message, the policy comprising a directive to calculate an expiry of the message, wherein applying the policy comprises:
accessing the identified configuration data to obtain the directive; and
based on obtaining the directive, calculating a time period in which the published message has not reached the expiry;
obtaining, by the one or more processors, a request from a message consumer for the published message, wherein the message consumer is a subscriber to the location at the message provider;
based on obtaining the request, determining, by the one or more processors, whether the published message has reached the expiry;
based on the expiry of the published message being reached, sending a report message; and
based on the expiry of message not being reached, providing the published message to the message consumer.

### Claim 12 (depends on 11)

The system of claim 11, the method further comprising:
based on the expiry of the published message being reached, deleting, by the one or more processors, the published message from the topic or queue.

### Claim 13 (depends on 11)

The system of claim 11, wherein the published method is encrypted by the message producer with a pre-shared symmetric key, and wherein the pre-shared symmetric key was shared with the message consumer by the message producer.

### Claim 14 (depends on 13)

The system of claim 13, wherein the policy comprises a directive to calculate the expiry date of the encrypted message based on a first use of the pre-shared symmetric key, and wherein the directive comprises the first use of the pre-shared symmetric key and the time period from the first use at which the expiry of the encrypted message is reached.

### Claim 15 (depends on 11)

The system of claim 11, wherein the location at the message provider comprises a queue, and wherein providing the published message to the message consumer comprises:
retrieving, by the one or more processors, the published message from the queue; and
transmitting, by the one or more processors, the published message to the message consumer.

### Claim 16 (depends on 11)

The system of claim 11, wherein the location at the message provider comprises a topic, and wherein providing the published message to the message consumer comprises:
enabling, by the one or more processors, read access for the message consumer to the published message at the message provider.

### Claim 17 (depends on 11)

The system of claim 11, wherein determining whether the published message has reached the expiry comprises:
determining, by the one or more processor, if the request is within the time period; and
determining, by the one or more processors, if a certificate of the message consumer has expired.

### Claim 18 (depends on 17)

The system of claim 17, wherein the expiry of the published message was reached based on one or more of: the certificate of the message consumer has expired, or the request was not within the time period.

### Claim 19 (depends on 11)

The system of claim 11, wherein the report message is sent to a party selected from the group consisting of: the message producer and the message consumer.

### Claim 20

A computer program product comprising:
a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to:
publish, by the one or more processors, a message to a location at a message provider, wherein the message was obtained from a message producer;
identify, by the one or more processors, a policy associated with the message producer of the published message, the policy comprising a directive to calculate an expiry of the message, wherein applying the policy comprises:
access the identified configuration data to obtain the directive; and
based on obtaining the directive, calculate a time period in which the published message has not reached the expiry;
obtain, by the one or more processors, a request from a message consumer for the published message, wherein the message consumer is a subscriber to the location at the message provider;
based on obtaining the request, determine, by the one or more processors, whether the published message has reached the expiry;
based on the expiry of the published message being reached, send a report message; and
based on the expiry of message not being reached, provide the published message to the message consumer.
