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
FailureBehavior
The level-fulfillment policy when level-enrichment material cannot be produced.
public SigningLevelFailureBehavior FailureBehavior { get; }
Property Value
Level
The requested ETSI baseline level.
public AdesBaselineLevel Level { get; }
Property Value
LongTermValidation
Long-term validation material configuration. Non-null for B-LT and higher.
public LongTermValidationOptions? LongTermValidation { get; }
Property Value
Timestamp
Signature timestamp configuration. Non-null for B-T and higher.
public TimestampOptions? Timestamp { get; }
Property Value
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
timestampTimestampOptionsThe signature TSA configuration. Must not be null.
validationLongTermValidationOptionsThe long-term validation material configuration. Must not be null.
archiveTimestampArchiveTimestampOptionsOptional archive TSA configuration (null reuses the signature TSA).
failureBehaviorSigningLevelFailureBehaviorOptional level-fulfillment policy.
Returns
Exceptions
- ArgumentNullException
timestamporvalidationis null.
Basic()
Creates a B-B (basic) profile without any level-enrichment configuration.
public static AdesBaselineProfile Basic()
Returns
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
timestampTimestampOptionsThe signature TSA configuration. Must not be null.
validationLongTermValidationOptionsThe long-term validation material configuration. Must not be null.
failureBehaviorSigningLevelFailureBehaviorOptional level-fulfillment policy.
Returns
Exceptions
- ArgumentNullException
timestamporvalidationis 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
timestampTimestampOptionsThe signature TSA configuration. Must not be null.
failureBehaviorSigningLevelFailureBehaviorOptional level-fulfillment policy.
Returns
Exceptions
- ArgumentNullException
timestampis null.