Package org.bouncycastle.asn1.cms
Class Attributes
- java.lang.Object
 - 
- org.bouncycastle.asn1.ASN1Object
 - 
- org.bouncycastle.asn1.cms.Attributes
 
 
 
- 
- All Implemented Interfaces:
 ASN1Encodable,Encodable
public class Attributes extends 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
Constructors Constructor Description Attributes(ASN1EncodableVector v) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute[]getAttributes()static AttributesgetInstance(java.lang.Object obj)Return an Attribute set object from the given object.static AttributesgetInstance(ASN1TaggedObject obj, boolean explicit)ASN1PrimitivetoASN1Primitive()Produce an object suitable for an ASN1OutputStream.- 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
Attributes
public Attributes(ASN1EncodableVector v)
 
 - 
 
- 
Method Detail
- 
getInstance
public static Attributes getInstance(java.lang.Object obj)
Return an Attribute set object from the given object.Accepted inputs:
- null → null
 -  
Attributesobject -  
ASN1Setinput formats with Attributes structure inside 
- Parameters:
 obj- the object we want converted.- Throws:
 java.lang.IllegalArgumentException- if the object cannot be converted.
 
- 
getInstance
public static Attributes getInstance(ASN1TaggedObject obj, boolean explicit)
 
- 
getAttributes
public Attribute[] getAttributes()
 
- 
toASN1Primitive
public ASN1Primitive toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.- Specified by:
 toASN1Primitivein interfaceASN1Encodable- Specified by:
 toASN1Primitivein classASN1Object- Returns:
 - a primitive representation of this object.
 
 
 - 
 
 -