java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.AssetBlock

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class AssetBlock extends Object
Cryptographic Asset REFERENCE. The use case points at a key it does not own: status is the key's own projected lifecycle state, resolved live and independent of the aggregate's status, and role is the part this key plays in this use case. algorithm reflects the key's current-PRIMARY material version (may change across rotations; null when the key has no PRIMARY material).
  • Field Details

  • Constructor Details

    • AssetBlock

      public AssetBlock()
  • Method Details

    • algorithm

      public AssetBlock algorithm(@Nullable String algorithm)
    • getAlgorithm

      @Nullable public String getAlgorithm()
      Algorithm of the key's current-PRIMARY material
      Returns:
      algorithm
    • setAlgorithm

      public void setAlgorithm(@Nullable String algorithm)
    • keyIdentity

      public AssetBlock keyIdentity(@Nullable UUID keyIdentity)
    • getKeyIdentity

      @Nullable public UUID getKeyIdentity()
      Identity (key_aliases.id) of the key the Key ID named when the use case was created. It does not follow the Key ID: after that key is destroyed and the Key ID reused, the asset still names the destroyed key.
      Returns:
      keyIdentity
    • setKeyIdentity

      public void setKeyIdentity(@Nullable UUID keyIdentity)
    • kid

      public AssetBlock kid(@Nullable String kid)
    • getKid

      @Nullable public String getKid()
      Stable KID of the referenced key
      Returns:
      kid
    • setKid

      public void setKid(@Nullable String kid)
    • role

      public AssetBlock role(@Nullable String role)
    • getRole

      @Nullable public String getRole()
      Role this key plays in the use case
      Returns:
      role
    • setRole

      public void setRole(@Nullable String role)
    • status

      public AssetBlock status(@Nullable String status)
    • getStatus

      @Nullable public String getStatus()
      The referenced key's own projected lifecycle status. An ARCHIVED or DELETED_LOGICAL key does NOT suspend or revoke the use case that names it.
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable String status)
    • 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 AssetBlock
    • 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 AssetBlock
    • fromJson

      public static AssetBlock fromJson(String jsonString) throws IOException
      Create an instance of AssetBlock given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of AssetBlock
      Throws:
      IOException - if the JSON string is invalid with respect to AssetBlock
    • toJson

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