Files
ssh.net/Renci.SshClient/Renci.SshNet/Common/ObjectIdentifier.cs
T

32 lines
873 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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");
this.Identifiers = identifiers;
}
}
}