01: package org.bouncycastle.sasn1;
02:
03: import java.io.InputStream;
04:
05: /**
06: * @deprecated use corresponsding classes in org.bouncycastle.asn1.
07: */
08: public class DerOctetString extends DerObject implements
09: Asn1OctetString {
10: protected DerOctetString(int baseTag, byte[] contentStream) {
11: super (baseTag, BerTag.OCTET_STRING, contentStream);
12: }
13:
14: public InputStream getOctetStream() {
15: if (this .isConstructed()) {
16: return new ConstructedOctetStream(this
17: .getRawContentStream());
18: } else {
19: return this.getRawContentStream();
20: }
21: }
22: }
|