Table of Contents

Class AdesBaselineProfile

Namespace
SimpleSign.Core.Signing
Assembly
SimpleSign.Core.dll

A complete, strongly typed request for an ETSI baseline conformance level. The factories encode the cumulative B-B → B-T → B-LT → B-LTA dependency graph, so invalid level combinations cannot be constructed.

public sealed record AdesBaselineProfile : IEquatable<AdesBaselineProfile>
Inheritance
AdesBaselineProfile
Implements
Inherited Members

Remarks

AdesBaselineProfile is the single source of truth for the requested level and all of its dependencies. It is consumed identically by the PAdES, CAdES, and XAdES signer builders. Replacing the profile replaces the complete level request atomically; no other configuration method changes the level.

Properties

ArchiveTimestamp

Archive timestamp configuration. Non-null when a dedicated endpoint is used for B-LTA.

public ArchiveTimestampOptions? ArchiveTimestamp { get; }

Property Value

ArchiveTimestampOptions

FailureBehavior

The level-fulfillment policy when level-enrichment material cannot be produced.

public SigningLevelFailureBehavior FailureBehavior { get; }

Property Value

SigningLevelFailureBehavior

Level

The requested ETSI baseline level.

public AdesBaselineLevel Level { get; }

Property Value

AdesBaselineLevel

LongTermValidation

Long-term validation material configuration. Non-null for B-LT and higher.

public LongTermValidationOptions? LongTermValidation { get; }

Property Value

LongTermValidationOptions

Timestamp

Signature timestamp configuration. Non-null for B-T and higher.

public TimestampOptions? Timestamp { get; }

Property Value

TimestampOptions

Methods

Archive(TimestampOptions, LongTermValidationOptions, ArchiveTimestampOptions?, SigningLevelFailureBehavior)

Creates a B-LTA (archive) profile with the required signature timestamp and long-term validation material configuration. A null archive timestamp explicitly means reuse the signature TSA endpoint and provider.

public static AdesBaselineProfile Archive(TimestampOptions timestamp, LongTermValidationOptions validation, ArchiveTimestampOptions? archiveTimestamp = null, SigningLevelFailureBehavior failureBehavior = SigningLevelFailureBehavior.Throw)

Parameters

timestamp TimestampOptions

The signature TSA configuration. Must not be null.

validation LongTermValidationOptions

The long-term validation material configuration. Must not be null.

archiveTimestamp ArchiveTimestampOptions

Optional archive TSA configuration (null reuses the signature TSA).

failureBehavior SigningLevelFailureBehavior

Optional level-fulfillment policy.

Returns

AdesBaselineProfile

Exceptions

ArgumentNullException

timestamp or validation is null.

Basic()

Creates a B-B (basic) profile without any level-enrichment configuration.

public static AdesBaselineProfile Basic()

Returns

AdesBaselineProfile

LongTerm(TimestampOptions, LongTermValidationOptions, SigningLevelFailureBehavior)

Creates a B-LT (long-term) profile with the required signature timestamp and long-term validation material configuration.

public static AdesBaselineProfile LongTerm(TimestampOptions timestamp, LongTermValidationOptions validation, SigningLevelFailureBehavior failureBehavior = SigningLevelFailureBehavior.Throw)

Parameters

timestamp TimestampOptions

The signature TSA configuration. Must not be null.

validation LongTermValidationOptions

The long-term validation material configuration. Must not be null.

failureBehavior SigningLevelFailureBehavior

Optional level-fulfillment policy.

Returns

AdesBaselineProfile

Exceptions

ArgumentNullException

timestamp or validation is null.

Timestamped(TimestampOptions, SigningLevelFailureBehavior)

Creates a B-T (timestamped) profile with the required signature timestamp configuration.

public static AdesBaselineProfile Timestamped(TimestampOptions timestamp, SigningLevelFailureBehavior failureBehavior = SigningLevelFailureBehavior.Throw)

Parameters

timestamp TimestampOptions

The signature TSA configuration. Must not be null.

failureBehavior SigningLevelFailureBehavior

Optional level-fulfillment policy.

Returns

AdesBaselineProfile

Exceptions

ArgumentNullException

timestamp is null.