Package org.bouncycastle.cms.jcajce
Class JceKTSKeyTransRecipientInfoGenerator
- java.lang.Object
-
- org.bouncycastle.cms.KeyTransRecipientInfoGenerator
-
- org.bouncycastle.cms.jcajce.JceKTSKeyTransRecipientInfoGenerator
-
- All Implemented Interfaces:
RecipientInfoGenerator
public class JceKTSKeyTransRecipientInfoGenerator extends KeyTransRecipientInfoGenerator
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.cms.KeyTransRecipientInfoGenerator
wrapper
-
-
Constructor Summary
Constructors Constructor Description JceKTSKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier, PublicKey publicKey, String symmetricWrappingAlg, int keySizeInBits)
JceKTSKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier, PublicKey publicKey)
Create a generator overriding the algorithm type implied by the public key passed in.JceKTSKeyTransRecipientInfoGenerator(X509Certificate recipientCert, String symmetricWrappingAlg, int keySizeInBits)
JceKTSKeyTransRecipientInfoGenerator(X509Certificate recipientCert, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)
Create a generator overriding the algorithm type implied by the public key in the certificate passed in.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JceKTSKeyTransRecipientInfoGenerator
setProvider(String providerName)
JceKTSKeyTransRecipientInfoGenerator
setProvider(Provider provider)
-
Methods inherited from class org.bouncycastle.cms.KeyTransRecipientInfoGenerator
generate
-
-
-
-
Constructor Detail
-
JceKTSKeyTransRecipientInfoGenerator
public JceKTSKeyTransRecipientInfoGenerator(X509Certificate recipientCert, String symmetricWrappingAlg, int keySizeInBits) throws CertificateEncodingException
- Throws:
CertificateEncodingException
-
JceKTSKeyTransRecipientInfoGenerator
public JceKTSKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier, PublicKey publicKey, String symmetricWrappingAlg, int keySizeInBits)
-
JceKTSKeyTransRecipientInfoGenerator
public JceKTSKeyTransRecipientInfoGenerator(X509Certificate recipientCert, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier) throws CertificateEncodingException
Create a generator overriding the algorithm type implied by the public key in the certificate passed in.- Parameters:
recipientCert
- certificate carrying the public key.algorithmIdentifier
- the identifier and parameters for the encryption algorithm to be used.- Throws:
CertificateEncodingException
-
JceKTSKeyTransRecipientInfoGenerator
public JceKTSKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier, PublicKey publicKey)
Create a generator overriding the algorithm type implied by the public key passed in.- Parameters:
subjectKeyIdentifier
- the subject key identifier value to associate with the public key.algorithmIdentifier
- the identifier and parameters for the encryption algorithm to be used.publicKey
- the public key to use.
-
-
Method Detail
-
setProvider
public JceKTSKeyTransRecipientInfoGenerator setProvider(String providerName)
-
setProvider
public JceKTSKeyTransRecipientInfoGenerator setProvider(Provider provider)
-
-