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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class AliasAnalysis extends Object
Detected algorithm and purpose for a single keystore alias (no key material).
  • Field Details

  • Constructor Details

    • AliasAnalysis

      public AliasAnalysis()
  • Method Details

    • getDetectedPurposeAsString

      public String getDetectedPurposeAsString()
      The wire value of detectedPurpose: what the server sent, verbatim.
      • For a value this release declares, the same wire value the enum names.
      • For a value it does not declare (one a later server added), the server's wire value verbatim, while getDetectedPurpose() reads UNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel.
      • For an absent member, null.
      Returns:
      the wire value, or null when the member is absent
    • algorithm

      public AliasAnalysis algorithm(@Nullable String algorithm)
    • getAlgorithm

      @Nullable public String getAlgorithm()
      Detected complete algorithm identifier.
      Returns:
      algorithm
    • setAlgorithm

      public void setAlgorithm(@Nullable String algorithm)
    • alias

      public AliasAnalysis alias(@Nullable String alias)
    • getAlias

      @Nullable public String getAlias()
      The keystore alias.
      Returns:
      alias
    • setAlias

      public void setAlias(@Nullable String alias)
    • detectedPurpose

      public AliasAnalysis detectedPurpose(@Nullable AliasAnalysis.DetectedPurposeEnum detectedPurpose)
    • getDetectedPurpose

      @Nullable public AliasAnalysis.DetectedPurposeEnum getDetectedPurpose()
      Purpose derived from the certificate's X.509 KeyUsage: ENCRYPT_DECRYPT, SIGN_VERIFY, or AMBIGUOUS (KeyUsage absent or spanning both families).
      Returns:
      detectedPurpose
    • setDetectedPurpose

      public void setDetectedPurpose(@Nullable AliasAnalysis.DetectedPurposeEnum detectedPurpose)
    • keyUsage

      public AliasAnalysis keyUsage(@Nullable List<String> keyUsage)
    • addKeyUsageItem

      public AliasAnalysis addKeyUsageItem(String keyUsageItem)
    • getKeyUsage

      @Nullable public List<String> getKeyUsage()
      The KeyUsage-derived key operations (empty when AMBIGUOUS). Never key material.
      Returns:
      keyUsage
    • setKeyUsage

      public void setKeyUsage(@Nullable List<String> keyUsage)
    • kid

      public AliasAnalysis kid(@Nullable String kid)
    • getKid

      @Nullable public String getKid()
      The projected Stable KID the alias would receive on import (collision-time disambiguation is applied only at import).
      Returns:
      kid
    • setKid

      public void setKid(@Nullable String kid)
    • privateKeyPresent

      public AliasAnalysis privateKeyPresent(@Nullable Boolean privateKeyPresent)
    • getPrivateKeyPresent

      @Nullable public Boolean getPrivateKeyPresent()
      True for a private-key entry; false for a trusted-certificate-only alias.
      Returns:
      privateKeyPresent
    • setPrivateKeyPresent

      public void setPrivateKeyPresent(@Nullable Boolean privateKeyPresent)
    • 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 AliasAnalysis
    • 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 AliasAnalysis
    • fromJson

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

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