Class KeyExportResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.KeyExportResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class KeyExportResponse
extends Object
Complete key metadata and PUBLIC key material. Private key material is never returned. Mirrors the cryptographic service's key export response.
-
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 enumHow the key was created: GENERATED or IMPORTED.static enumKey structure: SIMPLE or COMPOSITE. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddComponentsItem(KeyComponentResponse componentsItem) addKeyOpsItem(String keyOpsItem) components(List<KeyComponentResponse> components) compositeMode(KeyExportResponse.CompositeModeEnum compositeMode) booleanexportable(Boolean exportable) static KeyExportResponseCreate an instance of KeyExportResponse given an JSON stringgetAlg()Algorithm identifier.Component PUBLIC keys for COMPOSITE keys.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.ISO-8601 UTC creation timestamp.ISO-8601 UTC hard expiration timestamp.Whether the public key material can be exported.getKdf()Key Derivation Function for COMPOSITE_KEM_COMBINE keys.Permitted key operations.getKid()Unique key identifier (kid).getKty()Key type (kty).ISO-8601 UTC timestamp of the last operation.Maximum operations permitted. 0/null means unlimited.How the key was created: GENERATED or IMPORTED.The wire value oforigin: what the server sent, verbatim.Base64-encoded PUBLIC key material.Whether the key has operational restrictions.ISO-8601 UTC soft-limit expiration timestamp.Soft-limit usage count for warnings.Lifecycle state.getType()Key structure: SIMPLE or COMPOSITE.The wire value oftype: what the server sent, verbatim.Number of operations performed with this key.inthashCode()lastUsedAt(String lastUsedAt) maxUsageLimit(Integer maxUsageLimit) origin(KeyExportResponse.OriginEnum origin) restricted(Boolean restricted) voidvoidsetComponents(List<KeyComponentResponse> components) voidsetCompositeMode(KeyExportResponse.CompositeModeEnum compositeMode) voidsetCreatedAt(String createdAt) voidsetExpiresAt(String expiresAt) voidsetExportable(Boolean exportable) voidvoidvoidvoidvoidsetLastUsedAt(String lastUsedAt) voidsetMaxUsageLimit(Integer maxUsageLimit) voidvoidsetPublicKey(String publicKey) voidsetRestricted(Boolean restricted) voidsetSoftLimitExpiration(String softLimitExpiration) voidsetSoftUsageLimit(Integer softUsageLimit) voidvoidvoidsetUsageCount(Integer usageCount) softLimitExpiration(String softLimitExpiration) softUsageLimit(Integer softUsageLimit) toJson()Convert an instance of KeyExportResponse 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_COMPONENTS
- 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_LAST_USED_AT
- See Also:
-
SERIALIZED_NAME_MAX_USAGE_LIMIT
- See Also:
-
SERIALIZED_NAME_ORIGIN
- See Also:
-
SERIALIZED_NAME_PUBLIC_KEY
- See Also:
-
SERIALIZED_NAME_RESTRICTED
- See Also:
-
SERIALIZED_NAME_SOFT_LIMIT_EXPIRATION
- See Also:
-
SERIALIZED_NAME_SOFT_USAGE_LIMIT
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_USAGE_COUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
KeyExportResponse
public KeyExportResponse()
-
-
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
-
getOriginAsString
The wire value oforigin: 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
getOrigin()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
-
getTypeAsString
The wire value oftype: 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
getType()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
-
components
-
addComponentsItem
-
getComponents
Component PUBLIC keys for COMPOSITE keys. Null for SIMPLE keys.- Returns:
- components
-
setComponents
-
compositeMode
-
getCompositeMode
How a composite key's components are combined — the construction axis that a coarse key type deliberately does not carry. Absent for simple keys.- Returns:
- compositeMode
-
setCompositeMode
-
createdAt
-
getCreatedAt
ISO-8601 UTC creation timestamp.- Returns:
- createdAt
-
setCreatedAt
-
expiresAt
-
getExpiresAt
ISO-8601 UTC hard expiration timestamp.- Returns:
- expiresAt
-
setExpiresAt
-
exportable
-
getExportable
Whether the public key material can be exported.- Returns:
- exportable
-
setExportable
-
kdf
-
getKdf
Key Derivation Function for COMPOSITE_KEM_COMBINE keys.- Returns:
- kdf
-
setKdf
-
keyOps
-
addKeyOpsItem
-
getKeyOps
Permitted key operations.- Returns:
- keyOps
-
setKeyOps
-
kid
-
getKid
Unique key identifier (kid).- Returns:
- kid
-
setKid
-
kty
-
getKty
Key type (kty). Simple keys carry their own family; every composite key carries the single coarse token COMPOSITE and reports its construction in compositeMode.- Returns:
- kty
-
setKty
-
lastUsedAt
-
getLastUsedAt
ISO-8601 UTC timestamp of the last operation.- Returns:
- lastUsedAt
-
setLastUsedAt
-
maxUsageLimit
-
getMaxUsageLimit
Maximum operations permitted. 0/null means unlimited.- Returns:
- maxUsageLimit
-
setMaxUsageLimit
-
origin
-
getOrigin
How the key was created: GENERATED or IMPORTED.- Returns:
- origin
-
setOrigin
-
publicKey
-
getPublicKey
Base64-encoded PUBLIC key material. Null for symmetric and composite keys.- Returns:
- publicKey
-
setPublicKey
-
restricted
-
getRestricted
Whether the key has operational restrictions.- Returns:
- restricted
-
setRestricted
-
softLimitExpiration
-
getSoftLimitExpiration
ISO-8601 UTC soft-limit expiration timestamp.- Returns:
- softLimitExpiration
-
setSoftLimitExpiration
-
softUsageLimit
-
getSoftUsageLimit
Soft-limit usage count for warnings.- Returns:
- softUsageLimit
-
setSoftUsageLimit
-
status
-
getStatus
Lifecycle state.- Returns:
- status
-
setStatus
-
type
-
getType
Key structure: SIMPLE or COMPOSITE.- Returns:
- type
-
setType
-
usageCount
-
getUsageCount
Number of 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 KeyExportResponse
-
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 KeyExportResponse
-
fromJson
Create an instance of KeyExportResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KeyExportResponse
- Throws:
IOException- if the JSON string is invalid with respect to KeyExportResponse
-
toJson
Convert an instance of KeyExportResponse to an JSON string- Returns:
- JSON string
-