C# Class EU.Europa.EC.Markt.Dss.Signature.Cades.CAdESSignatureExtension

Base class for extending a CAdESSignature.
Base class for extending a CAdESSignature.
Inheritance: SignatureExtension
Datei anzeigen Open project: nonorganic/dssnet Class Usage Examples

Protected Properties

Property Type Description
signatureTsa ITspSource

Public Methods

Method Description
ExtendCMSSignedData ( CmsSignedData signedData, Document originalData, SignatureParameters parameters ) : CmsSignedData
ExtendSignature ( object signatureId, Document document, Document originalData, SignatureParameters parameters ) : Document
ExtendSignatures ( Document document, Document originalData, SignatureParameters parameters ) : Document
GetSignatureTsa ( ) : ITspSource
SetSignatureTsa ( ITspSource signatureTsa ) : void

Protected Methods

Method Description
ExtendCMSSignature ( CmsSignedData signedData, SignerInformation si, SignatureParameters parameters, Document originalData ) : SignerInformation
GetTimeStampAttribute ( DerObjectIdentifier oid, ITspSource tsa, AlgorithmIdentifier digestAlgorithm, byte messageImprint ) : Attribute

Computes an attribute containing a time-stamp token of the provided data, from the provided TSA using the provided.

Computes an attribute containing a time-stamp token of the provided data, from the provided TSA using the provided. The hashing is performed by the method using the specified algorithm and a BouncyCastle provider.

Method Details

ExtendCMSSignature() protected abstract method

protected abstract ExtendCMSSignature ( CmsSignedData signedData, SignerInformation si, SignatureParameters parameters, Document originalData ) : SignerInformation
signedData Org.BouncyCastle.Cms.CmsSignedData
si Org.BouncyCastle.Cms.SignerInformation
parameters EU.Europa.EC.Markt.Dss.Signature.SignatureParameters
originalData Document
return Org.BouncyCastle.Cms.SignerInformation

ExtendCMSSignedData() public method

public ExtendCMSSignedData ( CmsSignedData signedData, Document originalData, SignatureParameters parameters ) : CmsSignedData
signedData Org.BouncyCastle.Cms.CmsSignedData
originalData Document
parameters EU.Europa.EC.Markt.Dss.Signature.SignatureParameters
return Org.BouncyCastle.Cms.CmsSignedData

ExtendSignature() public method

public ExtendSignature ( object signatureId, Document document, Document originalData, SignatureParameters parameters ) : Document
signatureId object
document Document
originalData Document
parameters EU.Europa.EC.Markt.Dss.Signature.SignatureParameters
return Document

ExtendSignatures() public method

public ExtendSignatures ( Document document, Document originalData, SignatureParameters parameters ) : Document
document Document
originalData Document
parameters EU.Europa.EC.Markt.Dss.Signature.SignatureParameters
return Document

GetSignatureTsa() public method

public GetSignatureTsa ( ) : ITspSource
return ITspSource

GetTimeStampAttribute() protected method

Computes an attribute containing a time-stamp token of the provided data, from the provided TSA using the provided.
Computes an attribute containing a time-stamp token of the provided data, from the provided TSA using the provided. The hashing is performed by the method using the specified algorithm and a BouncyCastle provider.
System.Exception
protected GetTimeStampAttribute ( DerObjectIdentifier oid, ITspSource tsa, AlgorithmIdentifier digestAlgorithm, byte messageImprint ) : Attribute
oid Org.BouncyCastle.Asn1.DerObjectIdentifier
tsa ITspSource
digestAlgorithm Org.BouncyCastle.Asn1.X509.AlgorithmIdentifier
messageImprint byte
return Org.BouncyCastle.Asn1.Cms.Attribute

SetSignatureTsa() public method

public SetSignatureTsa ( ITspSource signatureTsa ) : void
signatureTsa ITspSource the signatureTsa to set
return void

Property Details

signatureTsa protected_oe property

protected ITspSource signatureTsa
return ITspSource