code: public byte[] getDataBytes() throws IOException {
          byte[] retVal = new byte[length];
          synchronized (data) {
              data.reset();
              data.getBytes(retVal);
          }
          return retVal;
      }
docs: Helper routine to return all the bytes contained in the
  DerInputStream associated with this object.