Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

C2paToolProvenanceVerifier

OfficeIMO.Provenance.C2pa

Namespace
OfficeIMO.Provenance.C2pa
Assembly
OfficeIMO.Provenance.C2pa
Source revision
ba882f6b0d07 with working tree changes
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

Constructors

public C2paToolProvenanceVerifier(string executablePath) #

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

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
Verify 2 overloads
public OfficeProvenanceVerificationResult Verify(string filePath, OfficeProvenanceVerificationOptions? options = null) #

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

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

Properties

public string ExecutablePath { get; } #

Gets the executable path or command name used for verification.

public string Name { get; } #

Gets the provider name.