Class CreateCapabilityGrantRequest
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.CreateCapabilityGrantRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateCapabilityGrantRequest
extends Object
CreateCapabilityGrantRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssetKidsItem(String assetKidsItem) addCapabilitiesItem(String capabilitiesItem) allowWildcardAsset(Boolean allowWildcardAsset) capabilities(List<String> capabilities) constraintPolicyId(UUID constraintPolicyId) booleanexchangeContextId(UUID exchangeContextId) static CreateCapabilityGrantRequestCreate an instance of CreateCapabilityGrantRequest given an JSON stringCryptographic Actor that the grant authorisesOpt-in flag required when assetKids is empty (wildcard safety gate).KID strings. 1 element for atomic ops; 2 elements for REENCRYPT/RESIGN, submitted source-first as [source, target] — a recording convention, not an enforced direction (the runtime matches with containsAll).Capability strings (e.gOptional Constraint Policy to attachOptional Exchange Context this grant is bound tointhashCode()voidsetActorId(UUID actorId) voidsetAllowWildcardAsset(Boolean allowWildcardAsset) voidsetAssetKids(List<String> assetKids) voidsetCapabilities(List<String> capabilities) voidsetConstraintPolicyId(UUID constraintPolicyId) voidsetExchangeContextId(UUID exchangeContextId) toJson()Convert an instance of CreateCapabilityGrantRequest 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_ID
- See Also:
-
SERIALIZED_NAME_ALLOW_WILDCARD_ASSET
- See Also:
-
SERIALIZED_NAME_ASSET_KIDS
- See Also:
-
SERIALIZED_NAME_CAPABILITIES
- See Also:
-
SERIALIZED_NAME_CONSTRAINT_POLICY_ID
- See Also:
-
SERIALIZED_NAME_EXCHANGE_CONTEXT_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateCapabilityGrantRequest
public CreateCapabilityGrantRequest()
-
-
Method Details
-
actorId
-
getActorId
Cryptographic Actor that the grant authorises- Returns:
- actorId
-
setActorId
-
allowWildcardAsset
-
getAllowWildcardAsset
Opt-in flag required when assetKids is empty (wildcard safety gate). Optional: omitting it is equivalent to false, which denies a wildcard grant.- Returns:
- allowWildcardAsset
-
setAllowWildcardAsset
-
assetKids
-
addAssetKidsItem
-
getAssetKids
KID strings. 1 element for atomic ops; 2 elements for REENCRYPT/RESIGN, submitted source-first as [source, target] — a recording convention, not an enforced direction (the runtime matches with containsAll). Empty list = wildcard (requires allowWildcardAsset=true).- Returns:
- assetKids
-
setAssetKids
-
capabilities
-
addCapabilitiesItem
-
getCapabilities
Capability strings (e.g. [\"ENCRYPT\",\"DECRYPT\"] or [\"REENCRYPT\"])- Returns:
- capabilities
-
setCapabilities
-
constraintPolicyId
-
getConstraintPolicyId
Optional Constraint Policy to attach- Returns:
- constraintPolicyId
-
setConstraintPolicyId
-
exchangeContextId
-
getExchangeContextId
Optional Exchange Context this grant is bound to- Returns:
- exchangeContextId
-
setExchangeContextId
-
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 CreateCapabilityGrantRequest
-
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 CreateCapabilityGrantRequest
-
fromJson
Create an instance of CreateCapabilityGrantRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateCapabilityGrantRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateCapabilityGrantRequest
-
toJson
Convert an instance of CreateCapabilityGrantRequest to an JSON string- Returns:
- JSON string
-