Package org.bouncycastle.asn1.cms
Class AttributeTable
java.lang.Object
org.bouncycastle.asn1.cms.AttributeTable
public class AttributeTable extends Object
-
Constructor Summary
Constructors Constructor Description AttributeTable(Hashtable attrs)AttributeTable(ASN1EncodableVector v)AttributeTable(ASN1Set s)AttributeTable(Attribute attr)AttributeTable(Attributes attrs) -
Method Summary
Modifier and Type Method Description AttributeTableadd(ASN1ObjectIdentifier attrType, ASN1Encodable attrValue)Return a new table with the passed in attribute added.Attributeget(ASN1ObjectIdentifier oid)Return the first attribute matching the OBJECT IDENTIFIER oid.Attributeget(DERObjectIdentifier oid)Deprecated.use ASN1ObjectIdentifierASN1EncodableVectorgetAll(ASN1ObjectIdentifier oid)Return all the attributes matching the OBJECT IDENTIFIER oid.ASN1EncodableVectorgetAll(DERObjectIdentifier oid)Deprecated.use ASN1ObjectIdentifierAttributeTableremove(ASN1ObjectIdentifier attrType)intsize()ASN1EncodableVectortoASN1EncodableVector()AttributestoASN1Structure()HashtabletoHashtable()
-
Constructor Details
-
AttributeTable
-
AttributeTable
-
AttributeTable
-
AttributeTable
-
AttributeTable
-
-
Method Details
-
get
Deprecated.use ASN1ObjectIdentifier -
get
Return the first attribute matching the OBJECT IDENTIFIER oid.- Parameters:
oid- type of attribute required.- Returns:
- first attribute found of type oid.
-
getAll
Deprecated.use ASN1ObjectIdentifier -
getAll
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.
-
size
public int size() -
toHashtable
-
toASN1EncodableVector
-
toASN1Structure
-
add
Return a new table with the passed in attribute added.- Parameters:
attrType-attrValue-- Returns:
-
remove
-