this.tag = tag; this.octets = octets;
this.tag = tag | DERTags.CONSTRUCTED; ByteArrayOutputStream baos = new ByteArrayOutputStream(); DEROutputStream dos = new DEROutputStream(baos); dos.writeObject(object); this.octets = baos.toByteArray();
out.writeEncoded(DERTags.APPLICATION | tag, octets);
return tag & 0x1F;
return octets;
return new ASN1InputStream(new ByteArrayInputStream(getContents())).readObject();
return (tag & DERTags.CONSTRUCTED) != 0;