public class AttributeTable extends java.lang.Object
Attributes
sets.Modifier and Type | Field and Description |
---|---|
private java.util.Hashtable |
attributes |
Constructor and Description |
---|
AttributeTable(ASN1EncodableVector v) |
AttributeTable(ASN1Set s) |
AttributeTable(Attribute attr) |
AttributeTable(Attributes attrs) |
AttributeTable(java.util.Hashtable attrs) |
Modifier and Type | Method and Description |
---|---|
AttributeTable |
add(ASN1ObjectIdentifier attrType,
ASN1Encodable attrValue)
Return a new table with the passed in attribute added.
|
private void |
addAttribute(ASN1ObjectIdentifier oid,
Attribute a) |
private java.util.Hashtable |
copyTable(java.util.Hashtable in) |
Attribute |
get(ASN1ObjectIdentifier oid)
Return the first attribute matching the OBJECT IDENTIFIER oid.
|
ASN1EncodableVector |
getAll(ASN1ObjectIdentifier oid)
Return all the attributes matching the OBJECT IDENTIFIER oid.
|
AttributeTable |
remove(ASN1ObjectIdentifier attrType) |
int |
size() |
ASN1EncodableVector |
toASN1EncodableVector() |
Attributes |
toASN1Structure() |
java.util.Hashtable |
toHashtable() |
private java.util.Hashtable attributes
public AttributeTable(java.util.Hashtable attrs)
public AttributeTable(ASN1EncodableVector v)
public AttributeTable(ASN1Set s)
public AttributeTable(Attribute attr)
public AttributeTable(Attributes attrs)
private void addAttribute(ASN1ObjectIdentifier oid, Attribute a)
public Attribute get(ASN1ObjectIdentifier oid)
oid
- type of attribute required.public ASN1EncodableVector getAll(ASN1ObjectIdentifier oid)
oid
- type of attribute required.public int size()
public java.util.Hashtable toHashtable()
public ASN1EncodableVector toASN1EncodableVector()
public Attributes toASN1Structure()
private java.util.Hashtable copyTable(java.util.Hashtable in)
public AttributeTable add(ASN1ObjectIdentifier attrType, ASN1Encodable attrValue)
attrType
- attrValue
- public AttributeTable remove(ASN1ObjectIdentifier attrType)