Class AlgorithmInfo

java.lang.Object
co.ankatech.ankasecure.sdk.model.AlgorithmInfo

public final class AlgorithmInfo extends Object
Immutable value object representing a supported algorithm profile.

Every field is nullable except kty, alg, keyOps, status, and the new category, which are guaranteed by the service.


 {
   "kty"           : "ML-KEM",
   "alg"           : "ML-KEM-768",
   "keyOps"        : ["encrypt", "decrypt"],
   "status"        : "RECOMMENDED",
   "sunsetDate"    : "2025-12-31",
   "advisory"      : "Use only for transitional re-encryption.",
   "securityLevel" : 1,
   "standards"     : ["NIST", "ISO"],
   "category"      : "POST_QUANTUM"
 }
 
  • Constructor Details

    • AlgorithmInfo

      public AlgorithmInfo()
      Zero-arg constructor for deserialization frameworks.
  • Method Details

    • getKty

      public String getKty()
    • setKty

      public void setKty(String kty)
    • getAlg

      public String getAlg()
    • setAlg

      public void setAlg(String alg)
    • getKeyOps

      public List<String> getKeyOps()
      Returns an unmodifiable copy to protect internal state.
    • setKeyOps

      public void setKeyOps(List<String> keyOps)
    • getStatus

      public AlgorithmInfo.Status getStatus()
    • setStatus

      public void setStatus(AlgorithmInfo.Status status)
    • getSunsetDate

      public LocalDate getSunsetDate()
    • setSunsetDate

      public void setSunsetDate(LocalDate sunsetDate)
    • getAdvisory

      public String getAdvisory()
    • setAdvisory

      public void setAdvisory(String advisory)
    • getSecurityLevel

      public Integer getSecurityLevel()
    • setSecurityLevel

      public void setSecurityLevel(Integer securityLevel)
    • getStandards

      public List<String> getStandards()
      Returns an unmodifiable copy to protect internal state.
    • setStandards

      public void setStandards(List<String> standards)
    • getCategory

      public AlgorithmInfo.Category getCategory()
      Returns the algorithm category.
    • setCategory

      public void setCategory(AlgorithmInfo.Category category)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object