github added method to get Originator info.
@@ -74,6 +74,16 @@ static void readRecipientInfo(List infos, KeyAgreeRecipientInfo info,
this.encryptedKey = encryptedKey;
}
+ /**
+ * Return the originator details for this recipient.
+ *
+ * @return the originator details.
+ */
+ public OriginatorIdentifierOrKey getOriginator()
+ {
+ return this.info.getOriginator();
+ }
+
private SubjectPublicKeyInfo getSenderPublicKeyInfo(AlgorithmIdentifier recKeyAlgId,
OriginatorIdentifierOrKey originator)
throws CMSException, IOException
