Package co.ankatech.ankasecure.sdk.model
Class SignEncryptStreamOptions
java.lang.Object
co.ankatech.ankasecure.sdk.model.SignEncryptStreamOptions
Options of a streaming sign-then-encrypt (
signThenEncryptFileStream): the validity of the
inner signature and the advisory flavor hint.
An option left unset is not sent, so the server applies its own default. New options are added to this type rather than as new method overloads.
sdk.signThenEncryptFileStream("my-ml-dsa-key", "my-ml-kem-key", input, output,
SignEncryptStreamOptions.builder().validityDays(90).flavor(SignEncryptFlavor.ASYMMETRIC).build());
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()flavor()static SignEncryptStreamOptionsnone()toString()
-
Method Details
-
none
- Returns:
- the options that set nothing: the server's defaults apply
-
builder
- Returns:
- a builder with nothing set
-
validityDays
- Returns:
- the inner signature's validity in days, or empty when it does not expire
-
flavor
- Returns:
- the advisory flavor hint, or empty when none is sent
-
toString
-