code: public int getEnumerated() throws IOException {
          if (tag != tag_Enumerated) {
              throw new IOException("DerValue.getEnumerated, incorrect tag: "
                                    + tag);
          }
          return buffer.getInteger(data.available());
      }
docs: Returns an ASN.1 ENUMERATED value.
  
  @return the integer held in this DER value.