Class XMatrixAuthorization
The X-Matrix Authorization header parameters of a server-to-server request.
Implements
Inherited Members
Namespace: Uniform.Matrix.Protocol.Server
Assembly: Uniform.Matrix.Protocol.Server.dll
Syntax
public sealed record XMatrixAuthorization : IEquatable<XMatrixAuthorization>
Constructors
| Edit this page View SourceXMatrixAuthorization(string, string?, string, string)
The X-Matrix Authorization header parameters of a server-to-server request.
Declaration
public XMatrixAuthorization(string Origin, string? Destination, string KeyId, string Signature)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Origin | Server that sent the request. |
| string | Destination | Server the request is for, or null from servers that leave it out. |
| string | KeyId | Signing key of |
| string | Signature | Unpadded base64 signature. |
Properties
| Edit this page View SourceDestination
Server the request is for, or null from servers that leave it out.
Declaration
public string? Destination { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
KeyId
Signing key of Origin, e.g. ed25519:a_xyz.
Declaration
public string KeyId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Origin
Server that sent the request.
Declaration
public string Origin { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Signature
Unpadded base64 signature.
Declaration
public string Signature { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceToString()
Return the header value, e.g. X-Matrix origin="a.org",destination="b.org",key="ed25519:k",sig="...".
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |