Table of Contents

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

v Asn1EncodableVector

AttributeTable(Asn1Set)

public AttributeTable(Asn1Set s)

Parameters

s Asn1Set

AttributeTable(Attributes)

public AttributeTable(Attributes attrs)

Parameters

attrs Attributes

AttributeTable(IDictionary<DerObjectIdentifier, object>)

public AttributeTable(IDictionary<DerObjectIdentifier, object> attrs)

Parameters

attrs IDictionary<DerObjectIdentifier, object>

AttributeTable(IReadOnlyCollection<Attribute>)

public AttributeTable(IReadOnlyCollection<Attribute> attributes)

Parameters

attributes IReadOnlyCollection<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

oid DerObjectIdentifier

Property Value

Attribute

Methods

Add(params Attribute[])

public AttributeTable Add(params Attribute[] attributes)

Parameters

attributes Attribute[]

Returns

AttributeTable

Add(DerObjectIdentifier, Asn1Encodable)

Return a new table with the passed in attribute added.

public AttributeTable Add(DerObjectIdentifier attrType, Asn1Encodable attrValue)

Parameters

attrType DerObjectIdentifier
attrValue Asn1Encodable

Returns

AttributeTable

GetAll(DerObjectIdentifier)

public Asn1EncodableVector GetAll(DerObjectIdentifier oid)

Parameters

oid DerObjectIdentifier

Returns

Asn1EncodableVector

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

attrType DerObjectIdentifier

Returns

AttributeTable

ToAsn1EncodableVector()

public Asn1EncodableVector ToAsn1EncodableVector()

Returns

Asn1EncodableVector

ToAttributes()

public Attributes ToAttributes()

Returns

Attributes

ToDictionary()

public IDictionary<DerObjectIdentifier, object> ToDictionary()

Returns

IDictionary<DerObjectIdentifier, object>