public AttributeTable Remove(DerObjectIdentifier attrType) { var newTable = new AttributeTable(_attributes); newTable._attributes.Remove(attrType); return(newTable); }
/** * 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; }
public AttributeTable Remove(DerObjectIdentifier attrType) { var newTable = new AttributeTable(_attributes); newTable._attributes.Remove(attrType); return newTable; }
/** * 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; }