コード例 #1
0
 public AttributeValueAssertion(
     AttributeType attributeType,
     AttributeValue attributeValue)
 {
     this.attributeType = attributeType;
     this.attributeValue = attributeValue;
 }
コード例 #2
0
 public AttributeValueAssertion()
 {
     this.attributeType  = null;
     this.attributeValue = null;
 }
コード例 #3
0
        /// <summary>
        /// Creates a _SetOfAttributeValue instance that contains a set of values.
        /// </summary>
        /// <param name="values">The values to be added.</param>
        /// <returns>The _SetOfAttributeValue instance. If values is null, an empty set will be returned.</returns>
        private Asn1SetOf<AttributeValue> CreateAttributeValueSet(string[] values)
        {
            int length = (values != null) ? values.Length : 0;
            AttributeValue[] attributeValueArray = new AttributeValue[length];
            for (int i = 0; i < length; i++)
            {
                attributeValueArray[i] = new AttributeValue(values[i]);
            }

            Asn1SetOf<AttributeValue> valueSet = new Asn1SetOf<AttributeValue>(attributeValueArray);

            return valueSet;
        }