Class AlgorithmInfo
java.lang.Object
co.ankatech.ankasecure.sdk.model.AlgorithmInfo
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"
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCategory of the algorithm: classical vs. post-quantum.static enumLifecycle status as defined by the platform. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAlg()Returns the algorithm category.Returns an unmodifiable copy to protect internal state.getKty()Returns an unmodifiable copy to protect internal state.inthashCode()voidsetAdvisory(String advisory) voidvoidsetCategory(AlgorithmInfo.Category category) voidvoidvoidsetSecurityLevel(Integer securityLevel) voidsetStandards(List<String> standards) voidsetStatus(AlgorithmInfo.Status status) voidsetSunsetDate(LocalDate sunsetDate) toString()
-
Constructor Details
-
AlgorithmInfo
public AlgorithmInfo()Zero-arg constructor for deserialization frameworks.
-
-
Method Details
-
getKty
-
setKty
-
getAlg
-
setAlg
-
getKeyOps
-
setKeyOps
-
getStatus
-
setStatus
-
getSunsetDate
-
setSunsetDate
-
getAdvisory
-
setAdvisory
-
getSecurityLevel
-
setSecurityLevel
-
getStandards
-
setStandards
-
getCategory
Returns the algorithm category. -
setCategory
-
toString
-
equals
-
hashCode
-