# XmlDigitalSignatureCreationRequest

Request for creating one bounded enveloping XML signature over a caller-supplied object.

Class 

`OfficeIMO.Security`

**Namespace**

`OfficeIMO.Security`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[XmlDigitalSignatureContracts.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L78)

**Modifiers**

sealed

Request for creating one bounded enveloping XML signature over a caller-supplied object.

## Inheritance

- object
- XmlDigitalSignatureCreationRequest

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 1

- Method [IOfficeSecurityProvider.CreateXmlSignature](/api/core/officeimo-security-iofficesecurityprovider/#method-createxmlsignature-officeimo-security-xmldigitalsignaturecreationrequest) parameter `request`

Filter members 

Show inherited

## Constructors

`public XmlDigitalSignatureCreationRequest(byte[] objectXml, X509Certificate2 signingCertificate, string signatureId, string objectId, string objectReferenceType, string canonicalizationMethod, string signatureMethod, string digestMethod)` [#](#constructor-ctor-byte-security-cryptography-x509certificates-x509certificate2-string-string-string-string-string-string)

[XmlDigitalSignatureContracts.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L78)

Creates a request over the children of the supplied wrapper XML document.

Parameters

**objectXml byte[] required**

**signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 required**

**signatureId string required**

**objectId string required**

**objectReferenceType string required**

**canonicalizationMethod string required**

**signatureMethod string required**

**digestMethod string required**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public byte[] ObjectXml { get; }` [#](#property-objectxml)

[XmlDigitalSignatureContracts.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L60)

Gets the bounded XML wrapper whose child nodes become the signed DataObject content.

`public X509Certificate2 SigningCertificate { get; }` [#](#property-signingcertificate)

[XmlDigitalSignatureContracts.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L62)

Gets the certificate whose private key creates the signature.

`public string SignatureId { get; }` [#](#property-signatureid)

[XmlDigitalSignatureContracts.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L64)

Gets the XML Signature Id.

`public string ObjectId { get; }` [#](#property-objectid)

[XmlDigitalSignatureContracts.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L66)

Gets the signed DataObject Id.

`public string ObjectReferenceType { get; }` [#](#property-objectreferencetype)

[XmlDigitalSignatureContracts.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L68)

Gets the SignedInfo Reference Type for the DataObject.

`public string CanonicalizationMethod { get; }` [#](#property-canonicalizationmethod)

[XmlDigitalSignatureContracts.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L70)

Gets the SignedInfo canonicalization algorithm.

`public string SignatureMethod { get; }` [#](#property-signaturemethod)

[XmlDigitalSignatureContracts.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L72)

Gets the signature algorithm.

`public string DigestMethod { get; }` [#](#property-digestmethod)

[XmlDigitalSignatureContracts.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L74)

Gets the DataObject digest algorithm.

`public IReadOnlyCollection<X509Certificate2>? AdditionalCertificates { get; set; }` [#](#property-additionalcertificates)

[XmlDigitalSignatureContracts.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L76)

Gets additional certificates embedded after the signer certificate.

`public long MaxObjectBytes { get; set; }` [#](#property-maxobjectbytes)

[XmlDigitalSignatureContracts.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L78)

Gets or sets the maximum object XML bytes accepted. Defaults to 16 MiB.

`public long MaxOutputBytes { get; set; }` [#](#property-maxoutputbytes)

[XmlDigitalSignatureContracts.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/XmlDigitalSignatureContracts.cs#L80)

Gets or sets the maximum encoded signature XML bytes returned. Defaults to 16 MiB.

<!-- PowerForge markdown artifact sha256:2866C420D92A180AFBD243D34D689405CF9583FA9F03480469953924F44782BF -->
