Class Attribute

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.Attribute
All Implemented Interfaces:
ASN1Encodable, Encodable

public class Attribute extends ASN1Object
  • Constructor Details

  • Method Details

    • getInstance

      public static Attribute getInstance(Object o)
      return an Attribute object from the given object.
      Parameters:
      o - the object we want converted.
      Throws:
      IllegalArgumentException - if the object cannot be converted.
    • getAttrType

      public ASN1ObjectIdentifier getAttrType()
    • getAttributeValues

      public ASN1Encodable[] getAttributeValues()
    • getAttrValues

      public ASN1Set getAttrValues()
    • toASN1Primitive

      public ASN1Primitive toASN1Primitive()
      Produce an object suitable for an ASN1OutputStream.
       Attribute ::= SEQUENCE {
           attrType OBJECT IDENTIFIER,
           attrValues SET OF AttributeValue
       }
       
      Specified by:
      toASN1Primitive in interface ASN1Encodable
      Specified by:
      toASN1Primitive in class ASN1Object
      Returns:
      a primitive representation of this object.