01: package org.bouncycastle.asn1;
02:
03: import java.io.IOException;
04:
05: public class DEROctetString extends ASN1OctetString {
06: /**
07: * @param string the octets making up the octet string.
08: */
09: public DEROctetString(byte[] string) {
10: super (string);
11: }
12:
13: public DEROctetString(DEREncodable obj) {
14: super (obj);
15: }
16:
17: void encode(DEROutputStream out) throws IOException {
18: out.writeEncoded(OCTET_STRING, string);
19: }
20: }
|