We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa5b891 commit 3d6d0cdCopy full SHA for 3d6d0cd
pg/src/main/java/org/bouncycastle/openpgp/PGPKeyRing.java
@@ -93,6 +93,16 @@ static void readUserIDs(
93
}
94
95
96
+ /**
97
+ * Return the {@link KeyIdentifier} of this key rings primary key.
98
+ *
99
+ * @return primary key identifier
100
+ */
101
+ public KeyIdentifier getKeyIdentifier()
102
+ {
103
+ return getPublicKey().getKeyIdentifier();
104
+ }
105
+
106
/**
107
* Return the first public key in the ring. In the case of a {@link PGPSecretKeyRing}
108
* this is also the public key of the master key pair.
0 commit comments