Class AttributeTable


  • public class AttributeTable
    extends Object
    This is helper tool to construct Attributes sets.
    • Constructor Detail

      • AttributeTable

        public AttributeTable​(Hashtable attrs)
      • AttributeTable

        public AttributeTable​(ASN1Set s)
      • AttributeTable

        public AttributeTable​(Attribute attr)
      • AttributeTable

        public AttributeTable​(Attributes attrs)
    • Method Detail

      • get

        public Attribute get​(ASN1ObjectIdentifier 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​(ASN1ObjectIdentifier 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 Hashtable toHashtable()
      • toASN1Structure

        public Attributes toASN1Structure()