Enum Class CryptoType

java.lang.Object
java.lang.Enum<CryptoType>
cn.openjava.basic.crypto.enums.CryptoType
所有已实现的接口:
Serializable, Comparable<CryptoType>, Constable

public enum CryptoType extends Enum<CryptoType>
  • 枚举常量详细资料

    • SM2

      public static final CryptoType SM2
      sm2算法
    • SM234

      public static final CryptoType SM234
      sm2+sm3+sm4
    • BASE64

      public static final CryptoType BASE64
      base64
  • 方法详细资料

    • values

      public static CryptoType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CryptoType 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • defaultType

      public static CryptoType defaultType()
      定义默认值
      返回:
      默认加密类型
    • getCryptoCode

      public int getCryptoCode()