public class Attributes
extends org.bouncycastle.asn1.ASN1Object
SignedAttributes ::= SET SIZE (1..MAX) OF Attribute UnsignedAttributes ::= SET SIZE (1..MAX) OF Attribute UnprotectedAttributes ::= SET SIZE (1..MAX) OF Attribute AuthAttributes ::= SET SIZE (1..MAX) OF Attribute UnauthAttributes ::= SET SIZE (1..MAX) OF Attribute Attributes ::= SET SIZE(1..MAX) OF Attribute
Constructor and Description |
---|
Attributes(org.bouncycastle.asn1.ASN1EncodableVector v) |
Modifier and Type | Method and Description |
---|---|
Attribute[] |
getAttributes() |
static Attributes |
getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj,
boolean explicit) |
static Attributes |
getInstance(java.lang.Object obj)
Return an Attribute set object from the given object.
|
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
public static Attributes getInstance(java.lang.Object obj)
Accepted inputs:
Attributes
object
ASN1Set
input formats with Attributes structure inside
obj
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public static Attributes getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
public Attribute[] getAttributes()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object