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
  • Field Details

  • Constructor Details

    • CreateCapabilityGrantRequest

      public CreateCapabilityGrantRequest()
  • Method Details

    • actorId

      public CreateCapabilityGrantRequest actorId(@Nonnull UUID actorId)
    • getActorId

      @Nonnull public UUID getActorId()
      Cryptographic Actor that the grant authorises
      Returns:
      actorId
    • setActorId

      public void setActorId(@Nonnull UUID actorId)
    • allowWildcardAsset

      public CreateCapabilityGrantRequest allowWildcardAsset(@Nullable Boolean allowWildcardAsset)
    • getAllowWildcardAsset

      @Nullable public Boolean 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

      public void setAllowWildcardAsset(@Nullable Boolean allowWildcardAsset)
    • assetKids

      public CreateCapabilityGrantRequest assetKids(@Nonnull List<String> assetKids)
    • addAssetKidsItem

      public CreateCapabilityGrantRequest addAssetKidsItem(String assetKidsItem)
    • getAssetKids

      @Nonnull public List<String> 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

      public void setAssetKids(@Nonnull List<String> assetKids)
    • capabilities

      public CreateCapabilityGrantRequest capabilities(@Nonnull List<String> capabilities)
    • addCapabilitiesItem

      public CreateCapabilityGrantRequest addCapabilitiesItem(String capabilitiesItem)
    • getCapabilities

      @Nonnull public List<String> getCapabilities()
      Capability strings (e.g. [\"ENCRYPT\",\"DECRYPT\"] or [\"REENCRYPT\"])
      Returns:
      capabilities
    • setCapabilities

      public void setCapabilities(@Nonnull List<String> capabilities)
    • constraintPolicyId

      public CreateCapabilityGrantRequest constraintPolicyId(@Nullable UUID constraintPolicyId)
    • getConstraintPolicyId

      @Nullable public UUID getConstraintPolicyId()
      Optional Constraint Policy to attach
      Returns:
      constraintPolicyId
    • setConstraintPolicyId

      public void setConstraintPolicyId(@Nullable UUID constraintPolicyId)
    • exchangeContextId

      public CreateCapabilityGrantRequest exchangeContextId(@Nullable UUID exchangeContextId)
    • getExchangeContextId

      @Nullable public UUID getExchangeContextId()
      Optional Exchange Context this grant is bound to
      Returns:
      exchangeContextId
    • setExchangeContextId

      public void setExchangeContextId(@Nullable UUID exchangeContextId)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 of validateJsonElement(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

      public static CreateCapabilityGrantRequest fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of CreateCapabilityGrantRequest to an JSON string
      Returns:
      JSON string