Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.asn1.x509
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 Summary
Attribute(ASN1ObjectIdentifier attrType, ASN1Set attrValues)
           
 
Method Summary
 ASN1Encodable[] getAttributeValues()
           
 ASN1ObjectIdentifier getAttrType()
           
 ASN1Set getAttrValues()
           
static Attribute getInstance(java.lang.Object o)
          return an Attribute object from the given object.
 ASN1Primitive toASN1Primitive()
          Produce an object suitable for an ASN1OutputStream.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(ASN1ObjectIdentifier attrType,
                 ASN1Set attrValues)
Method Detail

getInstance

public static Attribute getInstance(java.lang.Object o)
return an Attribute object from the given object.
Parameters:
o - the object we want converted.
Throws:
java.lang.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 }
Overrides:
toASN1Primitive in class ASN1Object
Following copied from class: org.bouncycastle.asn1.ASN1Object
Returns:
a primitive representation of this object.

Bouncy Castle Cryptography Library 1.77.0