startSequence method

ASN1Sequence startSequence()

Subclasses may want to call this to start the encoding sequence. All controls start with the OID and a critical flag, followed by the optional encoded control values

Implementation

ASN1Sequence startSequence() {
  var seq = ASN1Sequence();
  seq.add(ASN1OctetString(oid));
  if (isCritical) seq.add(ASN1Boolean(isCritical));
  return seq;
}