Package org.bouncycastle.asn1.cms
Class Attributes
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.Attributes
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
public class Attributes
extends org.bouncycastle.asn1.ASN1Object
RFC 5652 defines
5 "SET OF Attribute" entities with 5 different names.
This is common implementation for them all:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Attributes
getInstance
(Object obj) Return an Attribute set object from the given object.static Attributes
getInstance
(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) org.bouncycastle.asn1.ASN1Primitive
Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
Attributes
public Attributes(org.bouncycastle.asn1.ASN1EncodableVector v)
-
-
Method Details
-
getInstance
Return an Attribute set object from the given object.Accepted inputs:
- null → null
-
Attributes
object -
ASN1Set
input formats with Attributes structure inside
- Parameters:
obj
- the object we want converted.- Throws:
IllegalArgumentException
- if the object cannot be converted.
-
getInstance
-
getAttributes
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()Produce an object suitable for an ASN1OutputStream.- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-