Class KeystoreAnalysisResponse

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class KeystoreAnalysisResponse extends Object
Read-only, per-alias analysis of a PKCS#12 / JKS keystore. Reports the detected algorithm and the purpose derived from each certificate's X.509 KeyUsage (or AMBIGUOUS). Contains no private key material, material UUIDs, or tenant information. Mirrors the cryptographic service's keystore analysis response.
  • Field Details

  • Constructor Details

    • KeystoreAnalysisResponse

      public KeystoreAnalysisResponse()
  • Method Details

    • aliases

      public KeystoreAnalysisResponse aliases(@Nonnull List<AliasAnalysis> aliases)
    • addAliasesItem

      public KeystoreAnalysisResponse addAliasesItem(AliasAnalysis aliasesItem)
    • getAliases

      @Nonnull public List<AliasAnalysis> getAliases()
      One analysis entry per keystore alias (private-key entries first).
      Returns:
      aliases
    • setAliases

      public void setAliases(@Nonnull List<AliasAnalysis> aliases)
    • derivationCost

      public KeystoreAnalysisResponse derivationCost(@Nonnull KeystoreDerivationCost derivationCost)
    • getDerivationCost

      @Nonnull public KeystoreDerivationCost getDerivationCost()
      The key derivations an import of this keystore would run, against the most one import may run. When exceedsBudget is true the import would be refused with 400 keystore-derivation-budget-exceeded: the keystore was not analysed, aliases is empty and declaredIterations is a lower bound; split it into smaller keystores and analyse each one.
      Returns:
      derivationCost
    • setDerivationCost

      public void setDerivationCost(@Nonnull KeystoreDerivationCost derivationCost)
    • 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 KeystoreAnalysisResponse
    • 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 KeystoreAnalysisResponse
    • fromJson

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

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