Skip to content
FutureBlitz

    Install

    Import std.net.acme_client

    AcmeTokens

    std.net.acme_client

    class

    Public Shared Class AcmeTokens

    The key authorizations of an ACME client's HTTP-01 challenges, by token, which a server gives for /.well-known/acme-challenge/, through Answer, from any thread.

    Examples

    Const tokens = AcmeTokens()
    tokens.Publish("abc", "abc.thumbprint")
    Expect(tokens.Answer("/.well-known/acme-challenge/abc") == "abc.thumbprint")
    tokens.Withdraw("abc")
    Expect(tokens.Answer("/.well-known/acme-challenge/abc") == Null)

    std/net/acme_client.fb, line 44

    • Public New() constructor #

      A new AcmeTokens, with none published.

    • Public Method Publish(token: String, keyAuthorization: String) method #

      Gives token's challenge its keyAuthorization, which Answer gives until it's withdrawn.

    • Public Method Withdraw(token: String) method #

      Takes token's key authorization out, once its challenge is done.

    • Public Method Answer(path: String): String? method #

      What a request for path is answered with: the key authorization for /.well-known/acme-challenge/, or Null for another path, or a token it hasn't.

    Report an issue with this page or with FutureBlitz on GitHub.