You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
765 B
C#

9 months ago
using System;
namespace Renci.SshNet.Common
{
/// <summary>
/// Describes object identifier for DER encoding
/// </summary>
public struct ObjectIdentifier
{
/// <summary>
/// Gets the object identifier.
/// </summary>
public ulong[] Identifiers { get; private set; }
/// <summary>
/// Initializes a new instance of the <see cref="ObjectIdentifier"/> class.
/// </summary>
/// <param name="identifiers">The identifiers.</param>
public ObjectIdentifier(params ulong[] identifiers)
: this()
{
if (identifiers.Length < 2)
throw new ArgumentException("identifiers");
Identifiers = identifiers;
}
}
}