IetfAttrSyntax ::= SEQUENCE {
policyAuthority [0] GeneralNames OPTIONAL,
values SEQUENCE OF CHOICE {
octets OCTET STRING,
oid OBJECT IDENTIFIER,
string UTF8String
}
}
ASN1EncodableVector v = new ASN1EncodableVector();
if (policyAuthority != null)
{
v.add(new DERTaggedObject(0, policyAuthority));
}
ASN1EncodableVector v2 = new ASN1EncodableVector();
for (Enumeration i = values.elements(); i.hasMoreElements();)
{
v2.add((ASN1Encodable)i.nextElement());
}
v.add(new DERSequence(v2));
return new DERSequence(v);