Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pg/src/main/java/org/spongycastle/openpgp/PGPKeyFlags.java')
-rw-r--r--pg/src/main/java/org/spongycastle/openpgp/PGPKeyFlags.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/pg/src/main/java/org/spongycastle/openpgp/PGPKeyFlags.java b/pg/src/main/java/org/spongycastle/openpgp/PGPKeyFlags.java
new file mode 100644
index 00000000..2c169126
--- /dev/null
+++ b/pg/src/main/java/org/spongycastle/openpgp/PGPKeyFlags.java
@@ -0,0 +1,19 @@
+package org.spongycastle.openpgp;
+
+/**
+ * key flag values for the KeyFlags subpacket.
+ */
+public interface PGPKeyFlags
+{
+ public static final int CAN_CERTIFY = 0x01; // This key may be used to certify other keys.
+
+ public static final int CAN_SIGN = 0x02; // This key may be used to sign data.
+
+ public static final int CAN_ENCRYPT_COMMS = 0x04; // This key may be used to encrypt communications.
+
+ public static final int CAN_ENCRYPT_STORAGE = 0x08; // This key may be used to encrypt storage.
+
+ public static final int MAYBE_SPLIT = 0x10; // The private component of this key may have been split by a secret-sharing mechanism.
+
+ public static final int MAYBE_SHARED = 0x80; // The private component of this key may be in the possession of more than one person.
+}