org.bouncycastle.asn1.cms

Class AttributeTable


public class AttributeTable
extends java.lang.Object

Constructor Summary

AttributeTable(Hashtable attrs)
AttributeTable(ASN1Set s)
AttributeTable(DEREncodableVector v)

Method Summary

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.
ASN1EncodableVector
toASN1EncodableVector()
Hashtable
toHashtable()

Constructor Details

AttributeTable

public AttributeTable(Hashtable attrs)

AttributeTable

public AttributeTable(ASN1Set s)

AttributeTable

public AttributeTable(DEREncodableVector v)

Method Details

get

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.

getAll

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.

toASN1EncodableVector

public ASN1EncodableVector toASN1EncodableVector()

toHashtable

public Hashtable toHashtable()