Struct As2Mic

Assembly: redb.Route.As2.dll

An AS2 Message Integrity Check: a base64 message digest plus the algorithm name, in the wire format
AS2 uses for the Received-Content-MIC MDN field — "<base64-digest>, <algorithm>"
(RFC 4130 §7.3.1). The sender computes it over the content it signed; the receiver recomputes it and
returns it in the MDN so the sender can confirm the partner got exactly what was sent, intact.

public readonly record struct As2Mic : IEquatable<As2Mic>

Implements

Properties

Algorithm

public string Algorithm { get; init; }

Digest

public string Digest { get; init; }

Methods

Matches(As2Mic)

Whether this MIC equals other: the same digest bytes (base64 compared after decoding, so folded

public bool Matches(As2Mic other)

Parse(string)

Parses an AS2 Received-Content-MIC value ("base64digest, algorithm"). The digest is

public static As2Mic Parse(string value)

ToString()

Renders the MIC in AS2 wire format: "base64digest, algorithm".

public override string ToString()

Constructors

As2Mic(string, string)

An AS2 Message Integrity Check: a base64 message digest plus the algorithm name, in the wire format