Package org.bouncycastle.asn1.x509
Class Attribute
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.Attribute
- All Implemented Interfaces:
ASN1Encodable
public class Attribute extends ASN1Object
-
Constructor Summary
Constructors Constructor Description Attribute(ASN1ObjectIdentifier attrType, ASN1Set attrValues) -
Method Summary
Modifier and Type Method Description ASN1Encodable[]getAttributeValues()ASN1ObjectIdentifiergetAttrType()ASN1SetgetAttrValues()static AttributegetInstance(Object o)return an Attribute object from the given object.ASN1PrimitivetoASN1Primitive()Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
-
Constructor Details
-
Attribute
-
-
Method Details
-
getInstance
return an Attribute object from the given object.- Parameters:
o- the object we want converted.- Throws:
IllegalArgumentException- if the object cannot be converted.
-
getAttrType
-
getAttributeValues
-
getAttrValues
-
toASN1Primitive
Produce an object suitable for an ASN1OutputStream.Attribute ::= SEQUENCE { attrType OBJECT IDENTIFIER, attrValues SET OF AttributeValue }- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object
-