Class KeySummaryResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.KeySummaryResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class KeySummaryResponse
extends Object
Summary metadata for a cryptographic key after a lifecycle operation (typically rotation: same kid, advanced material version). Same shape as the key summary the cryptographic service returns.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow a composite key's components are combined — the construction axis that a coarse key type deliberately does not carry.static classstatic enumCurrent lifecycle state, relayed verbatim from the cryptographic service; the declared set is its vocabulary. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddKeyOpsItem(String keyOpsItem) compositeMode(KeySummaryResponse.CompositeModeEnum compositeMode) booleanexportable(Boolean exportable) static KeySummaryResponseCreate an instance of KeySummaryResponse given an JSON stringgetAlg()Algorithm identifier.How a composite key's components are combined — the construction axis that a coarse key type deliberately does not carry.The wire value ofcompositeMode: what the server sent, verbatim.UTC timestamp at which the key was created.Hard expiration UTC timestamp.Whether the public key material can be exported via migration endpoints.getKdf()Key derivation function the key stores, relayed from the cryptographic service exactly as stored — one of the tokens the KdfAlgorithm vocabulary publishes.Permitted key operations (encrypt, decrypt, sign, verify, wrapKey, unwrapKey).getKid()Stable key identifier (kid).getKty()Key type (kty).Hard usage limit.PRIMARY material version of the Stable KID after the rotation.Current lifecycle state, relayed verbatim from the cryptographic service; the declared set is its vocabulary.The wire value ofstatus: what the server sent, verbatim.Cumulative count of cryptographic operations performed with this key.inthashCode()maxUsageLimit(Integer maxUsageLimit) primaryMaterialVersion(Integer primaryMaterialVersion) voidvoidsetCompositeMode(KeySummaryResponse.CompositeModeEnum compositeMode) voidsetCreatedAt(String createdAt) voidsetExpiresAt(String expiresAt) voidsetExportable(Boolean exportable) voidvoidvoidvoidvoidsetMaxUsageLimit(Integer maxUsageLimit) voidsetPrimaryMaterialVersion(Integer primaryMaterialVersion) voidvoidsetUsageCount(Integer usageCount) status(KeySummaryResponse.StatusEnum status) toJson()Convert an instance of KeySummaryResponse to an JSON stringtoString()usageCount(Integer usageCount) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.
-
Field Details
-
SERIALIZED_NAME_ALG
- See Also:
-
SERIALIZED_NAME_COMPOSITE_MODE
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_EXPIRES_AT
- See Also:
-
SERIALIZED_NAME_EXPORTABLE
- See Also:
-
SERIALIZED_NAME_KDF
- See Also:
-
SERIALIZED_NAME_KEY_OPS
- See Also:
-
SERIALIZED_NAME_KID
- See Also:
-
SERIALIZED_NAME_KTY
- See Also:
-
SERIALIZED_NAME_MAX_USAGE_LIMIT
- See Also:
-
SERIALIZED_NAME_PRIMARY_MATERIAL_VERSION
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_USAGE_COUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
KeySummaryResponse
public KeySummaryResponse()
-
-
Method Details
-
getCompositeModeAsString
The wire value ofcompositeMode: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getCompositeMode()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
getStatusAsString
The wire value ofstatus: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getStatus()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
alg
-
getAlg
Algorithm identifier.- Returns:
- alg
-
setAlg
-
compositeMode
public KeySummaryResponse compositeMode(@Nullable KeySummaryResponse.CompositeModeEnum compositeMode) -
getCompositeMode
How a composite key's components are combined — the construction axis that a coarse key type deliberately does not carry. COMPOSITE_KEM_COMBINE: the component secrets are combined into one via kdf. COMPOSITE_SIGNATURE: both components sign one composite message and the signature holds only when both verify. Absent for simple keys, which have no construction.- Returns:
- compositeMode
-
setCompositeMode
-
createdAt
-
getCreatedAt
UTC timestamp at which the key was created.- Returns:
- createdAt
-
setCreatedAt
-
expiresAt
-
getExpiresAt
Hard expiration UTC timestamp. Null for keys without an expiration.- Returns:
- expiresAt
-
setExpiresAt
-
exportable
-
getExportable
Whether the public key material can be exported via migration endpoints.- Returns:
- exportable
-
setExportable
-
kdf
-
getKdf
Key derivation function the key stores, relayed from the cryptographic service exactly as stored — one of the tokens the KdfAlgorithm vocabulary publishes. Null for keys that are not COMPOSITE_KEM_COMBINE.- Returns:
- kdf
-
setKdf
-
keyOps
-
addKeyOpsItem
-
getKeyOps
Permitted key operations (encrypt, decrypt, sign, verify, wrapKey, unwrapKey).- Returns:
- keyOps
-
setKeyOps
-
kid
-
getKid
Stable key identifier (kid). Unchanged by rotation.- Returns:
- kid
-
setKid
-
kty
-
getKty
Key type (kty). Simple keys include oct, RSA, EC, OKP, ML-KEM, ML-DSA, FALCON, SLH-DSA, SM2, HQC — an illustrative sample, not the vocabulary. Every composite key publishes the single coarse token COMPOSITE; how it is constructed is a separate axis, published as compositeMode. The authoritative set is the published key-type vocabulary the ?kty= filters accept, and this field is always a member of it.- Returns:
- kty
-
setKty
-
maxUsageLimit
-
getMaxUsageLimit
Hard usage limit. Null means unlimited.- Returns:
- maxUsageLimit
-
setMaxUsageLimit
-
-
getPrimaryMaterialVersion
PRIMARY material version of the Stable KID after the rotation. The kid itself never changes — rotation advances this version and retires the previous one. Omitted when the version is not resolvable.- Returns:
- primaryMaterialVersion
-
setPrimaryMaterialVersion
-
status
-
getStatus
Current lifecycle state, relayed verbatim from the cryptographic service; the declared set is its vocabulary. The token is lower-case (<code>active</code>, never <code>ACTIVE</code>): this field carries the wire token of the key status, not the constant name.- Returns:
- status
-
setStatus
-
usageCount
-
getUsageCount
Cumulative count of cryptographic operations performed with this key.- Returns:
- usageCount
-
setUsageCount
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to KeySummaryResponse
-
validateJsonElementAsCandidate
public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is not a KeySummaryResponse
-
fromJson
Create an instance of KeySummaryResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KeySummaryResponse
- Throws:
IOException- if the JSON string is invalid with respect to KeySummaryResponse
-
toJson
Convert an instance of KeySummaryResponse to an JSON string- Returns:
- JSON string
-