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) addKeyPairsItem(CapabilityGrantKeyPair keyPairsItem) 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 for a wildcard basic grant (empty assetKids).The Key ID a basic grant authorizes: exactly one.Capabilities of the grant: one to four of ENCRYPT, DECRYPT, SIGN, VERIFY, or exactly one of REENCRYPT, RESIGN alone.Optional Constraint Policy to attach; the grant enforces its current versionThe Exchange Context the grant authorizes in.The ordered key pairs a REENCRYPT or RESIGN grant authorizes, one or more (at most 32); each authorizes the transformation from its sourceKid to its targetKid only.inthashCode()keyPairs(List<CapabilityGrantKeyPair> keyPairs) voidsetActorId(UUID actorId) voidsetAllowWildcardAsset(Boolean allowWildcardAsset) voidsetAssetKids(List<String> assetKids) voidsetCapabilities(List<String> capabilities) voidsetConstraintPolicyId(UUID constraintPolicyId) voidsetExchangeContextId(UUID exchangeContextId) voidsetKeyPairs(List<CapabilityGrantKeyPair> keyPairs) 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:
-
SERIALIZED_NAME_KEY_PAIRS
- 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 for a wildcard basic grant (empty assetKids). Admitted only in a STANDARD tenant. Optional: omitting it is equivalent to false.- Returns:
- allowWildcardAsset
-
setAllowWildcardAsset
-
assetKids
-
addAssetKidsItem
-
getAssetKids
The Key ID a basic grant authorizes: exactly one. Empty or absent with allowWildcardAsset=true is the any-asset wildcard. Absent or empty for a REENCRYPT or RESIGN grant, whose keys are its keyPairs.- Returns:
- assetKids
-
setAssetKids
-
capabilities
-
addCapabilitiesItem
-
getCapabilities
Capabilities of the grant: one to four of ENCRYPT, DECRYPT, SIGN, VERIFY, or exactly one of REENCRYPT, RESIGN alone. REENCRYPT never implies DECRYPT.- Returns:
- capabilities
-
setCapabilities
-
constraintPolicyId
-
getConstraintPolicyId
Optional Constraint Policy to attach; the grant enforces its current version- Returns:
- constraintPolicyId
-
setConstraintPolicyId
-
exchangeContextId
-
getExchangeContextId
The Exchange Context the grant authorizes in. It must be an ACTIVE context of the tenant; a token naming another context is denied by the grant.- Returns:
- exchangeContextId
-
setExchangeContextId
-
keyPairs
-
addKeyPairsItem
-
getKeyPairs
The ordered key pairs a REENCRYPT or RESIGN grant authorizes, one or more (at most 32); each authorizes the transformation from its sourceKid to its targetKid only. Absent or empty for a basic grant.- Returns:
- keyPairs
-
setKeyPairs
-
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
-