Exemple #1
0
        internal Asn1PartialAttribute GetAsn()
        {
            var result = new Asn1PartialAttribute
            {
                Type   = Type.GetBytes(),
                Values = Values.ToArray()
            };

            return(result);
        }
Exemple #2
0
        internal override void SetProtocolOp(Asn1ProtocolOp op)
        {
            var attributes = new Asn1PartialAttribute[Attributes.Count];

            if (attributes.Length == 0)
            {
                throw new ArgumentException("at least one attribute required");
            }
            for (int i = 0; i < Attributes.Count; i++)
            {
                attributes[i] = Attributes[i].GetAsn();
            }
            op.AddRequest = new Asn1AddRequest
            {
                Entry      = Entry.GetBytes(),
                Attributes = attributes
            };
        }
Exemple #3
0
 internal LdapAttribute(Asn1PartialAttribute attribute)
 {
     Type   = new LdapAttributeDescription(attribute.Type.Span);
     Values = attribute.Values;
 }