Class AttributeTable
- Namespace
- Org.BouncyCastle.Asn1.Cms
- Assembly
- BouncyCastle.Cryptography.dll
public class AttributeTable : IReadOnlyCollection<Attribute>, IEnumerable<Attribute>, IEnumerable
- Inheritance
-
AttributeTable
- Implements
- Inherited Members
- Extension Methods
Constructors
AttributeTable(Asn1EncodableVector)
public AttributeTable(Asn1EncodableVector v)
Parameters
AttributeTable(Asn1Set)
public AttributeTable(Asn1Set s)
Parameters
sAsn1Set
AttributeTable(Attributes)
public AttributeTable(Attributes attrs)
Parameters
attrsAttributes
AttributeTable(IDictionary<DerObjectIdentifier, object>)
public AttributeTable(IDictionary<DerObjectIdentifier, object> attrs)
Parameters
attrsIDictionary<DerObjectIdentifier, object>
AttributeTable(IReadOnlyCollection<Attribute>)
public AttributeTable(IReadOnlyCollection<Attribute> attributes)
Parameters
attributesIReadOnlyCollection<Attribute>
Properties
Count
Gets the number of elements in the collection.
public int Count { get; }
Property Value
- int
The number of elements in the collection.
this[DerObjectIdentifier]
Return the first attribute matching the given OBJECT IDENTIFIER
public Attribute this[DerObjectIdentifier oid] { get; }
Parameters
Property Value
Methods
Add(params Attribute[])
public AttributeTable Add(params Attribute[] attributes)
Parameters
attributesAttribute[]
Returns
Add(DerObjectIdentifier, Asn1Encodable)
Return a new table with the passed in attribute added.
public AttributeTable Add(DerObjectIdentifier attrType, Asn1Encodable attrValue)
Parameters
attrTypeDerObjectIdentifierattrValueAsn1Encodable
Returns
GetAll(DerObjectIdentifier)
public Asn1EncodableVector GetAll(DerObjectIdentifier oid)
Parameters
Returns
GetEnumerator()
Returns an enumerator that iterates through the collection.
public virtual IEnumerator<Attribute> GetEnumerator()
Returns
- IEnumerator<Attribute>
An enumerator that can be used to iterate through the collection.
Remove(DerObjectIdentifier)
public AttributeTable Remove(DerObjectIdentifier attrType)
Parameters
attrTypeDerObjectIdentifier
Returns
ToAsn1EncodableVector()
public Asn1EncodableVector ToAsn1EncodableVector()
Returns
ToAttributes()
public Attributes ToAttributes()
Returns
ToDictionary()
public IDictionary<DerObjectIdentifier, object> ToDictionary()