# C2paToolProvenanceVerifier

Provides optional C2PA content-binding, signature, and trust verification 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**

[C2paToolProvenanceVerifier.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceVerifier.cs#L39)

**Implements**

`ICancellableOfficeProvenanceVerifier` `IOfficeProvenanceVerifier`

**Modifiers**

sealed

Provides optional C2PA content-binding, signature, and trust verification through the official c2patool command-line application. The executable is supplied by the host and is not bundled.

## Inheritance

- object
- C2paToolProvenanceVerifier

Filter members 

Show inherited

## Constructors

`public C2paToolProvenanceVerifier(string executablePath)` [#](#constructor-ctor-string)

[C2paToolProvenanceVerifier.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceVerifier.cs#L39)

Creates a verifier for an installed or explicitly downloaded c2patool executable.

Parameters

**executablePath string required**

## Methods

`public C2paToolAvailability CheckAvailability(TimeSpan? timeout = null, CancellationToken cancellationToken = default)` [#](#method-checkavailability-nullable-system-timespan-threading-cancellationtoken)

[C2paToolProvenanceVerifier.Availability.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceVerifier.Availability.cs#L28)

Probes the configured executable and process-containment prerequisites without reading an asset or fetching credentials.

Parameters

**timeout System.TimeSpan? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`C2paToolAvailability`

Verify 2 overloads

`public OfficeProvenanceVerificationResult Verify(string filePath, OfficeProvenanceVerificationOptions? options = null)` [#](#method-verify-string-officeimo-provenance-officeprovenanceverificationoptions)

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

Verifies provenance carried by an asset file.

Parameters

**filePath string required**

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

Returns

`OfficeProvenanceVerificationResult`

`public OfficeProvenanceVerificationResult Verify(string filePath, OfficeProvenanceVerificationOptions? options, CancellationToken cancellationToken)` [#](#method-verify-string-officeimo-provenance-officeprovenanceverificationoptions-threading-cancellationtoken)

[C2paToolProvenanceVerifier.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceVerifier.cs#L66)

Verifies provenance carried by an asset file while observing cancellation.

Parameters

**filePath string required**

**options OfficeIMO.Provenance.OfficeProvenanceVerificationOptions? required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`OfficeProvenanceVerificationResult`

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

[C2paToolProvenanceVerifier.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceVerifier.cs#L48)

Gets the executable path or command name used for verification.

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

[C2paToolProvenanceVerifier.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Provenance.C2pa/C2paToolProvenanceVerifier.cs#L51)

Gets the provider name.

<!-- PowerForge markdown artifact sha256:1048D459EDEFA75DFF990A8148066CB95CD7A5B9AD3A1BB73EB2916471DF6624 -->
