Class ExchangeGrantSummary
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ExchangeGrantSummary
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ExchangeGrantSummary
extends Object
A Capability Grant the Exchange owns. The grant authorizes in the Exchange's Exchange Context, and only while the Exchange is ACTIVE.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe actor's typestatic classstatic enumLIVE: the grant exists and is governed by the Exchange's lifecycle. -
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactorType(ExchangeGrantSummary.ActorTypeEnum actorType) addAssetKidsItem(String assetKidsItem) addCapabilitiesItem(String capabilitiesItem) addKeyPairsItem(CapabilityGrantKeyPair keyPairsItem) addScheduleWeekdaysItem(Integer scheduleWeekdaysItem) applicationId(UUID applicationId) applicationName(String applicationName) capabilities(List<String> capabilities) constraintPolicyId(UUID constraintPolicyId) constraintPolicyName(String constraintPolicyName) constraintPolicyVersion(Integer constraintPolicyVersion) effectiveState(GrantEffectiveState effectiveState) booleanstatic ExchangeGrantSummaryCreate an instance of ExchangeGrantSummary given an JSON stringThe Cryptographic Actor the grant authorizesThe actor's nameThe actor's typeThe wire value ofactorType: what the server sent, verbatim.The application the actor belongs toThat application's nameThe Key ID a basic grant authorizes; empty for a REENCRYPT or RESIGN grantThe grant's capabilitiesThe grant's Constraint Policy, or nullThe Constraint Policy's nameThe Constraint Policy version the grant enforces, or nullWhether the governance objects the administration plane owns let the grant authorize at the instant of the read, and the first reason they do notThe grantThe ordered key pairs a REENCRYPT or RESIGN grant authorizes, each in its own direction only; empty for a basic grantTotal invocation ceiling of the pinned version; null when unlimited or when the grant has no Constraint PolicyWhether the grant's actor holds the operation scopes the grant needs.Per-minute ceiling of the pinned version; 0 = fully blocked, null when none or when the grant has no Constraint PolicySingle use: the first admitted invocation consumes the grant. null when the grant has no Constraint PolicyEnd of the pinned version's daily window, HH:mm, exclusive (earlier than the start for an overnight window); null when it has no scheduleStart of the pinned version's daily window, HH:mm, inclusive, in the schedule time zone; null when it has no scheduleISO weekdays (1 = Monday to 7 = Sunday) on which the pinned version's daily window opens, ascending; null when it has no scheduleLIVE: the grant exists and is governed by the Exchange's lifecycle.The wire value ofstatus: what the server sent, verbatim.Start of the pinned version's validity window, inclusive; null when unbounded or when the grant has no Constraint PolicyEnd of the pinned version's validity window, exclusive; null when unbounded or when the grant has no Constraint PolicyinthashCode()keyPairs(List<CapabilityGrantKeyPair> keyPairs) operationPermissions(ExchangeOperationPermissions operationPermissions) rateLimitPerMinute(Integer rateLimitPerMinute) revokeOnUse(Boolean revokeOnUse) scheduleEnd(String scheduleEnd) scheduleStart(String scheduleStart) scheduleWeekdays(List<Integer> scheduleWeekdays) voidsetActorId(UUID actorId) voidsetActorName(String actorName) voidsetActorType(ExchangeGrantSummary.ActorTypeEnum actorType) voidsetApplicationId(UUID applicationId) voidsetApplicationName(String applicationName) voidsetAssetKids(List<String> assetKids) voidsetCapabilities(List<String> capabilities) voidsetConstraintPolicyId(UUID constraintPolicyId) voidsetConstraintPolicyName(String constraintPolicyName) voidsetConstraintPolicyVersion(Integer constraintPolicyVersion) voidsetEffectiveState(GrantEffectiveState effectiveState) voidsetGrantId(UUID grantId) voidsetKeyPairs(List<CapabilityGrantKeyPair> keyPairs) voidsetMaxUsage(Long maxUsage) voidsetOperationPermissions(ExchangeOperationPermissions operationPermissions) voidsetRateLimitPerMinute(Integer rateLimitPerMinute) voidsetRevokeOnUse(Boolean revokeOnUse) voidsetScheduleEnd(String scheduleEnd) voidsetScheduleStart(String scheduleStart) voidsetScheduleWeekdays(List<Integer> scheduleWeekdays) voidvoidsetValidFrom(OffsetDateTime validFrom) voidsetValidUntil(OffsetDateTime validUntil) toJson()Convert an instance of ExchangeGrantSummary 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.validFrom(OffsetDateTime validFrom) validUntil(OffsetDateTime validUntil)
-
Field Details
-
SERIALIZED_NAME_ACTOR_ID
- See Also:
-
SERIALIZED_NAME_ACTOR_NAME
- See Also:
-
SERIALIZED_NAME_ACTOR_TYPE
- See Also:
-
SERIALIZED_NAME_APPLICATION_ID
- See Also:
-
SERIALIZED_NAME_APPLICATION_NAME
- See Also:
-
SERIALIZED_NAME_ASSET_KIDS
- See Also:
-
SERIALIZED_NAME_CAPABILITIES
- See Also:
-
SERIALIZED_NAME_CONSTRAINT_POLICY_ID
- See Also:
-
SERIALIZED_NAME_CONSTRAINT_POLICY_NAME
- See Also:
-
SERIALIZED_NAME_CONSTRAINT_POLICY_VERSION
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_STATE
- See Also:
-
SERIALIZED_NAME_GRANT_ID
- See Also:
-
SERIALIZED_NAME_KEY_PAIRS
- See Also:
-
SERIALIZED_NAME_MAX_USAGE
- See Also:
-
SERIALIZED_NAME_OPERATION_PERMISSIONS
- See Also:
-
SERIALIZED_NAME_RATE_LIMIT_PER_MINUTE
- See Also:
-
SERIALIZED_NAME_REVOKE_ON_USE
- See Also:
-
SERIALIZED_NAME_SCHEDULE_END
- See Also:
-
SERIALIZED_NAME_SCHEDULE_START
- See Also:
-
SERIALIZED_NAME_SCHEDULE_WEEKDAYS
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_VALID_FROM
- See Also:
-
SERIALIZED_NAME_VALID_UNTIL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ExchangeGrantSummary
public ExchangeGrantSummary()
-
-
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
-
actorId
-
getActorId
The Cryptographic Actor the grant authorizes- Returns:
- actorId
-
setActorId
-
actorName
-
getActorName
The actor's name- Returns:
- actorName
-
setActorName
-
actorType
-
getActorType
The actor's type- Returns:
- actorType
-
setActorType
-
applicationId
-
getApplicationId
The application the actor belongs to- Returns:
- applicationId
-
setApplicationId
-
applicationName
-
getApplicationName
That application's name- Returns:
- applicationName
-
setApplicationName
-
assetKids
-
addAssetKidsItem
-
getAssetKids
The Key ID a basic grant authorizes; empty for a REENCRYPT or RESIGN grant- Returns:
- assetKids
-
setAssetKids
-
capabilities
-
addCapabilitiesItem
-
getCapabilities
The grant's capabilities- Returns:
- capabilities
-
setCapabilities
-
constraintPolicyId
-
getConstraintPolicyId
The grant's Constraint Policy, or null- Returns:
- constraintPolicyId
-
setConstraintPolicyId
-
constraintPolicyName
-
getConstraintPolicyName
The Constraint Policy's name- Returns:
- constraintPolicyName
-
setConstraintPolicyName
-
constraintPolicyVersion
-
getConstraintPolicyVersion
The Constraint Policy version the grant enforces, or null- Returns:
- constraintPolicyVersion
-
setConstraintPolicyVersion
-
effectiveState
-
getEffectiveState
Whether the governance objects the administration plane owns let the grant authorize at the instant of the read, and the first reason they do not- Returns:
- effectiveState
-
setEffectiveState
-
grantId
-
getGrantId
The grant- Returns:
- grantId
-
setGrantId
-
keyPairs
-
addKeyPairsItem
-
getKeyPairs
The ordered key pairs a REENCRYPT or RESIGN grant authorizes, each in its own direction only; empty for a basic grant- Returns:
- keyPairs
-
setKeyPairs
-
maxUsage
-
getMaxUsage
Total invocation ceiling of the pinned version; null when unlimited or when the grant has no Constraint Policy- Returns:
- maxUsage
-
setMaxUsage
-
operationPermissions
public ExchangeGrantSummary operationPermissions(@Nullable ExchangeOperationPermissions operationPermissions) -
getOperationPermissions
Whether the grant's actor holds the operation scopes the grant needs. Present on a LIVE grant of an Exchange detail; its missing member is null when the caller does not hold admin.tenant.actor.roles.read.- Returns:
- operationPermissions
-
setOperationPermissions
-
rateLimitPerMinute
-
getRateLimitPerMinute
Per-minute ceiling of the pinned version; 0 = fully blocked, null when none or when the grant has no Constraint Policy- Returns:
- rateLimitPerMinute
-
setRateLimitPerMinute
-
revokeOnUse
-
getRevokeOnUse
Single use: the first admitted invocation consumes the grant. null when the grant has no Constraint Policy- Returns:
- revokeOnUse
-
setRevokeOnUse
-
scheduleEnd
-
getScheduleEnd
End of the pinned version's daily window, HH:mm, exclusive (earlier than the start for an overnight window); null when it has no schedule- Returns:
- scheduleEnd
-
setScheduleEnd
-
scheduleStart
-
getScheduleStart
Start of the pinned version's daily window, HH:mm, inclusive, in the schedule time zone; null when it has no schedule- Returns:
- scheduleStart
-
setScheduleStart
-
scheduleWeekdays
-
addScheduleWeekdaysItem
-
getScheduleWeekdays
ISO weekdays (1 = Monday to 7 = Sunday) on which the pinned version's daily window opens, ascending; null when it has no schedule- Returns:
- scheduleWeekdays
-
setScheduleWeekdays
-
status
-
getStatus
LIVE: the grant exists and is governed by the Exchange's lifecycle. CONSUMED: its single use was taken or its maxUsage reached. REVOKED: it was removed, or ended with the Exchange.- Returns:
- status
-
setStatus
-
validFrom
-
getValidFrom
Start of the pinned version's validity window, inclusive; null when unbounded or when the grant has no Constraint Policy- Returns:
- validFrom
-
setValidFrom
-
validUntil
-
getValidUntil
End of the pinned version's validity window, exclusive; null when unbounded or when the grant has no Constraint Policy- 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 ExchangeGrantSummary
-
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 ExchangeGrantSummary
-
fromJson
Create an instance of ExchangeGrantSummary given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExchangeGrantSummary
- Throws:
IOException- if the JSON string is invalid with respect to ExchangeGrantSummary
-
toJson
Convert an instance of ExchangeGrantSummary to an JSON string- Returns:
- JSON string
-