Interface IClientPublicKeyReader
- Namespace
- MailFathom.Application.Access.Credentials
- Assembly
- MailFathom.Application.dll
Reads a client's public key into the two things a credential row keeps of it.
public interface IClientPublicKeyReader
Remarks
A public key registered for a user is stored whole, because the assertion it verifies has to be checked against
it, and it is resolved by a fingerprint, because the assertion names one in its own kid header rather than
naming a credential this deployment invented a handle for. Deriving both from the same reading is what keeps the
two in step: a fingerprint computed anywhere but beside the material it describes is one that can be computed over
a different encoding of the same key.
The port exists so no use case, no endpoint, and no command holds an opinion about which key types are accepted, what encoding a client sends, or how a fingerprint is derived. All of that belongs to the one adapter behind this, beside the verification that reads the stored material back.
Methods
- DescribeAcceptedForm()
Describes what a written public key may be, for a refusal an operator reads.
- TryRead(string?, out ClientPublicKey?)
Reads a written public key into what is stored and what it is resolved by.