Package org.gudy.bouncycastle.asn1.pkcs
Class Attribute
- java.lang.Object
-
- org.gudy.bouncycastle.asn1.pkcs.Attribute
-
- All Implemented Interfaces:
DEREncodable
public class Attribute extends java.lang.Object implements DEREncodable
-
-
Field Summary
Fields Modifier and Type Field Description private DERObjectIdentifier
attrType
private ASN1Set
attrValues
-
Constructor Summary
Constructors Constructor Description Attribute(ASN1Sequence seq)
Attribute(DERObjectIdentifier attrType, ASN1Set attrValues)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DERObjectIdentifier
getAttrType()
ASN1Set
getAttrValues()
DERObject
getDERObject()
Produce an object suitable for an ASN1OutputStream.static Attribute
getInstance(java.lang.Object o)
return an Attribute object from the given object.
-
-
-
Field Detail
-
attrType
private DERObjectIdentifier attrType
-
attrValues
private ASN1Set attrValues
-
-
Constructor Detail
-
Attribute
public Attribute(ASN1Sequence seq)
-
Attribute
public Attribute(DERObjectIdentifier 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 DERObjectIdentifier getAttrType()
-
getAttrValues
public ASN1Set getAttrValues()
-
getDERObject
public DERObject getDERObject()
Produce an object suitable for an ASN1OutputStream.Attribute ::= SEQUENCE { attrType OBJECT IDENTIFIER, attrValues SET OF AttributeValue }
- Specified by:
getDERObject
in interfaceDEREncodable
-
-