Top Fields Constructors Methods
org.bouncycastle.cms.jcajce

public Class JceKTSKeyTransRecipientInfoGenerator

extends KeyTransRecipientInfoGenerator
Class Inheritance
Imports
java.io.IOException, java.security.Provider, .PublicKey, java.security.cert.CertificateEncodingException, .X509Certificate, org.bouncycastle.asn1.ASN1Encoding, .DEROctetString, org.bouncycastle.asn1.cms.IssuerAndSerialNumber, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.cert.jcajce.JcaX509CertificateHolder, org.bouncycastle.cms.KeyTransRecipientInfoGenerator, org.bouncycastle.operator.jcajce.JceAsymmetricKeyWrapper, .JceKTSKeyWrapper, org.bouncycastle.util.encoders.Hex

Field Summary

Modifier and TypeField and Description
private static final byte[]
Inherited from org.bouncycastle.cms.KeyTransRecipientInfoGenerator:
wrapper

Constructor Summary

AccessConstructor and Description
private
JceKTSKeyTransRecipientInfoGenerator(X509Certificate recipientCert, IssuerAndSerialNumber recipientID, String symmetricWrappingAlg, int keySizeInBits)

public
JceKTSKeyTransRecipientInfoGenerator(X509Certificate recipientCert, String symmetricWrappingAlg, int keySizeInBits)

public
JceKTSKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier, PublicKey publicKey, String symmetricWrappingAlg, int keySizeInBits)

public
JceKTSKeyTransRecipientInfoGenerator(X509Certificate
certificate carrying the public key.
recipientCert
,
AlgorithmIdentifier
the identifier and parameters for the encryption algorithm to be used.
algorithmIdentifier
)

Create a generator overriding the algorithm type implied by the public key in the certificate passed in.

public
JceKTSKeyTransRecipientInfoGenerator(byte[]
the subject key identifier value to associate with the public key.
subjectKeyIdentifier
,
AlgorithmIdentifier
the identifier and parameters for the encryption algorithm to be used.
algorithmIdentifier
,
PublicKey
the public key to use.
publicKey
)

Create a generator overriding the algorithm type implied by the public key passed in.

Method Summary

Modifier and TypeMethod and Description
private static byte[]
private static byte[]
getEncodedSubKeyId(byte[] subjectKeyIdentifier)

public JceKTSKeyTransRecipientInfoGenerator
setProvider(String providerName)

public JceKTSKeyTransRecipientInfoGenerator
Inherited from org.bouncycastle.cms.KeyTransRecipientInfoGenerator:
generate

Field Detail

ANONYMOUS_SENDERback to summary
private static final byte[] ANONYMOUS_SENDER

Constructor Detail

JceKTSKeyTransRecipientInfoGeneratorback to summary
private JceKTSKeyTransRecipientInfoGenerator(X509Certificate recipientCert, IssuerAndSerialNumber recipientID, String symmetricWrappingAlg, int keySizeInBits) throws CertificateEncodingException
JceKTSKeyTransRecipientInfoGeneratorback to summary
public JceKTSKeyTransRecipientInfoGenerator(X509Certificate recipientCert, String symmetricWrappingAlg, int keySizeInBits) throws CertificateEncodingException
JceKTSKeyTransRecipientInfoGeneratorback to summary
public JceKTSKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier, PublicKey publicKey, String symmetricWrappingAlg, int keySizeInBits)
JceKTSKeyTransRecipientInfoGeneratorback to summary
public JceKTSKeyTransRecipientInfoGenerator(X509Certificate recipientCert, AlgorithmIdentifier algorithmIdentifier) throws CertificateEncodingException

Create a generator overriding the algorithm type implied by the public key in the certificate passed in.

Parameters
recipientCert:X509Certificate

certificate carrying the public key.

algorithmIdentifier:AlgorithmIdentifier

the identifier and parameters for the encryption algorithm to be used.

JceKTSKeyTransRecipientInfoGeneratorback to summary
public JceKTSKeyTransRecipientInfoGenerator(byte[] subjectKeyIdentifier, AlgorithmIdentifier algorithmIdentifier, PublicKey publicKey)

Create a generator overriding the algorithm type implied by the public key passed in.

Parameters
subjectKeyIdentifier:byte[]

the subject key identifier value to associate with the public key.

algorithmIdentifier:AlgorithmIdentifier

the identifier and parameters for the encryption algorithm to be used.

publicKey:PublicKey

the public key to use.

Method Detail

getEncodedRecipIDback to summary
private static byte[] getEncodedRecipID(IssuerAndSerialNumber recipientID) throws CertificateEncodingException
getEncodedSubKeyIdback to summary
private static byte[] getEncodedSubKeyId(byte[] subjectKeyIdentifier)
setProviderback to summary
public JceKTSKeyTransRecipientInfoGenerator setProvider(String providerName)
setProviderback to summary
public JceKTSKeyTransRecipientInfoGenerator setProvider(Provider provider)