Class ExchangeGrantRequest
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ExchangeGrantRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ExchangeGrantRequest
extends Object
A Capability Grant to add to a Cryptographic Exchange. The Exchange owns the grant, and the grant authorizes in the Exchange's Exchange Context.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssetKidsItem(String assetKidsItem) addCapabilitiesItem(String capabilitiesItem) addKeyPairsItem(CapabilityGrantKeyPair keyPairsItem) capabilities(List<String> capabilities) constraintPolicyId(UUID constraintPolicyId) booleanstatic ExchangeGrantRequestCreate an instance of ExchangeGrantRequest given an JSON stringThe Cryptographic Actor the grant authorizes.The one Key ID a basic grant authorizes.Capabilities of the grant: one to four of ENCRYPT, DECRYPT, SIGN, VERIFY, or exactly one of REENCRYPT, RESIGN alone.Optional Constraint Policy of the tenant; the grant enforces its current versionThe 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) voidsetAssetKids(List<String> assetKids) voidsetCapabilities(List<String> capabilities) voidsetConstraintPolicyId(UUID constraintPolicyId) voidsetKeyPairs(List<CapabilityGrantKeyPair> keyPairs) toJson()Convert an instance of ExchangeGrantRequest 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_ASSET_KIDS
- See Also:
-
SERIALIZED_NAME_CAPABILITIES
- See Also:
-
SERIALIZED_NAME_CONSTRAINT_POLICY_ID
- See Also:
-
SERIALIZED_NAME_KEY_PAIRS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ExchangeGrantRequest
public ExchangeGrantRequest()
-
-
Method Details
-
actorId
-
getActorId
The Cryptographic Actor the grant authorizes. It belongs to an application that is an endpoint of the Exchange.- Returns:
- actorId
-
setActorId
-
assetKids
-
addAssetKidsItem
-
getAssetKids
The one Key ID a basic grant authorizes. 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 of the tenant; the grant enforces its current version- Returns:
- constraintPolicyId
-
setConstraintPolicyId
-
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 ExchangeGrantRequest
-
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 ExchangeGrantRequest
-
fromJson
Create an instance of ExchangeGrantRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExchangeGrantRequest
- Throws:
IOException- if the JSON string is invalid with respect to ExchangeGrantRequest
-
toJson
Convert an instance of ExchangeGrantRequest to an JSON string- Returns:
- JSON string
-