namespace CustomBuildTool
{
///
/// Contains configuration for timestamping authenticode signatures.
///
public struct TimeStampConfiguration
{
///
/// The URL to the timestamp authority.
///
public string Url { get; }
///
/// The digest algorithm the timestamp service authority should use on timestamp signatures.
///
//public HashAlgorithmName DigestAlgorithm { get; }
///
/// The type of timestamp to use. See for details, or null if
/// no timestamping should be performed.
///
public TimeStampType? Type { get; }
///
/// A default timestamp configuration indicating no timestamp should be generated.
///
public static TimeStampConfiguration None { get; } = new TimeStampConfiguration();
///
/// Creates a new instance of a .
///
/// The URL to the timestamp authority.
/// The digest algorithm the timestamp service authority should use on timestamp signatures.
/// The type of timestamp to use. See for details.
public TimeStampConfiguration(string url, TimeStampType type)
{
Url = url;
Type = type;
}
public TimeStampConfiguration()
{
Type = null;
}
}
///
/// An enumeration of possible timestamp kinds.
///
public enum TimeStampType
{
///
/// Indicates that a timestamp authority should use the legacy Authenticode style of timestamps.
/// This option should only be used for backward compatibility with Windows XP and only supports
/// timestamp signatures.
///
Authenticode,
///
/// Indicates that a timestamp authority should use an RFC3161 timestamp signatures.
///
RFC3161
}
}