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