Class PatchKeySpec
Object
PatchKeySpec
Specification for updating mutable key attributes via JSON Merge-Patch.
Only the following fields are supported:
expiresAt
– new expiry timestamp (RFC 3339)softLimitExpiration
– new soft-limit expiry (RFC 3339)softUsageLimit
– new soft usage capmaxUsageLimit
– new hard usage cap
Any field left null
will be omitted from the patch.
Usage example
PatchKeySpec patch = new PatchKeySpec.Builder()
.expiresAt(Instant.parse("2030-05-31T23:59:59Z"))
.softLimitExpiration(Instant.parse("2029-12-31T23:59:59Z"))
.softUsageLimit(40_000)
.maxUsageLimit(50_000)
.build();
sdk.patchKey("my_MLKEM_Key", patch);
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionConverts non-null fields into a JSON Merge-Patch document.
-
Method Details
-
getExpiresAt
-
getSoftLimitExpiration
-
getSoftUsageLimit
-
getMaxUsageLimit
-
toMergePatch
-