package org.bouncycastle.asn1.cms; import org.bouncycastle.asn1.ASN1EncodableVector; import org.bouncycastle.asn1.ASN1Object; import org.bouncycastle.asn1.ASN1Primitive; import org.bouncycastle.asn1.ASN1Set; import org.bouncycastle.asn1.DLSet; /** * 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 **/ public class Attributes extends ASN1Object { private ASN1Set attributes; private Attributes(ASN1Set set) { attributes = set; } public Attributes(ASN1EncodableVector v) { attributes = new DLSet(v); } /** * Return an Attribute set object from the given object. *
* Accepted inputs: *