/// <summary> /// Constructor from a simple predefined authority. /// </summary> /// <param name="authority">The predefined authority.</param> public SidIdentifierAuthority(SecurityAuthority authority) : this(new byte[6] { 0, 0, 0, 0, 0, (byte)authority }) { }
/// <summary> /// Determines if this is a specific security authority. /// </summary> /// <param name="authority">The security authority.</param> /// <returns>True if the security authority.</returns> public bool IsAuthority(SecurityAuthority authority) { return(Equals(new SidIdentifierAuthority(authority))); }
/// <summary> /// Constructor from a simple predefined authority. /// </summary> /// <param name="authority">The predefined authority.</param> public SidIdentifierAuthority(SecurityAuthority authority) : this(new byte[6] { 0, 0, 0, 0, 0, (byte)authority }) { }
/// <summary> /// Constructor for authority and sub authorities. /// </summary> /// <param name="authority">The identifier authority.</param> /// <param name="sub_authorities">The sub authorities.</param> public Sid(SecurityAuthority authority, params uint[] sub_authorities) : this(new SidIdentifierAuthority(authority), sub_authorities) { }
/// <summary> /// Constructor for authority and sub authorities. /// </summary> /// <param name="authority">The identifier authority.</param> /// <param name="sub_authorities">The sub authorities.</param> public Sid(SecurityAuthority authority, params uint[] sub_authorities) : this(new SidIdentifierAuthority(authority), sub_authorities) { }