| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| protected EnvelopedDataHelper | |
| protected Map | |
| protected EnvelopedDataHelper | |
| private final byte[] | |
| private PrivateKey | |
| protected boolean | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Key | extractSecretKey(AlgorithmIdentifier keyEncryptionAlgorithm, AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedEncryptionKey)
|
| protected static byte[] | |
| public JceKTSKeyTransRecipient | Returns: the current Recipient.OID of algorithm in recipient. algorithm, String JCE algorithm name to use. algorithmName)Internally algorithm ids are converted into cipher names using a lookup table. |
| public JceKTSKeyTransRecipient | Returns: this recipient.the provider to use. provider)Set the provider to use for content processing. |
| public JceKTSKeyTransRecipient | Returns: this recipient.the name of the provider to use. providerName)Set the provider to use for content processing. |
| public JceKTSKeyTransRecipient | Returns: this recipient.true if unwrapped key's should be validated against the content encryption algorithm, false otherwise. doValidate)Set validation of retrieved key sizes against the algorithm parameters for the encrypted key where possible - default is off. |
| public JceKTSKeyTransRecipient | Returns: this recipient.provider to use. provider)Set the provider to use for key recovery and content processing. |
| public JceKTSKeyTransRecipient | Returns: this recipient.the name of the provider to use. providerName)Set the provider to use for key recovery and content processing. |
| ANONYMOUS_SENDER | back to summary |
|---|---|
| private static final byte[] ANONYMOUS_SENDER | |
| contentHelper | back to summary |
|---|---|
| protected EnvelopedDataHelper contentHelper | |
| extraMappings | back to summary |
|---|---|
| protected Map<K, V> extraMappings | |
| helper | back to summary |
|---|---|
| protected EnvelopedDataHelper helper | |
| partyVInfo | back to summary |
|---|---|
| private final byte[] partyVInfo | |
| recipientKey | back to summary |
|---|---|
| private PrivateKey recipientKey | |
| unwrappedKeyMustBeEncodable | back to summary |
|---|---|
| protected boolean unwrappedKeyMustBeEncodable | |
| validateKeySize | back to summary |
|---|---|
| protected boolean validateKeySize | |
| JceKTSKeyTransRecipient | back to summary |
|---|---|
| public JceKTSKeyTransRecipient(PrivateKey recipientKey, byte[] partyVInfo) | |
| extractSecretKey | back to summary |
|---|---|
| protected Key extractSecretKey(AlgorithmIdentifier keyEncryptionAlgorithm, AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedEncryptionKey) throws CMSException | |
| getPartyVInfoFromRID | back to summary |
|---|---|
| protected static byte[] getPartyVInfoFromRID(KeyTransRecipientId recipientId) throws IOException | |
| setAlgorithmMapping | back to summary |
|---|---|
| public JceKTSKeyTransRecipient setAlgorithmMapping(ASN1ObjectIdentifier algorithm, String algorithmName) Internally algorithm ids are converted into cipher names using a lookup table. For some providers the standard lookup table won't work. Use this method to establish a specific mapping from an algorithm identifier to a specific algorithm. For example:
unwrapper.setAlgorithmMapping(PKCSObjectIdentifiers.rsaEncryption, "RSA");
| |
| setContentProvider | back to summary |
|---|---|
| public JceKTSKeyTransRecipient setContentProvider(Provider provider) Set the provider to use for content processing. If providerName is null a "no provider" search will be used to satisfy getInstance calls.
| |
| setContentProvider | back to summary |
|---|---|
| public JceKTSKeyTransRecipient setContentProvider(String providerName) Set the provider to use for content processing. If providerName is null a "no provider" search will be used to satisfy getInstance calls.
| |
| setKeySizeValidation | back to summary |
|---|---|
| public JceKTSKeyTransRecipient setKeySizeValidation(boolean doValidate) Set validation of retrieved key sizes against the algorithm parameters for the encrypted key where possible - default is off. This setting will not have any affect if the encryption algorithm in the recipient does not specify a particular key size, or if the unwrapper is a HSM and the byte encoding of the unwrapped secret key is not available.
| |
| setProvider | back to summary |
|---|---|
| public JceKTSKeyTransRecipient setProvider(Provider provider) Set the provider to use for key recovery and content processing.
| |
| setProvider | back to summary |
|---|---|
| public JceKTSKeyTransRecipient setProvider(String providerName) Set the provider to use for key recovery and content processing.
| |