public class AttributeTable extends Object
Constructor and Description |
---|
AttributeTable(ASN1EncodableVector v) |
AttributeTable(ASN1Set s) |
AttributeTable(Attributes attrs) |
AttributeTable(Hashtable attrs) |
Modifier and Type | Method and Description |
---|---|
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() |
public AttributeTable(Hashtable attrs)
public AttributeTable(ASN1EncodableVector v)
public AttributeTable(ASN1Set s)
public AttributeTable(Attributes attrs)
public Attribute get(DERObjectIdentifier oid)
oid
- type of attribute required.public ASN1EncodableVector getAll(DERObjectIdentifier oid)
oid
- type of attribute required.public int size()
public Hashtable toHashtable()
public ASN1EncodableVector toASN1EncodableVector()
public Attributes toAttributes()
public AttributeTable add(ASN1ObjectIdentifier attrType, ASN1Encodable attrValue)
attrType
- attrValue
- public AttributeTable remove(ASN1ObjectIdentifier attrType)
Copyright © 2015. All rights reserved.