# C2paToolProvenanceSigner

Creates C2PA Content Credentials through the official c2patool command-line application.

Class 

`OfficeIMO.Provenance.C2pa`

**Namespace**

`OfficeIMO.Provenance.C2pa`

**Assembly**

`OfficeIMO.Provenance.C2pa`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[C2paToolProvenanceSigner.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceSigner.cs#L20)

**Implements**

`IOfficeProvenanceSigner`

**Modifiers**

sealed

Creates C2PA Content Credentials through the official c2patool command-line application. Version 0.27.0 or newer, plus a production signer process, are supplied by the host and are not bundled.

## Inheritance

- object
- C2paToolProvenanceSigner

## 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.

### Returned or exposed by 1

- Method [C2paToolProvenanceSigner.CreateWithBuiltInTestCredentials](/api/provenance-c2pa/officeimo-provenance-c2pa-c2patoolprovenancesigner/#method-createwithbuiltintestcredentials-string)

Filter members 

Show inherited

## Constructors

`public C2paToolProvenanceSigner(string executablePath, string signerPath)` [#](#constructor-ctor-string-string)

[C2paToolProvenanceSigner.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceSigner.cs#L20)

Creates a production signer that delegates private-key operations to a separate signer process.

Parameters

**executablePath string required**

**signerPath string required**

## Methods

`public static C2paToolProvenanceSigner CreateWithBuiltInTestCredentials(string executablePath)` [#](#method-createwithbuiltintestcredentials-string)

[C2paToolProvenanceSigner.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceSigner.cs#L49)

Creates a development-only signer that uses c2patool's public test credentials. Outputs created by this signer must not be represented as production credentials.

Parameters

**executablePath string required**

Returns

`C2paToolProvenanceSigner`

`public OfficeProvenanceSigningResult Sign(OfficeProvenanceSigningRequest request, OfficeProvenanceSigningOptions? options = null)` [#](#method-sign-officeimo-provenance-officeprovenancesigningrequest-officeimo-provenance-officeprovenancesigningoptions)

[C2paToolProvenanceSigner.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceSigner.cs#L64)

Signs an asset and atomically commits the requested output.

Parameters

**request OfficeIMO.Provenance.OfficeProvenanceSigningRequest required**

**options OfficeIMO.Provenance.OfficeProvenanceSigningOptions? = null optional**

Returns

`OfficeProvenanceSigningResult`

## 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 string ExecutablePath { get; }` [#](#property-executablepath)

[C2paToolProvenanceSigner.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceSigner.cs#L52)

Gets the executable path or command name used for signing.

`public string? SignerPath { get; }` [#](#property-signerpath)

[C2paToolProvenanceSigner.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceSigner.cs#L54)

Gets the external signer process path or command name used for production key operations.

`public bool UsesBuiltInTestCredentials { get; }` [#](#property-usesbuiltintestcredentials)

[C2paToolProvenanceSigner.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceSigner.cs#L56)

Gets whether c2patool's public development credentials are used.

`public string Name { get; }` [#](#property-name)

[C2paToolProvenanceSigner.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceSigner.cs#L58)

Gets the signing provider name.

<!-- PowerForge markdown artifact sha256:D03402D790F2195F1CF7671AA309366FA8E4EAC21843CCD7C85866A5CE054C1B -->
