From 806665058432163168fe9e2dd5884623d1c8409f Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Sun, 24 Mar 2024 11:00:16 +0100 Subject: [PATCH] Add comments --- .../src/main/java/org/pgpainless/sop/SOPImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pgpainless-sop/src/main/java/org/pgpainless/sop/SOPImpl.java b/pgpainless-sop/src/main/java/org/pgpainless/sop/SOPImpl.java index 35a21d79..932175d3 100644 --- a/pgpainless-sop/src/main/java/org/pgpainless/sop/SOPImpl.java +++ b/pgpainless-sop/src/main/java/org/pgpainless/sop/SOPImpl.java @@ -30,6 +30,8 @@ import javax.annotation.Nonnull; *
 {@code
  * SOP sop = new SOPImpl();
  * }
+ * + * For a slimmed down interface that merely focuses on signature verification, see {@link SOPVImpl}. */ public class SOPImpl implements SOP { @@ -37,11 +39,13 @@ public class SOPImpl implements SOP { ArmoredOutputStreamFactory.setVersionInfo(null); } + // Delegate for sig verification operations private final SOPV sopv = new SOPVImpl(); @Override @Nonnull public Version version() { + // Delegate to SOPV return sopv.version(); } @@ -84,12 +88,14 @@ public class SOPImpl implements SOP { @Override @Nonnull public DetachedVerify detachedVerify() { + // Delegate to SOPV return sopv.detachedVerify(); } @Override @Nonnull public InlineVerify inlineVerify() { + // Delegate to SOPV return sopv.inlineVerify(); }