Class AcmeWireBounds
java.lang.Object
zeroecho.pki.server.acme.AcmeWireBounds
Exact bounded ACME wire-size calculations shared by configuration and transport.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum canonical unpadded Base64url proof-response characters. -
Method Summary
Modifier and TypeMethodDescriptionstatic intminimumCompletionDocumentBytes(URI externalBaseUri) Returns the exact minimum listener body limit capable of carrying the largest version-1 proof-completion JWS under the configured URL authority.
-
Field Details
-
MAX_PROOF_B64URL_CHARS
public static final int MAX_PROOF_B64URL_CHARSMaximum canonical unpadded Base64url proof-response characters.
-
-
Method Details
-
minimumCompletionDocumentBytes
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- ifexternalBaseUriisnullIllegalArgumentException- if the derived bound exceeds an integer
-