Enum Class Argon2Type

java.lang.Object
java.lang.Enum<Argon2Type>
cloud.opencode.base.crypto.password.Argon2Type
All Implemented Interfaces:
Serializable, Comparable<Argon2Type>, Constable

public enum Argon2Type extends Enum<Argon2Type>
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 Constants
    Enum Constant
    Description
    Argon2d - 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 Type
    Method
    Description
    Get the algorithm name for hash encoding 获取用于哈希编码的算法名称
    int
    Get the type identifier used by Bouncy Castle 获取 Bouncy Castle 使用的类型标识符
    static Argon2Type
    Returns the enum constant of this class with the specified name.
    static Argon2Type[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ARGON2D

      public static final Argon2Type ARGON2D
      Argon2d - Data-dependent mode, resistant to GPU attacks Argon2d - 数据依赖模式,抵抗 GPU 攻击
    • ARGON2I

      public static final Argon2Type ARGON2I
      Argon2i - Data-independent mode, resistant to side-channel attacks Argon2i - 数据独立模式,抵抗旁道攻击
    • ARGON2ID

      public static final Argon2Type ARGON2ID
      Argon2id - Hybrid mode combining Argon2d and Argon2i (Recommended) Argon2id - 混合模式,结合 Argon2d 和 Argon2i(推荐)
  • Method Details

    • values

      public static Argon2Type[] 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

      public static Argon2Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getTypeId

      public int getTypeId()
      Get the type identifier used by Bouncy Castle 获取 Bouncy Castle 使用的类型标识符
      Returns:
      the type ID
    • getAlgorithmName

      public String getAlgorithmName()
      Get the algorithm name for hash encoding 获取用于哈希编码的算法名称
      Returns:
      the algorithm name