public class JceKeyTransRecipientInfoGenerator extends KeyTransRecipientInfoGenerator
wrapper
Constructor and Description |
---|
JceKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier,
java.security.PublicKey publicKey) |
JceKeyTransRecipientInfoGenerator(java.security.cert.X509Certificate recipientCert) |
Modifier and Type | Method and Description |
---|---|
JceKeyTransRecipientInfoGenerator |
setAlgorithmMapping(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm,
java.lang.String algorithmName)
Internally algorithm ids are converted into cipher names using a lookup table.
|
JceKeyTransRecipientInfoGenerator |
setProvider(java.security.Provider provider) |
JceKeyTransRecipientInfoGenerator |
setProvider(java.lang.String providerName) |
generate
public JceKeyTransRecipientInfoGenerator(java.security.cert.X509Certificate recipientCert) throws java.security.cert.CertificateEncodingException
java.security.cert.CertificateEncodingException
public JceKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier, java.security.PublicKey publicKey)
public JceKeyTransRecipientInfoGenerator setProvider(java.lang.String providerName)
public JceKeyTransRecipientInfoGenerator setProvider(java.security.Provider provider)
public JceKeyTransRecipientInfoGenerator setAlgorithmMapping(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, java.lang.String algorithmName)
For example:
unwrapper.setAlgorithmMapping(PKCSObjectIdentifiers.rsaEncryption, "RSA");
algorithm
- OID of algorithm in recipient.algorithmName
- JCE algorithm name to use.