Package co.ankatech.ankasecure.sdk.model
Enum Class AlgorithmInfo.Status
- All Implemented Interfaces:
Serializable,Comparable<AlgorithmInfo.Status>,Constable
- Enclosing class:
- AlgorithmInfo
Lifecycle status as defined by the platform.
Status progression: EXPERIMENTAL → RECOMMENDED → LEGACY
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPreview or beta algorithm not ready for production use.Deprecated algorithm maintained for backward compatibility only.Production-ready algorithm actively maintained and recommended for new keys. -
Method Summary
Modifier and TypeMethodDescriptionstatic AlgorithmInfo.StatusReturns the enum constant of this class with the specified name.static AlgorithmInfo.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
RECOMMENDED
Production-ready algorithm actively maintained and recommended for new keys.Characteristics:
- NIST-standardized or industry-proven
- No known vulnerabilities
- Full platform support (all operations)
- Long-term stability guarantee
Use case: All production keys, new development
-
LEGACY
Deprecated algorithm maintained for backward compatibility only.Characteristics:
- Known vulnerabilities or superseded by better algorithms
- May have sunset date set (check
AlgorithmInfo.getSunsetDate()) - Still functional but discouraged
Use case: Existing keys only, plan migration
Example: RSA-1024 (superseded by RSA-4096), SHA-1 (collision attacks)
-
EXPERIMENTAL
Preview or beta algorithm not ready for production use.Characteristics:
- Under evaluation or standardization
- API may change in future versions
- Limited testing and documentation
- No SLA or long-term support guarantee
Use case: Research, testing, proof-of-concept only
Example: Newly proposed NIST Round 4 candidates
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-