New Problem for KeyTransEnvelopedDataExample.java
Hi David,
Based on your suggesion, I tried to modify the code for "RecipientId recId = new RecipientId();" using KeyTransRecipientId
I used he following three versions. However, the compiler still complains that no suitable constructor is found. How can I find right argument for KeyTransRecipientId constructor?
thanks
KeyTransRecipientId recId = new KeyTransRecipientId(cert.getPublicKey());
KeyTransRecipientId recId = new KeyTransRecipientId(cert.getIssuerX500Principal(). getName(), cert.getSerialNumber());
KeyTransRecipientId recId = new KeyTransRecipientId(cert.getIssuerX500Principal(). getEncoded(), cert.getSerialNumber());
|