Skip to content

ParsedNameConstraintForm

Union of supported and unsupported name constraint forms as produced by parsing.

ts
type ParsedNameConstraintForm = {
  readonly type: dns;
  readonly value: string
} | {
  readonly type: email;
  readonly value: string
} | {
  readonly type: uri;
  readonly value: string
} | {
  readonly type: ip;
  readonly addressBytes: Uint8Array;
  readonly maskBytes: Uint8Array
} | {
  readonly type: directoryName;
  readonly derHex: string
} | {
  readonly type: otherName;
  readonly value: Uint8Array
} | {
  readonly type: x400Address;
  readonly value: Uint8Array
} | {
  readonly type: ediPartyName;
  readonly value: Uint8Array
} | {
  readonly type: registeredID;
  readonly value: string
}

Released under the MIT License.