Package org.bouncycastle.asn1.pkcs
Class Attribute
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.pkcs.Attribute
- All Implemented Interfaces:
ASN1Encodable,Encodable
-
Constructor Summary
ConstructorsConstructorDescriptionAttribute(ASN1ObjectIdentifier attrType, ASN1Set attrValues) Attribute(ASN1Sequence seq) -
Method Summary
Modifier and TypeMethodDescriptionstatic Attributereturn an Attribute object from the given object.Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
Attribute
-
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
-
getAttrValues
-
getAttributeValues
-
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- Returns:
- a primitive representation of this object.
-