Class InternalCryptoUseCaseResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.InternalCryptoUseCaseResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class InternalCryptoUseCaseResponse
extends Object
InternalCryptoUseCase aggregate projection. On create (201), credential.clientSecret carries the plaintext shown ONCE; on read (200), credential.clientSecret is absent from the JSON payload.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumLifecycle statestatic enumWhy the use case was revoked. -
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactor(ActorBlock actor) addAssetsItem(AssetBlock assetsItem) addGrantsItem(GrantBlock grantsItem) applicationId(UUID applicationId) assets(List<AssetBlock> assets) constraintPolicy(ConstraintPolicyBlock constraintPolicy) createdAt(OffsetDateTime createdAt) credential(CredentialBlock credential) description(String description) displayName(String displayName) booleanexchangeContext(ContextBlock exchangeContext) Create an instance of InternalCryptoUseCaseResponse given an JSON stringgetActor()Embedded Actor summaryOwning applicationAsset references, each carrying the referenced key's own lifecycle status and the role it plays here (0 for interop, 1 for atomic, 2 for cross-kid)Embedded Constraint Policy summaryCreation timestampEmbedded Credential (plaintext ONLY on 201; null on GET)Auditor-readable descriptionHuman-readable labelEmbedded Exchange Context summaryOwned Capability Grants (typically 1..2: ENCRYPT + DECRYPT)getName()Tenant-scoped slugWhen the use case was revoked.Why the use case was revoked: the operator's text for an operator revocation, or the system's reason token for a cascade (cascade_from_key.destroyed when its key was destroyed).Lifecycle stateThe wire value ofstatus: what the server sent, verbatim.Why the use case was revoked.The wire value ofterminalCause: what the server sent, verbatim.Identity (key_aliases.id) of the destroyed key whose destruction revoked the use case.Aggregate identifierOptimistic-lock discriminator for PATCH/DELETEgrants(List<GrantBlock> grants) inthashCode()revokedAt(OffsetDateTime revokedAt) revokedReason(String revokedReason) voidsetActor(ActorBlock actor) voidsetApplicationId(UUID applicationId) voidsetAssets(List<AssetBlock> assets) voidsetConstraintPolicy(ConstraintPolicyBlock constraintPolicy) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCredential(CredentialBlock credential) voidsetDescription(String description) voidsetDisplayName(String displayName) voidsetExchangeContext(ContextBlock exchangeContext) voidsetGrants(List<GrantBlock> grants) voidvoidsetRevokedAt(OffsetDateTime revokedAt) voidsetRevokedReason(String revokedReason) voidvoidsetTerminalCause(InternalCryptoUseCaseResponse.TerminalCauseEnum terminalCause) voidsetTerminalCauseKeyIdentity(UUID terminalCauseKeyIdentity) voidsetUseCaseId(UUID useCaseId) voidsetVersion(Integer version) terminalCause(InternalCryptoUseCaseResponse.TerminalCauseEnum terminalCause) terminalCauseKeyIdentity(UUID terminalCauseKeyIdentity) toJson()Convert an instance of InternalCryptoUseCaseResponse to an JSON stringtoString()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_ACTOR
- See Also:
-
SERIALIZED_NAME_APPLICATION_ID
- See Also:
-
SERIALIZED_NAME_ASSETS
- See Also:
-
SERIALIZED_NAME_CONSTRAINT_POLICY
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_CREDENTIAL
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_DISPLAY_NAME
- See Also:
-
SERIALIZED_NAME_EXCHANGE_CONTEXT
- See Also:
-
SERIALIZED_NAME_GRANTS
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_REVOKED_AT
- See Also:
-
SERIALIZED_NAME_REVOKED_REASON
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TERMINAL_CAUSE
- See Also:
-
SERIALIZED_NAME_TERMINAL_CAUSE_KEY_IDENTITY
- See Also:
-
SERIALIZED_NAME_USE_CASE_ID
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
InternalCryptoUseCaseResponse
public InternalCryptoUseCaseResponse()
-
-
Method Details
-
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
-
getTerminalCauseAsString
The wire value ofterminalCause: 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
getTerminalCause()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
-
actor
-
getActor
Embedded Actor summary- Returns:
- actor
-
setActor
-
applicationId
-
getApplicationId
Owning application- Returns:
- applicationId
-
setApplicationId
-
assets
-
addAssetsItem
-
getAssets
Asset references, each carrying the referenced key's own lifecycle status and the role it plays here (0 for interop, 1 for atomic, 2 for cross-kid)- Returns:
- assets
-
setAssets
-
constraintPolicy
public InternalCryptoUseCaseResponse constraintPolicy(@Nullable ConstraintPolicyBlock constraintPolicy) -
getConstraintPolicy
Embedded Constraint Policy summary- Returns:
- constraintPolicy
-
setConstraintPolicy
-
createdAt
-
getCreatedAt
Creation timestamp- Returns:
- createdAt
-
setCreatedAt
-
credential
-
getCredential
Embedded Credential (plaintext ONLY on 201; null on GET)- Returns:
- credential
-
setCredential
-
description
-
getDescription
Auditor-readable description- Returns:
- description
-
setDescription
-
displayName
-
getDisplayName
Human-readable label- Returns:
- displayName
-
setDisplayName
-
exchangeContext
-
getExchangeContext
Embedded Exchange Context summary- Returns:
- exchangeContext
-
setExchangeContext
-
grants
-
addGrantsItem
-
getGrants
Owned Capability Grants (typically 1..2: ENCRYPT + DECRYPT)- Returns:
- grants
-
setGrants
-
name
-
getName
Tenant-scoped slug- Returns:
- name
-
setName
-
revokedAt
-
getRevokedAt
When the use case was revoked. Absent while it is not REVOKED.- Returns:
- revokedAt
-
setRevokedAt
-
revokedReason
-
getRevokedReason
Why the use case was revoked: the operator's text for an operator revocation, or the system's reason token for a cascade (cascade_from_key.destroyed when its key was destroyed). Free text an operator typed; render it as text. Absent while it is not REVOKED.- Returns:
- revokedReason
-
setRevokedReason
-
status
public InternalCryptoUseCaseResponse status(@Nullable InternalCryptoUseCaseResponse.StatusEnum status) -
getStatus
Lifecycle state- Returns:
- status
-
setStatus
-
terminalCause
public InternalCryptoUseCaseResponse terminalCause(@Nullable InternalCryptoUseCaseResponse.TerminalCauseEnum terminalCause) -
getTerminalCause
Why the use case was revoked. KEY_DESTROYED means a key it names was destroyed and the use case ended with it. Absent while it is not REVOKED.- Returns:
- terminalCause
-
setTerminalCause
public void setTerminalCause(@Nullable InternalCryptoUseCaseResponse.TerminalCauseEnum terminalCause) -
terminalCauseKeyIdentity
public InternalCryptoUseCaseResponse terminalCauseKeyIdentity(@Nullable UUID terminalCauseKeyIdentity) -
getTerminalCauseKeyIdentity
Identity (key_aliases.id) of the destroyed key whose destruction revoked the use case. Present exactly when terminalCause is KEY_DESTROYED.- Returns:
- terminalCauseKeyIdentity
-
setTerminalCauseKeyIdentity
-
useCaseId
-
getUseCaseId
Aggregate identifier- Returns:
- useCaseId
-
setUseCaseId
-
version
-
getVersion
Optimistic-lock discriminator for PATCH/DELETE- Returns:
- version
-
setVersion
-
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 InternalCryptoUseCaseResponse
-
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 InternalCryptoUseCaseResponse
-
fromJson
Create an instance of InternalCryptoUseCaseResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InternalCryptoUseCaseResponse
- Throws:
IOException- if the JSON string is invalid with respect to InternalCryptoUseCaseResponse
-
toJson
Convert an instance of InternalCryptoUseCaseResponse to an JSON string- Returns:
- JSON string
-