Package co.ankatech.ankasecure.sdk.model
Class SignOptions
java.lang.Object
co.ankatech.ankasecure.sdk.model.SignOptions
Options of an operation that produces a signature:
sign, signFileCompact,
signThenEncrypt, signThenEncryptFileCompact and resignFileStream.
An option left unset is not sent, so the server applies its own default: a signature with no
validityDays does not expire. New options are added to this type rather than as new method
overloads.
SignResult signed = sdk.sign("my-ml-dsa-key", data, null,
SignOptions.builder().validityDays(365).build());
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longThe largest validity the API accepts, in days.static final longThe smallest validity the API accepts, in days. -
Method Summary
Modifier and TypeMethodDescriptionstatic SignOptions.Builderbuilder()static SignOptionsnone()toString()
-
Field Details
-
MIN_VALIDITY_DAYS
public static final long MIN_VALIDITY_DAYSThe smallest validity the API accepts, in days.- See Also:
-
MAX_VALIDITY_DAYS
public static final long MAX_VALIDITY_DAYSThe largest validity the API accepts, in days. A deployment may configure a lower maximum (ankasecure.jws.local-clock.max-validity-days, 730 by default); the server refuses a value above it with 400 namingvalidityDays.- See Also:
-
-
Method Details