public class JceKEMRecipientInfoGenerator extends KEMRecipientInfoGenerator
wrapper
Constructor and Description |
---|
JceKEMRecipientInfoGenerator(byte[] subjectKeyIdentifier,
java.security.PublicKey publicKey,
org.bouncycastle.asn1.ASN1ObjectIdentifier symWrapAlgorithm) |
JceKEMRecipientInfoGenerator(java.security.cert.X509Certificate recipientCert,
org.bouncycastle.asn1.ASN1ObjectIdentifier symWrapAlgorithm) |
Modifier and Type | Method and Description |
---|---|
JceKEMRecipientInfoGenerator |
setAlgorithmMapping(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm,
java.lang.String algorithmName)
Internally algorithm ids are converted into cipher names using a lookup table.
|
JceKEMRecipientInfoGenerator |
setKDF(org.bouncycastle.asn1.x509.AlgorithmIdentifier kdfAlgorithm) |
JceKEMRecipientInfoGenerator |
setProvider(java.security.Provider provider) |
JceKEMRecipientInfoGenerator |
setProvider(java.lang.String providerName) |
JceKEMRecipientInfoGenerator |
setSecureRandom(java.security.SecureRandom random) |
generate
public JceKEMRecipientInfoGenerator(java.security.cert.X509Certificate recipientCert, org.bouncycastle.asn1.ASN1ObjectIdentifier symWrapAlgorithm) throws java.security.cert.CertificateEncodingException
java.security.cert.CertificateEncodingException
public JceKEMRecipientInfoGenerator(byte[] subjectKeyIdentifier, java.security.PublicKey publicKey, org.bouncycastle.asn1.ASN1ObjectIdentifier symWrapAlgorithm)
public JceKEMRecipientInfoGenerator setProvider(java.lang.String providerName)
public JceKEMRecipientInfoGenerator setProvider(java.security.Provider provider)
public JceKEMRecipientInfoGenerator setSecureRandom(java.security.SecureRandom random)
public JceKEMRecipientInfoGenerator setKDF(org.bouncycastle.asn1.x509.AlgorithmIdentifier kdfAlgorithm)
public JceKEMRecipientInfoGenerator 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.