Class EstServerKeygenResponse.Body
java.lang.Object
zeroecho.pki.server.est.EstServerKeygenResponse.Body
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
EstServerKeygenResponse
Thread-confined encrypted multipart delivery. Writing uses a fixed 64 KiB
transfer buffer plus base64 encoding state. Close releases custody and is
idempotent; it never deletes the retained artifact or acknowledges receipt.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Releases the ciphertext lease; safe to call repeatedly.voidwriteTo(OutputStream output, CancellationSignal cancellation) Writes one complete base64 multipart response without closing the caller's stream.
-
Method Details
-
writeTo
Writes one complete base64 multipart response without closing the caller's stream. Ciphertext is streamed from the leased durable artifact.- Parameters:
output- caller-owned HTTP response streamcancellation- checked before and during delivery- Throws:
IOException- if ciphertext or transport I/O failsIllegalStateException- if closed or already written
-
close
Releases the ciphertext lease; safe to call repeatedly.- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-