Class ExchangeDetailResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ExchangeDetailResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ExchangeDetailResponse
extends Object
Full Cryptographic Exchange detail
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumLifecycle statusstatic enumWhy the Exchange reached its terminal state. -
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 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 TypeMethodDescriptionaddTagsItem(String tagsItem) applicationId(UUID applicationId) applicationName(String applicationName) businessPurpose(String businessPurpose) clonedFromExchangeId(UUID clonedFromExchangeId) constraintPolicyId(UUID constraintPolicyId) constraintPolicyName(String constraintPolicyName) counterparty(String counterparty) createdAt(OffsetDateTime createdAt) effectiveFrom(OffsetDateTime effectiveFrom) effectiveUntil(OffsetDateTime effectiveUntil) booleanexchangeContextId(UUID exchangeContextId) exchangeContextName(String exchangeContextName) static ExchangeDetailResponseCreate an instance of ExchangeDetailResponse given an JSON stringActor reference idActor display nameApplication reference idApplication display nameAsset KID (string identifier)Business purposeSource Exchange id when produced via clone (provenance)Constraint Policy reference idConstraint Policy display nameCounterparty nameAudit: created atAudit: created by.Validity window startValidity window endExchange Context reference idExchange Context display nameOwned Capability Grant reference id (NULL while DRAFT/READY)getId()Stable Exchange UUIDgetName()Display namegetNotes()Free-text notesWhether the Exchange's actor holds the operation scopes its capability grant needs.Owner principal UUIDRevocation timestamp (REVOKED/EXPIRED/CONSUMED only)Revocation actor (REVOKED/EXPIRED/CONSUMED only).Revocation reason (REVOKED/EXPIRED/CONSUMED only)Lifecycle statusThe wire value ofstatus: what the server sent, verbatim.getTags()Free-form tagsTenant UUID (denormalized; matches the JWT tenantId of the requester)Why the Exchange reached its terminal state.The wire value ofterminalCause: what the server sent, verbatim.Identity (key_aliases.id) of the destroyed key whose destruction ended the Exchange.Audit: last updated atAudit: last updated by.Optimistic-lock version of the Exchange (carry into PATCH and state-transition request bodies)inthashCode()operationPermissions(ExchangeOperationPermissions operationPermissions) ownerPrincipalId(UUID ownerPrincipalId) revokedAt(OffsetDateTime revokedAt) revokedReason(String revokedReason) voidsetActorId(UUID actorId) voidsetActorName(String actorName) voidsetApplicationId(UUID applicationId) voidsetApplicationName(String applicationName) voidsetAssetKid(String assetKid) voidsetBusinessPurpose(String businessPurpose) voidsetClonedFromExchangeId(UUID clonedFromExchangeId) voidsetConstraintPolicyId(UUID constraintPolicyId) voidsetConstraintPolicyName(String constraintPolicyName) voidsetCounterparty(String counterparty) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(String createdBy) voidsetEffectiveFrom(OffsetDateTime effectiveFrom) voidsetEffectiveUntil(OffsetDateTime effectiveUntil) voidsetExchangeContextId(UUID exchangeContextId) voidsetExchangeContextName(String exchangeContextName) voidsetGrantId(UUID grantId) voidvoidvoidvoidsetOperationPermissions(ExchangeOperationPermissions operationPermissions) voidsetOwnerPrincipalId(UUID ownerPrincipalId) voidsetRevokedAt(OffsetDateTime revokedAt) voidsetRevokedBy(String revokedBy) voidsetRevokedReason(String revokedReason) voidvoidvoidsetTenantId(UUID tenantId) voidsetTerminalCause(ExchangeDetailResponse.TerminalCauseEnum terminalCause) voidsetTerminalCauseKeyIdentity(UUID terminalCauseKeyIdentity) voidsetUpdatedAt(OffsetDateTime updatedAt) voidsetUpdatedBy(String updatedBy) voidsetVersion(Integer version) terminalCause(ExchangeDetailResponse.TerminalCauseEnum terminalCause) terminalCauseKeyIdentity(UUID terminalCauseKeyIdentity) toJson()Convert an instance of ExchangeDetailResponse to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) 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_ID
- See Also:
-
SERIALIZED_NAME_ACTOR_NAME
- See Also:
-
SERIALIZED_NAME_APPLICATION_ID
- See Also:
-
SERIALIZED_NAME_APPLICATION_NAME
- See Also:
-
SERIALIZED_NAME_ASSET_KID
- See Also:
-
SERIALIZED_NAME_BUSINESS_PURPOSE
- See Also:
-
SERIALIZED_NAME_CLONED_FROM_EXCHANGE_ID
- See Also:
-
SERIALIZED_NAME_CONSTRAINT_POLICY_ID
- See Also:
-
SERIALIZED_NAME_CONSTRAINT_POLICY_NAME
- See Also:
-
SERIALIZED_NAME_COUNTERPARTY
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_CREATED_BY
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_FROM
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_UNTIL
- See Also:
-
SERIALIZED_NAME_EXCHANGE_CONTEXT_ID
- See Also:
-
SERIALIZED_NAME_EXCHANGE_CONTEXT_NAME
- See Also:
-
SERIALIZED_NAME_GRANT_ID
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NOTES
- See Also:
-
SERIALIZED_NAME_OPERATION_PERMISSIONS
- See Also:
-
SERIALIZED_NAME_OWNER_PRINCIPAL_ID
- See Also:
-
SERIALIZED_NAME_REVOKED_AT
- See Also:
-
SERIALIZED_NAME_REVOKED_BY
- See Also:
-
SERIALIZED_NAME_REVOKED_REASON
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TAGS
- See Also:
-
SERIALIZED_NAME_TENANT_ID
- See Also:
-
SERIALIZED_NAME_TERMINAL_CAUSE
- See Also:
-
SERIALIZED_NAME_TERMINAL_CAUSE_KEY_IDENTITY
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_BY
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ExchangeDetailResponse
public ExchangeDetailResponse()
-
-
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
-
actorId
-
getActorId
Actor reference id- Returns:
- actorId
-
setActorId
-
actorName
-
getActorName
Actor display name- Returns:
- actorName
-
setActorName
-
applicationId
-
getApplicationId
Application reference id- Returns:
- applicationId
-
setApplicationId
-
applicationName
-
getApplicationName
Application display name- Returns:
- applicationName
-
setApplicationName
-
assetKid
-
getAssetKid
Asset KID (string identifier)- Returns:
- assetKid
-
setAssetKid
-
businessPurpose
-
getBusinessPurpose
Business purpose- Returns:
- businessPurpose
-
setBusinessPurpose
-
clonedFromExchangeId
-
getClonedFromExchangeId
Source Exchange id when produced via clone (provenance)- Returns:
- clonedFromExchangeId
-
setClonedFromExchangeId
-
constraintPolicyId
-
getConstraintPolicyId
Constraint Policy reference id- Returns:
- constraintPolicyId
-
setConstraintPolicyId
-
constraintPolicyName
-
getConstraintPolicyName
Constraint Policy display name- Returns:
- constraintPolicyName
-
setConstraintPolicyName
-
counterparty
-
getCounterparty
Counterparty name- Returns:
- counterparty
-
setCounterparty
-
createdAt
-
getCreatedAt
Audit: created at- Returns:
- createdAt
-
setCreatedAt
-
createdBy
-
getCreatedBy
Audit: created by. Shown to a caller seated in the platform tenant; any other caller (an impersonation session and core-api relaying a tenant caller's read included) receives it only when it names a member of the caller's own tenant, and otherwise receives it withheld (absent or null): a platform operator's principal, a service or system principal, and a value that names neither a live member nor one of the tenant's own Cryptographic Actors.- Returns:
- createdBy
-
setCreatedBy
-
effectiveFrom
-
getEffectiveFrom
Validity window start- Returns:
- effectiveFrom
-
setEffectiveFrom
-
effectiveUntil
-
getEffectiveUntil
Validity window end- Returns:
- effectiveUntil
-
setEffectiveUntil
-
exchangeContextId
-
getExchangeContextId
Exchange Context reference id- Returns:
- exchangeContextId
-
setExchangeContextId
-
exchangeContextName
-
getExchangeContextName
Exchange Context display name- Returns:
- exchangeContextName
-
setExchangeContextName
-
grantId
-
getGrantId
Owned Capability Grant reference id (NULL while DRAFT/READY)- Returns:
- grantId
-
setGrantId
-
id
-
getId
Stable Exchange UUID- Returns:
- id
-
setId
-
name
-
getName
Display name- Returns:
- name
-
setName
-
notes
-
getNotes
Free-text notes- Returns:
- notes
-
setNotes
-
operationPermissions
public ExchangeDetailResponse operationPermissions(@Nullable ExchangeOperationPermissions operationPermissions) -
getOperationPermissions
Whether the Exchange's actor holds the operation scopes its capability grant needs. Null while the Exchange owns no grant. Its missing member is null when the caller does not hold admin.tenant.actor.roles.read.- Returns:
- operationPermissions
-
setOperationPermissions
-
ownerPrincipalId
-
getOwnerPrincipalId
Owner principal UUID- Returns:
- ownerPrincipalId
-
setOwnerPrincipalId
-
revokedAt
-
getRevokedAt
Revocation timestamp (REVOKED/EXPIRED/CONSUMED only)- Returns:
- revokedAt
-
setRevokedAt
-
revokedBy
-
getRevokedBy
Revocation actor (REVOKED/EXPIRED/CONSUMED only). Shown to a caller seated in the platform tenant; any other caller (an impersonation session and core-api relaying a tenant caller's read included) receives it only when it names a member of the caller's own tenant, and otherwise receives it withheld (absent or null): a platform operator's principal, a service or system principal, and a value that names neither a live member nor one of the tenant's own Cryptographic Actors.- Returns:
- revokedBy
-
setRevokedBy
-
revokedReason
-
getRevokedReason
Revocation reason (REVOKED/EXPIRED/CONSUMED only)- Returns:
- revokedReason
-
setRevokedReason
-
status
-
getStatus
Lifecycle status- Returns:
- status
-
setStatus
-
tags
-
addTagsItem
-
getTags
Free-form tags- Returns:
- tags
-
setTags
-
tenantId
-
getTenantId
Tenant UUID (denormalized; matches the JWT tenantId of the requester)- Returns:
- tenantId
-
setTenantId
-
terminalCause
public ExchangeDetailResponse terminalCause(@Nullable ExchangeDetailResponse.TerminalCauseEnum terminalCause) -
getTerminalCause
Why the Exchange reached its terminal state. KEY_DESTROYED means the key it names was destroyed and the Exchange ended with it; CONSUMED means its Capability Grant was used up (single use taken, or maxUsage reached). Absent while the Exchange is not REVOKED, EXPIRED or CONSUMED.- Returns:
- terminalCause
-
setTerminalCause
-
terminalCauseKeyIdentity
-
getTerminalCauseKeyIdentity
Identity (key_aliases.id) of the destroyed key whose destruction ended the Exchange. Present exactly when terminalCause is KEY_DESTROYED.- Returns:
- terminalCauseKeyIdentity
-
setTerminalCauseKeyIdentity
-
updatedAt
-
getUpdatedAt
Audit: last updated at- Returns:
- updatedAt
-
setUpdatedAt
-
updatedBy
-
getUpdatedBy
Audit: last updated by. Shown to a caller seated in the platform tenant; any other caller (an impersonation session and core-api relaying a tenant caller's read included) receives it only when it names a member of the caller's own tenant, and otherwise receives it withheld (absent or null): a platform operator's principal, a service or system principal, and a value that names neither a live member nor one of the tenant's own Cryptographic Actors.- Returns:
- updatedBy
-
setUpdatedBy
-
version
-
getVersion
Optimistic-lock version of the Exchange (carry into PATCH and state-transition request bodies)- 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 ExchangeDetailResponse
-
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 ExchangeDetailResponse
-
fromJson
Create an instance of ExchangeDetailResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExchangeDetailResponse
- Throws:
IOException- if the JSON string is invalid with respect to ExchangeDetailResponse
-
toJson
Convert an instance of ExchangeDetailResponse to an JSON string- Returns:
- JSON string
-