1 package org.bouncycastle.asn1; 2 3 import java.io.IOException; 4 5 public class DEROctetString 6 extends ASN1OctetString 7 { 8 /** 9 * @param string the octets making up the octet string. 10 */ 11 public DEROctetString( 12 byte[] string) 13 { 14 super(string); 15 } 16 17 public DEROctetString( 18 DEREncodable obj) 19 { 20 super(obj); 21 } 22 23 void encode( 24 DEROutputStream out) 25 throws IOException 26 { 27 out.writeEncoded(OCTET_STRING, string); 28 } 29 30 static void encode( 31 DEROutputStream derOut, 32 byte[] bytes) 33 throws IOException 34 { 35 derOut.writeEncoded(DERTags.OCTET_STRING, bytes); 36 } 37 } 38