Enum Class Argon2Type
- All Implemented Interfaces:
Serializable, Comparable<Argon2Type>, Constable
Argon2 algorithm type enumeration - Different variants of Argon2 password hashing
Argon2 算法类型枚举 - Argon2 密码哈希的不同变体
Features | 主要功能:
- Argon2 variant type definitions - Argon2 变体类型定义
Usage Examples | 使用示例:
Argon2Type type = Argon2Type.ARGON2ID;
Security | 安全性:
- Thread-safe: Yes - 线程安全: 是
- Null-safe: Partial - 空值安全: 部分
- Since:
- JDK 25, opencode-base-crypto V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArgon2d - Data-dependent mode, resistant to GPU attacks Argon2d - 数据依赖模式,抵抗 GPU 攻击Argon2i - Data-independent mode, resistant to side-channel attacks Argon2i - 数据独立模式,抵抗旁道攻击Argon2id - Hybrid mode combining Argon2d and Argon2i (Recommended) Argon2id - 混合模式,结合 Argon2d 和 Argon2i(推荐) -
Method Summary
Modifier and TypeMethodDescriptionGet the algorithm name for hash encoding 获取用于哈希编码的算法名称intGet the type identifier used by Bouncy Castle 获取 Bouncy Castle 使用的类型标识符static Argon2TypeReturns the enum constant of this class with the specified name.static Argon2Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARGON2D
Argon2d - Data-dependent mode, resistant to GPU attacks Argon2d - 数据依赖模式,抵抗 GPU 攻击 -
ARGON2I
Argon2i - Data-independent mode, resistant to side-channel attacks Argon2i - 数据独立模式,抵抗旁道攻击 -
ARGON2ID
Argon2id - Hybrid mode combining Argon2d and Argon2i (Recommended) Argon2id - 混合模式,结合 Argon2d 和 Argon2i(推荐)
-
-
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
-
getTypeId
public int getTypeId()Get the type identifier used by Bouncy Castle 获取 Bouncy Castle 使用的类型标识符- Returns:
- the type ID
-
getAlgorithmName
Get the algorithm name for hash encoding 获取用于哈希编码的算法名称- Returns:
- the algorithm name
-