From 360f2fba024ac3177f070006e8c811086c45e313 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 17 Apr 2023 13:56:43 +0200 Subject: [PATCH] Document SignatureMode --- .../src/main/java/sop/enums/SignatureMode.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sop-java/src/main/java/sop/enums/SignatureMode.java b/sop-java/src/main/java/sop/enums/SignatureMode.java index b41f6ce..71ce7d8 100644 --- a/sop-java/src/main/java/sop/enums/SignatureMode.java +++ b/sop-java/src/main/java/sop/enums/SignatureMode.java @@ -4,7 +4,22 @@ package sop.enums; +/** + * Enum referencing relevant signature types. + * + * @see + * RFC4880 ยง5.2.1 - Signature Types + */ public enum SignatureMode { + /** + * Signature of a binary document (
0x00
). + */ binary, + + /** + * Signature of a canonical text document (
0x01
). + */ text + + // Other Signature Types are irrelevant. }