mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-10-15 17:11:34 +00:00
32 lines
873 B
C#
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;
|
|
}
|
|
}
|
|
}
|