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 enumThe relationship the endpoints describe: SELF (an application to itself), INTERNAL (one application to another), OUTBOUND (an application to an external counterparty), INBOUND (an external counterparty to an application).static 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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGrantsItem(ExchangeGrantSummary grantsItem) addTagsItem(String tagsItem) businessPurpose(String businessPurpose) clonedFromExchangeId(UUID clonedFromExchangeId) createdAt(OffsetDateTime createdAt) destination(ExchangeEndpoint destination) effectiveFrom(OffsetDateTime effectiveFrom) effectiveUntil(OffsetDateTime effectiveUntil) booleanexchangeContextId(UUID exchangeContextId) exchangeContextName(String exchangeContextName) static ExchangeDetailResponseCreate an instance of ExchangeDetailResponse given an JSON stringBusiness purposeSource Exchange id when produced via clone (provenance)Audit: created atAudit: created by.Where the relationship endsValidity window startValidity window endExchange Context reference idExchange Context display nameThe Capability Grants the Exchange owns, live and retired, oldest first.getId()Stable Exchange UUIDgetName()Display namegetNotes()Free-text notesWhere the relationship startsOwner principal UUIDThe relationship the endpoints describe: SELF (an application to itself), INTERNAL (one application to another), OUTBOUND (an application to an external counterparty), INBOUND (an external counterparty to an application).The wire value ofrelationship: what the server sent, verbatim.Revocation timestamp (REVOKED/EXPIRED/CONSUMED only)Revocation actor (REVOKED/EXPIRED/CONSUMED only).Revocation reason (REVOKED/EXPIRED/CONSUMED only)The time zone in which the schedules of the grants' Constraint Policy versions are evaluated: the platform setting authorization.schedule.timezone, an IANA region zone or UTC.Lifecycle statusThe wire value ofstatus: what the server sent, verbatim.When the Exchange was suspended; present only while it is SUSPENDEDWho suspended the Exchange; present only while it is SUSPENDED.Why the Exchange was suspended; present only while it is SUSPENDEDgetTags()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)grants(List<ExchangeGrantSummary> grants) inthashCode()origin(ExchangeEndpoint origin) ownerPrincipalId(UUID ownerPrincipalId) relationship(ExchangeDetailResponse.RelationshipEnum relationship) revokedAt(OffsetDateTime revokedAt) revokedReason(String revokedReason) scheduleTimeZone(String scheduleTimeZone) voidsetBusinessPurpose(String businessPurpose) voidsetClonedFromExchangeId(UUID clonedFromExchangeId) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(String createdBy) voidsetDestination(ExchangeEndpoint destination) voidsetEffectiveFrom(OffsetDateTime effectiveFrom) voidsetEffectiveUntil(OffsetDateTime effectiveUntil) voidsetExchangeContextId(UUID exchangeContextId) voidsetExchangeContextName(String exchangeContextName) voidsetGrants(List<ExchangeGrantSummary> grants) voidvoidvoidvoidsetOrigin(ExchangeEndpoint origin) voidsetOwnerPrincipalId(UUID ownerPrincipalId) voidsetRelationship(ExchangeDetailResponse.RelationshipEnum relationship) voidsetRevokedAt(OffsetDateTime revokedAt) voidsetRevokedBy(String revokedBy) voidsetRevokedReason(String revokedReason) voidsetScheduleTimeZone(String scheduleTimeZone) voidvoidsetSuspendedAt(OffsetDateTime suspendedAt) voidsetSuspendedBy(String suspendedBy) voidsetSuspendedReason(String suspendedReason) voidvoidsetTenantId(UUID tenantId) voidsetTerminalCause(ExchangeDetailResponse.TerminalCauseEnum terminalCause) voidsetTerminalCauseKeyIdentity(UUID terminalCauseKeyIdentity) voidsetUpdatedAt(OffsetDateTime updatedAt) voidsetUpdatedBy(String updatedBy) voidsetVersion(Integer version) suspendedAt(OffsetDateTime suspendedAt) suspendedBy(String suspendedBy) suspendedReason(String suspendedReason) 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_BUSINESS_PURPOSE
- See Also:
-
SERIALIZED_NAME_CLONED_FROM_EXCHANGE_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_CREATED_BY
- See Also:
-
SERIALIZED_NAME_DESTINATION
- 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_GRANTS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NOTES
- See Also:
-
SERIALIZED_NAME_ORIGIN
- See Also:
-
SERIALIZED_NAME_OWNER_PRINCIPAL_ID
- See Also:
-
SERIALIZED_NAME_RELATIONSHIP
- See Also:
-
SERIALIZED_NAME_REVOKED_AT
- See Also:
-
SERIALIZED_NAME_REVOKED_BY
- See Also:
-
SERIALIZED_NAME_REVOKED_REASON
- See Also:
-
SERIALIZED_NAME_SCHEDULE_TIME_ZONE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_SUSPENDED_AT
- See Also:
-
SERIALIZED_NAME_SUSPENDED_BY
- See Also:
-
SERIALIZED_NAME_SUSPENDED_REASON
- 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
-
getRelationshipAsString
The wire value ofrelationship: 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
getRelationship()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
-
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
-
businessPurpose
-
getBusinessPurpose
Business purpose- Returns:
- businessPurpose
-
setBusinessPurpose
-
clonedFromExchangeId
-
getClonedFromExchangeId
Source Exchange id when produced via clone (provenance)- Returns:
- clonedFromExchangeId
-
setClonedFromExchangeId
-
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
-
destination
-
getDestination
Where the relationship ends- Returns:
- destination
-
setDestination
-
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
-
grants
-
addGrantsItem
-
getGrants
The Capability Grants the Exchange owns, live and retired, oldest first. They authorize in the Exchange's context, and only while the Exchange is ACTIVE.- Returns:
- grants
-
setGrants
-
id
-
getId
Stable Exchange UUID- Returns:
- id
-
setId
-
name
-
getName
Display name- Returns:
- name
-
setName
-
notes
-
getNotes
Free-text notes- Returns:
- notes
-
setNotes
-
origin
-
getOrigin
Where the relationship starts- Returns:
- origin
-
setOrigin
-
ownerPrincipalId
-
getOwnerPrincipalId
Owner principal UUID- Returns:
- ownerPrincipalId
-
setOwnerPrincipalId
-
relationship
public ExchangeDetailResponse relationship(@Nullable ExchangeDetailResponse.RelationshipEnum relationship) -
getRelationship
The relationship the endpoints describe: SELF (an application to itself), INTERNAL (one application to another), OUTBOUND (an application to an external counterparty), INBOUND (an external counterparty to an application). Derived, never stored.- Returns:
- relationship
-
setRelationship
-
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
-
scheduleTimeZone
-
getScheduleTimeZone
The time zone in which the schedules of the grants' Constraint Policy versions are evaluated: the platform setting authorization.schedule.timezone, an IANA region zone or UTC.- Returns:
- scheduleTimeZone
-
setScheduleTimeZone
-
status
-
getStatus
Lifecycle status- Returns:
- status
-
setStatus
-
suspendedAt
-
getSuspendedAt
When the Exchange was suspended; present only while it is SUSPENDED- Returns:
- suspendedAt
-
setSuspendedAt
-
suspendedBy
-
getSuspendedBy
Who suspended the Exchange; present only while it is SUSPENDED. 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:
- suspendedBy
-
setSuspendedBy
-
suspendedReason
-
getSuspendedReason
Why the Exchange was suspended; present only while it is SUSPENDED- Returns:
- suspendedReason
-
setSuspendedReason
-
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 last live 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
-