public final class PKCS7Util
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object[] |
getRecipientDecryptionKey(KeyAndCertificateSource keyAndCertificateSource,
RecipientInfo[] recipients)
Finds the user's decryption key that can be used to decrypt a message that
contains the indicated recipient information.
|
static java.lang.Object[] |
getRecipientDecryptionKey(User user,
RecipientInfo[] recipients)
Finds the user's decryption key that can be used to decrypt a message that
contains the indicated recipient information.
|
public static java.lang.Object[] getRecipientDecryptionKey(User user, RecipientInfo[] recipients) throws NotARecipientException, UserNotLoggedInException
The proper key is located based on the issuer DN and serial number in the recipient information; a key with a matching issuer DN and serial number is always searched for.
user - the userrecipients - the recipient information from the encrypted messagePrivateKey and the
index of the matching recipient information as an IntegerNotARecipientException - if the user is not included in the recipient information; not a valid
recipientUserNotLoggedInException - if the user is not logged inpublic static java.lang.Object[] getRecipientDecryptionKey(KeyAndCertificateSource keyAndCertificateSource, RecipientInfo[] recipients) throws NotARecipientException
The proper key is located based on the issuer DN and serial number in the recipient information; a key with a matching issuer DN and serial number is always searched for.
keyAndCertificateSource - a user represented as a key and certificate sourcerecipients - the recipient information from the encrypted messagePrivateKey and the
index of the matching recipient information as an IntegerNotARecipientException - if the user is not included in the recipient information; not a valid
recipient