Ejemplo n.º 1
0
        public AttributeTable Remove(DerObjectIdentifier attrType)
        {
            var newTable = new AttributeTable(_attributes);

            newTable._attributes.Remove(attrType);

            return(newTable);
        }
Ejemplo n.º 2
0
        /**
         * Return a new table with the passed in attribute added.
         *
         * @param attrType
         * @param attrValue
         * @return
         */

        public AttributeTable Add(DerObjectIdentifier attrType, Asn1Encodable attrValue)
        {
            var newTable = new AttributeTable(_attributes);

            newTable.AddAttribute(new Attribute(attrType, new DerSet(attrValue)));

            return(newTable);
        }
		/**
		 * Initialise with some extra attributes or overrides.
		 *
		 * @param attributeTable initial attribute table to use.
		 */
		public DefaultSignedAttributeTableGenerator(
			AttributeTable attributeTable)
		{
			if (attributeTable != null)
			{
				table = attributeTable.ToDictionary();
			}
			else
			{
				table = Platform.CreateHashtable();
			}
		}
		public SimpleAttributeTableGenerator(
			AttributeTable attributes)
		{
			this.attributes = attributes;
		}
Ejemplo n.º 5
0
        public AttributeTable Remove(DerObjectIdentifier attrType)
        {
            var newTable = new AttributeTable(_attributes);

            newTable._attributes.Remove(attrType);

            return newTable;
        }
Ejemplo n.º 6
0
        /**
		 * Return a new table with the passed in attribute added.
		 *
		 * @param attrType
		 * @param attrValue
		 * @return
		 */

        public AttributeTable Add(DerObjectIdentifier attrType, Asn1Encodable attrValue)
        {
            var newTable = new AttributeTable(_attributes);

            newTable.AddAttribute(new Attribute(attrType, new DerSet(attrValue)));

            return newTable;
        }