Produce an object suitable for an ASN1OutputStream.
Returns:
SubjectDirectoryAttributes ::= Attributes
Attributes ::= SEQUENCE SIZE (1..MAX) OF Attribute
Attribute ::= SEQUENCE
{
type AttributeType
values SET OF AttributeValue
}
AttributeType ::= OBJECT IDENTIFIER
AttributeValue ::= ANY DEFINED BY AttributeType
ASN1EncodableVector vec = new ASN1EncodableVector();
Enumeration e = attributes.elements();
while (e.hasMoreElements())
{
vec.add((Attribute)e.nextElement());
}
return new DERSequence(vec);