containing class for an CMS Compressed Data object
General class for generating a compressed CMS message.
a holding class for a byte array of data to be enveloped.
containing class for an CMS Enveloped Data object
General class for generating a CMS enveloped-data message.
a holding class for a BodyPart to be processed.
a holding class for a BodyPart to be processed which does CRLF canonicalisation if
dealing with non-binary data.
Create a processable with the default transfer encoding of 7bit
Create a processable with the a default transfer encoding of
the passed in value.
a holding class for a BodyPart to be processed which does CRLF canocicalisation if
dealing with non-binary data.
Create a processable with the default transfer encoding of 7bit
Create a processable with the a default transfer encoding of
the passed in value.
a holding class for a byte array of data to be compressed.
a holding class for a byte array of data to be signed or verified.
general class for handling a pkcs7-signature message.
base constructor - with encapsulated content
general class for generating a pkcs7-signature message.
a simple example that creates a single compressed mail message.
a simple example that creates a single encrypted mail message.
Return a CMS IssuerAndSerialNumber structure for the passed in X.509 certificate.
a simple example that creates a single signed mail message.
a simple example that creates a single signed multipart mail message.
generate an compressed object that contains an SMIME Compressed
object using the given provider from the contents of the passed in
message
generate a signed object that contains an SMIME Signed Multipart
object using the given provider.
generate an enveloped object that contains an SMIME Enveloped
object using the given provider.
generate an enveloped object that contains an SMIME Enveloped
object using the given provider.
generate an compressed object that contains an SMIME Compressed
object using the given provider from the contents of the passed in
message
generate a signed object that contains an SMIME Signed Multipart
object using the given provider from the given MimeMessage
generate an enveloped object that contains an SMIME Enveloped
object using the given provider from the contents of the passed in
message.
generate an enveloped object that contains an SMIME Enveloped
object using the given provider from the contents of the passed in
message
generate a signed object that for a CMS Signed Data
object using the given provider - if encapsulate is true a copy
of the message will be included in the signature with the
default content type "data".
generate an object that contains an CMS Compressed Data
generate a signed object that for a CMS Signed Data
object using the given provider.
generate an enveloped object that contains an CMS Enveloped Data
object using the given provider.
generate an enveloped object that contains an CMS Enveloped Data
object using the given provider.
generate a signed object that for a CMS Signed Data
object using the given provider - if encapsulate is true a copy
of the message will be included in the signature.
Similar method to the other generate methods.
Creates a certificate management message which is like a signed message with no content
or signers but that still carries certificates and CRLs.
generate a signed message with encapsulated content
Note: doing this is strongly
not recommended as it means a
recipient of the message will have to be able to read the signature to read the
message.
generate a signed object that contains an SMIME Signed Multipart
object using the given provider from the given MimeMessage.
return a CertStore containing the certificates and CRLs associated with
this message.
return the content that was signed.
decrypt the content and return it as a byte array.
decrypt the content and return it as a byte array.
Return the content that was signed as a mime message.
return the content that was signed - depending on whether this was
unencapsulated or not it will return a MimeMultipart or a MimeBodyPart
return the object identifier for the signature.
return the signature parameters, or null if there aren't any.
return the ASN.1 encoded representation of this object.
return the ASN.1 encoded representation of this object.
return the ASN.1 encoded representation of this object.
return the object identifier for the content encryption algorithm.
return the object identifier for the signature.
Return an AlgorithmParameters object giving the encryption parameters
used to encrypt the message content.
return the ASN.1 encoded encryption algorithm parameters, or null if
there aren't any.
return the signature/encyrption algorithm parameters, or null if
there aren't any.
return the object identifier for the key encryption algorithm.
Return an AlgorithmParameters object giving the encryption parameters
used to encrypt the key this recipient holds.
return the ASN.1 encoded key encryption algorithm parameters, or null if
there aren't any.
return the secret key identifier
return a store of the intended recipients for this message
return the encoded signature
return a table of the signed attributes - indexed by
the OID of the attribute.
Return the a string representation of the OID associated with the
encapsulated content info structure carried in the signed data.
return the collection of signers that are associated with the
signatures for the message.
return a table of the unprotected attributes indexed by
the OID of the attribute.
return a table of the unsigned attributes indexed by
the OID of the attribute.
Example that sends a signed and encrypted mail message.
set the content-transfer-encoding for the signature.
set a secret key identifier (for use with KEKRecipientInfo)
a basic index for a signer.
an expanded SignerInfo block from a CMS Signed message
containing class for an S/MIME pkcs7-mime MimePart.
General class for generating a pkcs7-mime message.
containing class for an S/MIME pkcs7-mime MimePart.
General class for generating a pkcs7-mime message.
super class of the various generators.
general class for handling a pkcs7-signature message.
base constructor using a defaultContentTransferEncoding of 7bit
base constructor with settable contentTransferEncoding
base constructor for a signed message with encapsulated content.
general class for generating a pkcs7-signature message.
base constructor - default content transfer encoding 7bit
base constructor - default content transfer encoding explicitly set