Class ActorResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ActorResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ActorResponse
extends Object
Cryptographic Actor — the operational identity that authenticates and executes cryptographic operations on behalf of its parent Application.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOperational classificationstatic classstatic enumLifecycle state; only ACTIVE permits authentication -
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactorType(ActorResponse.ActorTypeEnum actorType) applicationId(UUID applicationId) applicationName(String applicationName) createdAt(OffsetDateTime createdAt) description(String description) displayName(String displayName) booleanstatic ActorResponseCreate an instance of ActorResponse given an JSON stringOperational classificationThe wire value ofactorType: what the server sent, verbatim.Parent business Application UUIDParent business Application name — enriched server-side from the @ManyToOne Application association so list views can render a human-readable label without an extra round-trip.Timestamp the Actor record was createdFree-text description of the Actor's operational roleHuman-readable label for UI / reportsgetId()Actor UUID (JWT sub claim at authentication time)True iff this Actor was auto-provisioned when the parent Application was createdgetName()Technical slug unique within the parent ApplicationPurpose tag (visible to auditors)Lifecycle state; only ACTIVE permits authenticationThe wire value ofstatus: what the server sent, verbatim.Tenant UUID this Actor belongs toTimestamp of the last update to the Actor recordOptional start of validity window (ISO-8601)Optional end of validity window (ISO-8601)inthashCode()voidsetActorType(ActorResponse.ActorTypeEnum actorType) voidsetApplicationId(UUID applicationId) voidsetApplicationName(String applicationName) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDescription(String description) voidsetDisplayName(String displayName) voidvoidsetIsDefault(Boolean isDefault) voidvoidsetPurpose(String purpose) voidsetStatus(ActorResponse.StatusEnum status) voidsetTenantId(UUID tenantId) voidsetUpdatedAt(OffsetDateTime updatedAt) voidsetValidFrom(OffsetDateTime validFrom) voidsetValidUntil(OffsetDateTime validUntil) status(ActorResponse.StatusEnum status) toJson()Convert an instance of ActorResponse 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.validFrom(OffsetDateTime validFrom) validUntil(OffsetDateTime validUntil)
-
Field Details
-
SERIALIZED_NAME_ACTOR_TYPE
- See Also:
-
SERIALIZED_NAME_APPLICATION_ID
- See Also:
-
SERIALIZED_NAME_APPLICATION_NAME
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_DISPLAY_NAME
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_IS_DEFAULT
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_PURPOSE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TENANT_ID
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_VALID_FROM
- See Also:
-
SERIALIZED_NAME_VALID_UNTIL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ActorResponse
public ActorResponse()
-
-
Method Details
-
getActorTypeAsString
The wire value ofactorType: 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
getActorType()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
-
actorType
-
getActorType
Operational classification- Returns:
- actorType
-
setActorType
-
applicationId
-
getApplicationId
Parent business Application UUID- Returns:
- applicationId
-
setApplicationId
-
applicationName
-
getApplicationName
Parent business Application name — enriched server-side from the @ManyToOne Application association so list views can render a human-readable label without an extra round-trip.- Returns:
- applicationName
-
setApplicationName
-
createdAt
-
getCreatedAt
Timestamp the Actor record was created- Returns:
- createdAt
-
setCreatedAt
-
description
-
getDescription
Free-text description of the Actor's operational role- Returns:
- description
-
setDescription
-
displayName
-
getDisplayName
Human-readable label for UI / reports- Returns:
- displayName
-
setDisplayName
-
id
-
getId
Actor UUID (JWT sub claim at authentication time)- Returns:
- id
-
setId
-
isDefault
-
getIsDefault
True iff this Actor was auto-provisioned when the parent Application was created- Returns:
- isDefault
-
setIsDefault
-
name
-
getName
Technical slug unique within the parent Application- Returns:
- name
-
setName
-
purpose
-
getPurpose
Purpose tag (visible to auditors)- Returns:
- purpose
-
setPurpose
-
status
-
getStatus
Lifecycle state; only ACTIVE permits authentication- Returns:
- status
-
setStatus
-
tenantId
-
getTenantId
Tenant UUID this Actor belongs to- Returns:
- tenantId
-
setTenantId
-
updatedAt
-
getUpdatedAt
Timestamp of the last update to the Actor record- Returns:
- updatedAt
-
setUpdatedAt
-
validFrom
-
getValidFrom
Optional start of validity window (ISO-8601)- Returns:
- validFrom
-
setValidFrom
-
validUntil
-
getValidUntil
Optional end of validity window (ISO-8601)- Returns:
- validUntil
-
setValidUntil
-
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 ActorResponse
-
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 ActorResponse
-
fromJson
Create an instance of ActorResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ActorResponse
- Throws:
IOException- if the JSON string is invalid with respect to ActorResponse
-
toJson
Convert an instance of ActorResponse to an JSON string- Returns:
- JSON string
-