org.bouncycastle.asn1.cms
Class AttributeTable
java.lang.Object
org.bouncycastle.asn1.cms.AttributeTable
public class AttributeTable
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeTable
public AttributeTable(java.util.Hashtable attrs)
AttributeTable
public AttributeTable(ASN1EncodableVector v)
AttributeTable
public AttributeTable(ASN1Set s)
AttributeTable
public AttributeTable(Attributes attrs)
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.
size
public int size()
toHashtable
public java.util.Hashtable toHashtable()
toASN1EncodableVector
public ASN1EncodableVector toASN1EncodableVector()
toAttributes
public Attributes toAttributes()
add
public AttributeTable add(ASN1ObjectIdentifier attrType,
ASN1Encodable attrValue)
- Return a new table with the passed in attribute added.
- Parameters:
attrType
- attrValue
-
- Returns:
remove
public AttributeTable remove(ASN1ObjectIdentifier attrType)