From 2ab1d7a42dec482c837bb60b43c6612d23a06ffe Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 19 Jun 2023 12:24:48 +0200 Subject: [PATCH] Readme: Fix usage of MessageMetada instead of OpenPgpMetadata --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6e5ff27d..4c139bd4 100644 --- a/README.md +++ b/README.md @@ -172,10 +172,10 @@ This behaviour can be modified though using the `Policy` class. decryptionStream.close(); // Result contains information like signature status etc. - OpenPgpMetadata metadata = decryptionStream.getResult(); + MessageMetadata metadata = decryptionStream.getMetadata(); ``` -*After* the `DecryptionStream` was closed, you can get metadata about the processed data by retrieving the `OpenPgpMetadata`. +*After* the `DecryptionStream` was closed, you can get metadata about the processed data by retrieving the `MessageMetadata`. Again, this object will contain information about how the message was encrypted, who signed it and so on. #### Many more examples can be found in the [examples package](pgpainless-core/src/test/java/org/pgpainless/example)!!!