Class HttpEventValidator
public class HttpEventValidator
- Inheritance
-
HttpEventValidator
- Inherited Members
Constructors
HttpEventValidator(byte[])
public HttpEventValidator(byte[] publicKey)
Parameters
publicKeybyte[]
HttpEventValidator(ReadOnlySpan<char>)
public HttpEventValidator(ReadOnlySpan<char> publicKey)
Parameters
publicKeyReadOnlySpan<char>
Methods
Validate(ReadOnlySpan<byte>, ReadOnlySpan<byte>)
public bool Validate(ReadOnlySpan<byte> signature, ReadOnlySpan<byte> timestampAndBody)
Parameters
signatureReadOnlySpan<byte>The hex decoded value of
X-Signature-Ed25519header.timestampAndBodyReadOnlySpan<byte>The value of
X-Signature-Timestampheader as bytes appended by the request body.
Returns
Validate(ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>)
public bool Validate(ReadOnlySpan<byte> signature, ReadOnlySpan<byte> timestamp, ReadOnlySpan<byte> body)
Parameters
signatureReadOnlySpan<byte>The hex decoded value of
X-Signature-Ed25519header.timestampReadOnlySpan<byte>The value of
X-Signature-Timestampheader as bytes.bodyReadOnlySpan<byte>The request body.
Returns
Validate(ReadOnlySpan<char>, ReadOnlySpan<byte>)
public bool Validate(ReadOnlySpan<char> signature, ReadOnlySpan<byte> timestampAndBody)
Parameters
signatureReadOnlySpan<char>The value of
X-Signature-Ed25519header.timestampAndBodyReadOnlySpan<byte>he value of
X-Signature-Timestampheader as bytes appended by the request body.
Returns
Validate(ReadOnlySpan<char>, ReadOnlySpan<char>, ReadOnlySpan<byte>)
public bool Validate(ReadOnlySpan<char> signature, ReadOnlySpan<char> timestamp, ReadOnlySpan<byte> body)
Parameters
signatureReadOnlySpan<char>The value of
X-Signature-Ed25519header.timestampReadOnlySpan<char>The value of
X-Signature-Timestampheader.bodyReadOnlySpan<byte>The request body.