public class JceKTSKeyTransRecipientInfoGenerator extends KeyTransRecipientInfoGenerator
wrapper
Constructor and Description |
---|
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(byte[] subjectKeyIdentifier,
PublicKey publicKey,
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.
|
JceKTSKeyTransRecipientInfoGenerator(X509Certificate recipientCert,
String symmetricWrappingAlg,
int keySizeInBits) |
Modifier and Type | Method and Description |
---|---|
JceKTSKeyTransRecipientInfoGenerator |
setProvider(Provider provider) |
JceKTSKeyTransRecipientInfoGenerator |
setProvider(String providerName) |
generate
public JceKTSKeyTransRecipientInfoGenerator(X509Certificate recipientCert, String symmetricWrappingAlg, int keySizeInBits) throws CertificateEncodingException
CertificateEncodingException
public JceKTSKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier, PublicKey publicKey, String symmetricWrappingAlg, int keySizeInBits)
public JceKTSKeyTransRecipientInfoGenerator(X509Certificate recipientCert, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier) throws CertificateEncodingException
recipientCert
- certificate carrying the public key.algorithmIdentifier
- the identifier and parameters for the encryption algorithm to be used.CertificateEncodingException
public JceKTSKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier, PublicKey publicKey)
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.public JceKTSKeyTransRecipientInfoGenerator setProvider(String providerName)
public JceKTSKeyTransRecipientInfoGenerator setProvider(Provider provider)
Copyright © 2017 BouncyCastle.org. All rights reserved.