Class KeystoreImportResponse

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class KeystoreImportResponse extends Object
Comprehensive response for a keystore import (PKCS#12 / JKS). Mirrors the cryptographic service's keystore import response.
  • Field Details

  • Constructor Details

    • KeystoreImportResponse

      public KeystoreImportResponse()
  • Method Details

    • certificates

      public KeystoreImportResponse certificates(@Nullable List<ImportedCertificate> certificates)
    • addCertificatesItem

      public KeystoreImportResponse addCertificatesItem(ImportedCertificate certificatesItem)
    • getCertificates

      @Nullable public List<ImportedCertificate> getCertificates()
      Detailed information about each successfully imported trusted certificate.
      Returns:
      certificates
    • setCertificates

      public void setCertificates(@Nullable List<ImportedCertificate> certificates)
    • detection

      public KeystoreImportResponse detection(@Nullable FormatDetection detection)
    • getDetection

      @Nullable public FormatDetection getDetection()
      Format detection information (PKCS12 or JKS detected).
      Returns:
      detection
    • setDetection

      public void setDetection(@Nullable FormatDetection detection)
    • failures

      public KeystoreImportResponse failures(@Nullable List<FailedEntry> failures)
    • addFailuresItem

      public KeystoreImportResponse addFailuresItem(FailedEntry failuresItem)
    • getFailures

      @Nullable public List<FailedEntry> getFailures()
      Entries that failed validation or import.
      Returns:
      failures
    • setFailures

      public void setFailures(@Nullable List<FailedEntry> failures)
    • keys

      public KeystoreImportResponse keys(@Nullable List<ImportedKey> keys)
    • addKeysItem

      public KeystoreImportResponse addKeysItem(ImportedKey keysItem)
    • getKeys

      @Nullable public List<ImportedKey> getKeys()
      Detailed information about each imported key (public metadata).
      Returns:
      keys
    • setKeys

      public void setKeys(@Nullable List<ImportedKey> keys)
    • skipped

      public KeystoreImportResponse skipped(@Nullable List<SkippedEntry> skipped)
    • addSkippedItem

      public KeystoreImportResponse addSkippedItem(SkippedEntry skippedItem)
    • getSkipped

      @Nullable public List<SkippedEntry> getSkipped()
      Entries skipped because they already exist (idempotent reimport).
      Returns:
      skipped
    • setSkipped

      public void setSkipped(@Nullable List<SkippedEntry> skipped)
    • summary

      public KeystoreImportResponse summary(@Nullable ImportSummary summary)
    • getSummary

      @Nullable public ImportSummary getSummary()
      Quick summary of import results (totals + result type).
      Returns:
      summary
    • setSummary

      public void setSummary(@Nullable ImportSummary summary)
    • 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 KeystoreImportResponse
    • 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 KeystoreImportResponse
    • fromJson

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

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