Class ImportedCertificate

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ImportedCertificate extends Object
Metadata about a successfully imported trusted certificate (CA).
  • Field Details

  • Constructor Details

    • ImportedCertificate

      public ImportedCertificate()
  • Method Details

    • issuer

      public ImportedCertificate issuer(@Nonnull String issuer)
    • getIssuer

      @Nonnull public String getIssuer()
      X.509 issuer distinguished name.
      Returns:
      issuer
    • setIssuer

      public void setIssuer(@Nonnull String issuer)
    • kid

      public ImportedCertificate kid(@Nonnull String kid)
    • getKid

      @Nonnull public String getKid()
      Certificate identifier assigned during import.
      Returns:
      kid
    • setKid

      public void setKid(@Nonnull String kid)
    • sourceAlias

      public ImportedCertificate sourceAlias(@Nullable String sourceAlias)
    • getSourceAlias

      @Nullable public String getSourceAlias()
      The entry's alias in the original keystore file.
      Returns:
      sourceAlias
    • setSourceAlias

      public void setSourceAlias(@Nullable String sourceAlias)
    • status

      public ImportedCertificate status(@Nullable String status)
    • getStatus

      @Nullable public String getStatus()
      Certificate status: - VALID: within its validity period - EXPIRED: past its validity period - NOT_YET_VALID: before its validity period
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable String status)
    • subject

      public ImportedCertificate subject(@Nonnull String subject)
    • getSubject

      @Nonnull public String getSubject()
      X.509 subject distinguished name.
      Returns:
      subject
    • setSubject

      public void setSubject(@Nonnull String subject)
    • validFrom

      public ImportedCertificate validFrom(@Nullable String validFrom)
    • getValidFrom

      @Nullable public String getValidFrom()
      Start of the certificate's validity (ISO 8601).
      Returns:
      validFrom
    • setValidFrom

      public void setValidFrom(@Nullable String validFrom)
    • validUntil

      public ImportedCertificate validUntil(@Nullable String validUntil)
    • getValidUntil

      @Nullable public String getValidUntil()
      End of the certificate's validity (ISO 8601).
      Returns:
      validUntil
    • setValidUntil

      public void setValidUntil(@Nullable String validUntil)
    • 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 ImportedCertificate
    • 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 ImportedCertificate
    • fromJson

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

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