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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class Pkcs7Conversion extends Object
The keys a PKCS#7 → JOSE conversion use case binds. At least one of openerKid and signerKids is required; recipientKids requires openerKid and must not repeat it (400 naming recipientKids).
  • Field Details

  • Constructor Details

    • Pkcs7Conversion

      public Pkcs7Conversion()
  • Method Details

    • openerKid

      public Pkcs7Conversion openerKid(@Nullable String openerKid)
    • getOpenerKid

      @Nullable public String getOpenerKid()
      Stable KID of the EXISTING key that opens the EnvelopedData: the recipient whose key decrypts the content-encryption key. It is also encrypted to in the JOSE output, so the key must admit both decrypt and encrypt (422 with the per-cause type otherwise). Omit it for a signers-only use case that converts SignedData.
      Returns:
      openerKid
    • setOpenerKid

      public void setOpenerKid(@Nullable String openerKid)
    • recipientKids

      public Pkcs7Conversion recipientKids(@Nullable List<String> recipientKids)
    • addRecipientKidsItem

      public Pkcs7Conversion addRecipientKidsItem(String recipientKidsItem)
    • getRecipientKids

      @Nullable public List<String> getRecipientKids()
      Stable KIDs of the EXISTING keys of the OTHER recipients the content is re-encrypted to. Each must admit encrypt. Empty or omitted when the opener is the sole recipient. Requires openerKid, and must not list it.
      Returns:
      recipientKids
    • setRecipientKids

      public void setRecipientKids(@Nullable List<String> recipientKids)
    • signerKids

      public Pkcs7Conversion signerKids(@Nullable List<String> signerKids)
    • addSignerKidsItem

      public Pkcs7Conversion addSignerKidsItem(String signerKidsItem)
    • getSignerKids

      @Nullable public List<String> getSignerKids()
      Stable KIDs of the EXISTING keys of the signers: the conversion verifies each CMS signature under the key and re-signs with it, so each must admit sign and verify.
      Returns:
      signerKids
    • setSignerKids

      public void setSignerKids(@Nullable List<String> signerKids)
    • 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 Pkcs7Conversion
    • 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 Pkcs7Conversion
    • fromJson

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

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