Org.BouncyCastle.Cms
Namespace with 63 public types
Classes
CmsAbsentContent
A class representing null or absent content.
CmsAlgorithmNotAllowedException
Exception thrown when a CMS operation does not permit the requested algorithm.
CmsAttributeTableGenerationException
Exception thrown when a CMS signed or authenticated attribute table cannot be generated.
CmsAuthenticatedData
Represents a CMS AuthenticatedData (MAC-protected) message. Parse an encoded message, obtain recipients from
, match one with , recover content via
, and verify integrity with .
CmsAuthenticatedDataGenerator
CmsAuthenticatedDataParser
Streaming parser for CMS AuthenticatedData messages, the counterpart to .
In streaming mode only one recipient can be tried and parser methods must be called in order.
CmsAuthenticatedDataStreamGenerator
Streaming generator for CMS AuthenticatedData (MAC-protected) messages. Add recipients via the base
methods, then call to obtain a
to which the content to be authenticated is written; closing that stream finalizes the
CMS structure and emits the MAC.
CmsAuthenticatedGenerator
CmsCompressedData
Represents a CMS CompressedData message. Parse an encoded message, then decompress via
or .
CmsCompressedDataGenerator
Generator for CMS CompressedData messages. Compresses content with ZLIB and returns a
instance (read-side: Batch 15d, #703).
CmsCompressedDataParser
Streaming parser for CMS CompressedData messages, the counterpart to .
CmsCompressedDataStreamGenerator
Streaming generator for CMS CompressedData messages. Call to obtain a
to which the content to be compressed is written; closing that stream finalizes the
CMS structure. Only ZLIB compression () is supported.
CmsContentInfoParser
CmsDigestedData
Containing class for a CMS DigestedData object.
CmsEnvelopedData
Represents a CMS EnvelopedData message. Parse an encoded message, obtain recipients from
, match one with , then decrypt via
.
CmsEnvelopedDataGenerator
CmsEnvelopedDataParser
Streaming parser for CMS EnvelopedData messages, the counterpart to .
In streaming mode only one recipient can be tried and parser methods must be called in order.
CmsEnvelopedDataStreamGenerator
Streaming generator for CMS EnvelopedData (PKCS#7 enveloped-data) messages. Add recipients via the base
methods, then call to obtain a
to which the content to be encrypted is written; closing that stream finalizes the
CMS structure.
CmsException
General exception thrown when CMS processing fails.
CmsProcessableByteArray
A holding class for a byte array of data to be processed.
CmsProcessableFile
A holding class for a file of data to be processed.
CmsProcessableInputStream
CmsSignedData
CmsSignedDataGenerator
Generator for CMS SignedData (PKCS#7 signed-data) messages. Configure signers with
(and overloads), add
certificates and CRLs via the base methods, then call
to obtain a instance.
CmsSignedDataParser
Streaming parser for CMS SignedData messages, the counterpart to . In streaming
mode only one signer can be verified per pass and parser methods must be called in order.
CmsSignedDataStreamGenerator
Streaming generator for CMS SignedData (PKCS#7 signed-data) messages. Configure signers with
(and overloads), add
certificates and CRLs via the base methods, then call
to obtain a to which the content being signed is written.
Closing that stream finalizes the CMS structure.
CmsStreamException
Exception thrown when CMS streaming operations fail.
CmsTagLengthException
Exception thrown when an authenticated CMS content tag length is invalid.
CmsTypedStream
CmsVerifierCertificateNotValidException
Exception thrown when a signer certificate is not valid at the signing time.
DefaultAuthenticatedAttributeTableGenerator
Default authenticated-attribute generator for CMS AuthenticatedData. Supplies contentType, messageDigest, and
cmsAlgorithmProtect unless overridden. Used by and related
generators.
DefaultDigestAlgorithmIdentifierFinder
DefaultSignatureAlgorithmIdentifierFinder
DefaultSignedAttributeTableGenerator
Default signed-attribute generator for CMS SignedData. Supplies contentType, signingTime, messageDigest, and
cmsAlgorithmProtect unless overridden. Used by and
AddSigner overloads.
KekRecipientInformation
CMS recipient information for key-encryption-key (KEK) recipients that share a symmetric wrapping key.
KeyAgreeRecipientInformation
CMS recipient information for key agreement, where a sender and recipient derive the key-encryption key.
KeyTransRecipientInfoGenerator
Generates CMS key-transport RecipientInfo values. Used by
and related overloads; the read-side
counterpart is .
KeyTransRecipientInformation
CMS recipient information for key transport, where the content-encryption key is encrypted for a recipient's
public key.
OriginatorID
Identifies a CMS originator by issuer and serial number or subject key identifier.
OriginatorInfoGenerator
Builds CMS OriginatorInfo values carrying certificates and revocation information for authenticated
messages. The read-side wrapper is .
OriginatorInformation
PasswordRecipientInformation
CMS recipient information for a recipient that recovers content using a password-derived key.
Pkcs5Scheme2PbeKey
PKCS#5 scheme 2 PBE key with the password encoded as ASCII bytes.
Pkcs5Scheme2Utf8PbeKey
PKCS#5 scheme 2 PBE key with the password encoded as UTF-8 bytes.
Pkcs7ProcessableObject
RecipientID
Identifies a CMS recipient by issuer and serial number, subject key identifier, or KEK key identifier.
RecipientInformationStore
A store collection class for RecipientInformation objects.
SignerID
Identifies a CMS signer by issuer and serial number or subject key identifier.
SignerInfoGenerator
Pre-configured CMS SignerInfo for signed-data creation. Build with
, then pass to
.
SignerInfoGeneratorBuilder
Builds instances for CMS SignedData creation.
SignerInformation
Represents an expanded CMS SignerInfo from a signed-data message. Obtain instances from
, match signers with , then call
or .
SignerInformationStore
A store collection class for SignerInformation objects.
SimpleAttributeTableGenerator
Returns a fixed regardless of generation parameters. Used for unsigned attributes
and other cases where attributes are fully preconfigured.
Enumerations
CmsAttributeTableParameter
Abstract Classes
CmsEnvelopedGenerator
CmsPbeKey
Base class for password-based keys used with CMS enveloped-data recipients. Passed to
.
CmsSignedGenerator
RecipientInformation
Base class for CMS recipient information. Use to select a recipient, then supply
the matching key material to or .
Interfaces
CmsAttributeTableGenerator
CmsProcessable
CmsReadable
CmsTypedData
RecipientInfoGenerator