Class SupportedAlgorithm
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.SupportedAlgorithm
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class SupportedAlgorithm
extends Object
Algorithm profile supported by the platform, including cryptographic capabilities, security classification, and lifecycle status. Core fields: kty (key type), alg (algorithm), keyOps (permitted operations) Lifecycle: status (RECOMMENDED/LEGACY), sunsetDate, advisory Security: securityLevel (NIST 1-5), standards (endorsing bodies), category (CLASSICAL/POST_QUANTUM/HYBRID) Composite: compositeMode, present only for a hybrid entry — absent means the algorithm is not composite
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAlgorithm category: CLASSICAL for traditional cryptography, POST_QUANTUM for quantum-resistant algorithms, HYBRID for composite algorithms combining both.static enumComposite construction mode.static classstatic enumLifecycle status: RECOMMENDED for active use, EXPERIMENTAL for testing, LEGACY for deprecated algorithms -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddKeyOpsItem(String keyOpsItem) addStandardsItem(String standardsItem) category(SupportedAlgorithm.CategoryEnum category) compositeMode(SupportedAlgorithm.CompositeModeEnum compositeMode) booleanstatic SupportedAlgorithmCreate an instance of SupportedAlgorithm given an JSON stringMigration guidance or security advisory message.getAlg()Algorithm identifier specifying the exact variant (e.g., ML-KEM-768, RSA-4096, AES-256, X25519+ML-KEM-768)Algorithm category: CLASSICAL for traditional cryptography, POST_QUANTUM for quantum-resistant algorithms, HYBRID for composite algorithms combining both.The wire value ofcategory: what the server sent, verbatim.Composite construction mode.The wire value ofcompositeMode: what the server sent, verbatim.Permitted JWK operations for this algorithmgetKty()JWK key type identifier (e.g., ML-KEM, ML-DSA, RSA, EC, oct, COMPOSITE).NIST security level (1-5).Cryptographic standards and regulatory bodies that endorse this algorithm, in CryptoStandard declaration order.Lifecycle status: RECOMMENDED for active use, EXPERIMENTAL for testing, LEGACY for deprecated algorithmsThe wire value ofstatus: what the server sent, verbatim.Planned deprecation date (ISO 8601).inthashCode()securityLevel(Integer securityLevel) voidsetAdvisory(String advisory) voidvoidsetCategory(SupportedAlgorithm.CategoryEnum category) voidsetCompositeMode(SupportedAlgorithm.CompositeModeEnum compositeMode) voidvoidvoidsetSecurityLevel(Integer securityLevel) voidsetStandards(List<String> standards) voidvoidsetSunsetDate(LocalDate sunsetDate) status(SupportedAlgorithm.StatusEnum status) sunsetDate(LocalDate sunsetDate) toJson()Convert an instance of SupportedAlgorithm to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.
-
Field Details
-
SERIALIZED_NAME_ADVISORY
- See Also:
-
SERIALIZED_NAME_ALG
- See Also:
-
SERIALIZED_NAME_CATEGORY
- See Also:
-
SERIALIZED_NAME_COMPOSITE_MODE
- See Also:
-
SERIALIZED_NAME_KEY_OPS
- See Also:
-
SERIALIZED_NAME_KTY
- See Also:
-
SERIALIZED_NAME_SECURITY_LEVEL
- See Also:
-
SERIALIZED_NAME_STANDARDS
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_SUNSET_DATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SupportedAlgorithm
public SupportedAlgorithm()
-
-
Method Details
-
getCategoryAsString
The wire value ofcategory: 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
getCategory()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
getCompositeModeAsString
The wire value ofcompositeMode: 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
getCompositeMode()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
getStatusAsString
The wire value ofstatus: 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
getStatus()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
advisory
-
getAdvisory
Migration guidance or security advisory message.- Returns:
- advisory
-
setAdvisory
-
alg
-
getAlg
Algorithm identifier specifying the exact variant (e.g., ML-KEM-768, RSA-4096, AES-256, X25519+ML-KEM-768)- Returns:
- alg
-
setAlg
-
category
-
getCategory
Algorithm category: CLASSICAL for traditional cryptography, POST_QUANTUM for quantum-resistant algorithms, HYBRID for composite algorithms combining both.- Returns:
- category
-
setCategory
-
compositeMode
public SupportedAlgorithm compositeMode(@Nullable SupportedAlgorithm.CompositeModeEnum compositeMode) -
getCompositeMode
Composite construction mode. Present only for a hybrid algorithm; its absence means the algorithm is not composite.- Returns:
- compositeMode
-
setCompositeMode
-
keyOps
-
addKeyOpsItem
-
getKeyOps
Permitted JWK operations for this algorithm- Returns:
- keyOps
-
setKeyOps
-
kty
-
getKty
JWK key type identifier (e.g., ML-KEM, ML-DSA, RSA, EC, oct, COMPOSITE). A hybrid algorithm publishes the coarse COMPOSITE token; how it is constructed is carried by compositeMode and its exact pairing by alg.- Returns:
- kty
-
setKty
-
securityLevel
-
getSecurityLevel
NIST security level (1-5). Level 1 = 128-bit, Level 3 = 192-bit, Level 5 = 256-bit equivalent. minimum: 1 maximum: 5- Returns:
- securityLevel
-
setSecurityLevel
-
standards
-
addStandardsItem
-
getStandards
Cryptographic standards and regulatory bodies that endorse this algorithm, in CryptoStandard declaration order.- Returns:
- standards
-
setStandards
-
status
-
getStatus
Lifecycle status: RECOMMENDED for active use, EXPERIMENTAL for testing, LEGACY for deprecated algorithms- Returns:
- status
-
setStatus
-
sunsetDate
-
getSunsetDate
Planned deprecation date (ISO 8601). Present only for LEGACY or soon-to-be-deprecated algorithms.- Returns:
- sunsetDate
-
setSunsetDate
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 SupportedAlgorithm
-
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 ofvalidateJsonElement(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 SupportedAlgorithm
-
fromJson
Create an instance of SupportedAlgorithm given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SupportedAlgorithm
- Throws:
IOException- if the JSON string is invalid with respect to SupportedAlgorithm
-
toJson
Convert an instance of SupportedAlgorithm to an JSON string- Returns:
- JSON string
-