Class AcmeWireBounds

java.lang.Object
zeroecho.pki.server.acme.AcmeWireBounds

public final class AcmeWireBounds extends Object
Exact bounded ACME wire-size calculations shared by configuration and transport.
  • Field Details

    • MAX_PROOF_B64URL_CHARS

      public static final int MAX_PROOF_B64URL_CHARS
      Maximum canonical unpadded Base64url proof-response characters.
  • Method Details

    • minimumCompletionDocumentBytes

      public static int minimumCompletionDocumentBytes(URI externalBaseUri)
      Returns the exact minimum listener body limit capable of carrying the largest version-1 proof-completion JWS under the configured URL authority.
      Parameters:
      externalBaseUri - exact configured external ACME URL authority
      Returns:
      required inclusive flattened-JWS byte limit
      Throws:
      NullPointerException - if externalBaseUri is null
      IllegalArgumentException - if the derived bound exceeds an integer