Class BundleChecksumValidationException
- Namespace
- OpaDotNet.Wasm.Validation
- Assembly
- OpaDotNet.Wasm.dll
The exception that is thrown if hash of file in the bundle mismatches hash in the signature.
[ExcludeFromCodeCoverage]
public class BundleChecksumValidationException : BundleSignatureValidationException, ISerializable
- Inheritance
-
BundleChecksumValidationException
- Implements
- Inherited Members
Constructors
BundleChecksumValidationException(string, string?, string?, string)
The exception that is thrown if hash of file in the bundle mismatches hash in the signature.
public BundleChecksumValidationException(string fileName, string? alg, string? expected, string actual)
Parameters
fileNamestringName of the file with mismatched hash.
algstringHashing algorithm.
expectedstringExpected hash.
actualstringActual hash.
Properties
Actual
Actual hash.
public string Actual { get; }
Property Value
Alg
Hashing algorithm.
public string? Alg { get; }
Property Value
Expected
Expected hash.
public string? Expected { get; }
Property Value
FileName
Name of the file with mismatched hash.
public string FileName { get; }