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 enum
Category of the algorithm: classical vs. post-quantum.static enum
Lifecycle status as defined by the platform. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAlg()
Returns the algorithm category.Returns an unmodifiable copy to protect internal state.getKty()
Returns an unmodifiable copy to protect internal state.int
hashCode()
void
setAdvisory
(String advisory) void
void
setCategory
(AlgorithmInfo.Category category) void
void
void
setSecurityLevel
(Integer securityLevel) void
setStandards
(List<String> standards) void
setStatus
(AlgorithmInfo.Status status) void
setSunsetDate
(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
-