1 17 18 package org.apache.geronimo.util.asn1; 19 20 import java.io.IOException ; 21 import java.util.Enumeration ; 22 23 26 public class BERConstructedSequence 27 extends DERConstructedSequence 28 { 29 31 void encode( 32 DEROutputStream out) 33 throws IOException  34 { 35 if (out instanceof ASN1OutputStream || out instanceof BEROutputStream) 36 { 37 out.write(SEQUENCE | CONSTRUCTED); 38 out.write(0x80); 39 40 Enumeration e = getObjects(); 41 while (e.hasMoreElements()) 42 { 43 out.writeObject(e.nextElement()); 44 } 45 46 out.write(0x00); 47 out.write(0x00); 48 } 49 else 50 { 51 super.encode(out); 52 } 53 } 54 } 55 | Popular Tags |