public class

AttributeTable

extends Object
java.lang.Object
   ↳ org.bouncycastle.asn1.cms.AttributeTable

Summary

Public Constructors
AttributeTable(Hashtable attrs)
AttributeTable(ASN1EncodableVector v)
AttributeTable(ASN1Set s)
AttributeTable(Attributes attrs)
Public Methods
AttributeTable add(ASN1ObjectIdentifier attrType, ASN1Encodable attrValue)
Return a new table with the passed in attribute added.
Attribute get(DERObjectIdentifier oid)
Return the first attribute matching the OBJECT IDENTIFIER oid.
ASN1EncodableVector getAll(DERObjectIdentifier oid)
Return all the attributes matching the OBJECT IDENTIFIER oid.
AttributeTable remove(ASN1ObjectIdentifier attrType)
int size()
ASN1EncodableVector toASN1EncodableVector()
Attributes toAttributes()
Hashtable toHashtable()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AttributeTable (Hashtable attrs)

public AttributeTable (ASN1EncodableVector v)

public AttributeTable (ASN1Set s)

public AttributeTable (Attributes attrs)

Public Methods

public AttributeTable add (ASN1ObjectIdentifier attrType, ASN1Encodable attrValue)

Return a new table with the passed in attribute added.

public Attribute get (DERObjectIdentifier oid)

Return the first attribute matching the OBJECT IDENTIFIER oid.

Parameters
oid type of attribute required.
Returns
  • first attribute found of type oid.

public ASN1EncodableVector getAll (DERObjectIdentifier oid)

Return all the attributes matching the OBJECT IDENTIFIER oid. The vector will be empty if there are no attributes of the required type present.

Parameters
oid type of attribute required.
Returns
  • a vector of all the attributes found of type oid.

public AttributeTable remove (ASN1ObjectIdentifier attrType)

public int size ()

public ASN1EncodableVector toASN1EncodableVector ()

public Attributes toAttributes ()

public Hashtable toHashtable ()