C# Class Org.BouncyCastle.Cms.CmsSignedDataGenerator

Inheritance: Org.BouncyCastle.Cms.CmsSignedGenerator
Datei anzeigen Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Public Methods

Method Description
AddSigner ( AsymmetricKeyParameter privateKey, X509Certificate cert, string digestOID ) : void
AddSigner ( AsymmetricKeyParameter privateKey, X509Certificate cert, string digestOID, Asn1 signedAttr, Asn1 unsignedAttr ) : void
AddSigner ( AsymmetricKeyParameter privateKey, X509Certificate cert, string digestOID, CmsAttributeTableGenerator signedAttrGen, CmsAttributeTableGenerator unsignedAttrGen ) : void
AddSigner ( AsymmetricKeyParameter privateKey, byte subjectKeyID, string digestOID ) : void
AddSigner ( AsymmetricKeyParameter privateKey, byte subjectKeyID, string digestOID, Asn1 signedAttr, Asn1 unsignedAttr ) : void
AddSigner ( AsymmetricKeyParameter privateKey, byte subjectKeyID, string digestOID, CmsAttributeTableGenerator signedAttrGen, CmsAttributeTableGenerator unsignedAttrGen ) : void
CmsSignedDataGenerator ( ) : System
CmsSignedDataGenerator ( SecureRandom rand ) : System

Constructor allowing specific source of randomness

Generate ( CmsProcessable content ) : CmsSignedData
Generate ( CmsProcessable content, bool encapsulate ) : CmsSignedData
Generate ( string signedContentType, CmsProcessable content, bool encapsulate ) : CmsSignedData
GenerateCounterSigners ( SignerInformation signer ) : SignerInformationStore

Method Details

AddSigner() public method

public AddSigner ( AsymmetricKeyParameter privateKey, X509Certificate cert, string digestOID ) : void
privateKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
cert Org.BouncyCastle.X509.X509Certificate
digestOID string
return void

AddSigner() public method

public AddSigner ( AsymmetricKeyParameter privateKey, X509Certificate cert, string digestOID, Asn1 signedAttr, Asn1 unsignedAttr ) : void
privateKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
cert Org.BouncyCastle.X509.X509Certificate
digestOID string
signedAttr Asn1
unsignedAttr Asn1
return void

AddSigner() public method

public AddSigner ( AsymmetricKeyParameter privateKey, X509Certificate cert, string digestOID, CmsAttributeTableGenerator signedAttrGen, CmsAttributeTableGenerator unsignedAttrGen ) : void
privateKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
cert Org.BouncyCastle.X509.X509Certificate
digestOID string
signedAttrGen CmsAttributeTableGenerator
unsignedAttrGen CmsAttributeTableGenerator
return void

AddSigner() public method

public AddSigner ( AsymmetricKeyParameter privateKey, byte subjectKeyID, string digestOID ) : void
privateKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
subjectKeyID byte
digestOID string
return void

AddSigner() public method

public AddSigner ( AsymmetricKeyParameter privateKey, byte subjectKeyID, string digestOID, Asn1 signedAttr, Asn1 unsignedAttr ) : void
privateKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
subjectKeyID byte
digestOID string
signedAttr Asn1
unsignedAttr Asn1
return void

AddSigner() public method

public AddSigner ( AsymmetricKeyParameter privateKey, byte subjectKeyID, string digestOID, CmsAttributeTableGenerator signedAttrGen, CmsAttributeTableGenerator unsignedAttrGen ) : void
privateKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
subjectKeyID byte
digestOID string
signedAttrGen CmsAttributeTableGenerator
unsignedAttrGen CmsAttributeTableGenerator
return void

CmsSignedDataGenerator() public method

public CmsSignedDataGenerator ( ) : System
return System

CmsSignedDataGenerator() public method

Constructor allowing specific source of randomness
public CmsSignedDataGenerator ( SecureRandom rand ) : System
rand Org.BouncyCastle.Security.SecureRandom Instance of SecureRandom to use.
return System

Generate() public method

public Generate ( CmsProcessable content ) : CmsSignedData
content CmsProcessable
return CmsSignedData

Generate() public method

public Generate ( CmsProcessable content, bool encapsulate ) : CmsSignedData
content CmsProcessable
encapsulate bool
return CmsSignedData

Generate() public method

public Generate ( string signedContentType, CmsProcessable content, bool encapsulate ) : CmsSignedData
signedContentType string
content CmsProcessable
encapsulate bool
return CmsSignedData

GenerateCounterSigners() public method

public GenerateCounterSigners ( SignerInformation signer ) : SignerInformationStore
signer SignerInformation
return SignerInformationStore