Enum Class Algorithm

java.lang.Object
java.lang.Enum<Algorithm>
org.miaixz.bus.core.lang.Algorithm
All Implemented Interfaces:
Serializable, Comparable<Algorithm>, Constable

public enum Algorithm extends Enum<Algorithm>
签名算法类型 see: https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Signature
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

    • RSA

      public static final Algorithm RSA
      RSA算法
    • RSA2

      public static final Algorithm RSA2
      RSA2算法
    • RSA_ECB_PKCS1

      public static final Algorithm RSA_ECB_PKCS1
      RSA算法,此算法用了默认补位方式为RSA/ECB/PKCS1Padding
    • RSA_ECB

      public static final Algorithm RSA_ECB
      RSA算法,此算法用了默认补位方式为RSA/ECB/NoPadding
    • EC

      public static final Algorithm EC
      RSA算法,此算法用了RSA/None/NoPadding
    • ECDSA

      public static final Algorithm ECDSA
      ECDSA
    • NONEWITHRSA

      public static final Algorithm NONEWITHRSA
      RSA签名算法
    • MD2WITHRSA

      public static final Algorithm MD2WITHRSA
      MD2/MD5带有RSA加密签名算法
    • MD5withRSA

      public static final Algorithm MD5withRSA
      MD5withRSA
    • SHA1WITHRSA

      public static final Algorithm SHA1WITHRSA
      使用SHA-*和RSA的签名算法
    • SHA256WITHRSA

      public static final Algorithm SHA256WITHRSA
      SHA256withRSA
    • SHA384WITHRSA

      public static final Algorithm SHA384WITHRSA
      SHA384withRSA
    • SHA512WITHRSA

      public static final Algorithm SHA512WITHRSA
      SHA512withRSA
    • NONEWITHDSA

      public static final Algorithm NONEWITHDSA
      数字签名算法
    • SHA1WITHDSA

      public static final Algorithm SHA1WITHDSA
      采用SHA-1签名算法的DSA
    • NONEWITHECDSA

      public static final Algorithm NONEWITHECDSA
      ECDSA签名算法
    • SHA1WITHECDSA

      public static final Algorithm SHA1WITHECDSA
      SHA1withECDSA
    • SHA256WITHECDSA

      public static final Algorithm SHA256WITHECDSA
      SHA256withECDSA
    • SHA384WITHECDSA

      public static final Algorithm SHA384WITHECDSA
      SHA384withECDSA
    • SHA512WITHECDSA

      public static final Algorithm SHA512WITHECDSA
      SHA512withECDSA
    • SHA256WITHRSA_PSS

      public static final Algorithm SHA256WITHRSA_PSS
      SHA256WithRSA/PSS
    • SHA384WITHRSA_PSS

      public static final Algorithm SHA384WITHRSA_PSS
      SHA384WithRSA/PSS
    • SHA512WITHRSA_PSS

      public static final Algorithm SHA512WITHRSA_PSS
      SHA512WithRSA/PSS
    • MD2

      public static final Algorithm MD2
      MD2
    • MD5

      public static final Algorithm MD5
      MD5
    • SHA1

      public static final Algorithm SHA1
      SHA-1
    • SHA256

      public static final Algorithm SHA256
      SHA-256
    • SHA384

      public static final Algorithm SHA384
      SHA-384
    • SHA512

      public static final Algorithm SHA512
      SHA-512
    • SHA1PRNG

      public static final Algorithm SHA1PRNG
      SHA1PRNG
    • HMACMD5

      public static final Algorithm HMACMD5
      HmacMD5
    • HMACSHA1

      public static final Algorithm HMACSHA1
      HmacSHA1
    • HMACSHA256

      public static final Algorithm HMACSHA256
      HmacSHA256
    • HMACSHA384

      public static final Algorithm HMACSHA384
      HmacSHA384
    • HMACSHA512

      public static final Algorithm HMACSHA512
      HmacSHA512
    • HMACSM3

      public static final Algorithm HMACSM3
      HmacSM3算法实现,需要BouncyCastle库支持
    • SM4CMAC

      public static final Algorithm SM4CMAC
      SM4 CMAC模式实现,需要BouncyCastle库支持
    • AES

      public static final Algorithm AES
      默认的AES加密方式:AES/ECB/PKCS5Padding
    • ARCFOUR

      public static final Algorithm ARCFOUR
      ARCFOUR
    • BLOWFISH

      public static final Algorithm BLOWFISH
      Blowfish
    • DES

      public static final Algorithm DES
      默认的DES加密方式:DES/ECB/PKCS5Padding
    • DESEDE

      public static final Algorithm DESEDE
      3DES算法,默认实现为:DESede/ECB/PKCS5Padding
    • RC2

      public static final Algorithm RC2
      分组加密算法 RC2加密算法的执行速度是DES算法的两倍
    • RC4

      public static final Algorithm RC4
      流加密算法,密钥长度可变
    • PBEWITHMD5ANDDES

      public static final Algorithm PBEWITHMD5ANDDES
      PBEWithMD5AndDES
    • PBEWITHSHA1ANDDESEDE

      public static final Algorithm PBEWITHSHA1ANDDESEDE
      PBEWithSHA1AndDESede
    • PBEWITHSHA1ANDRC2_40

      public static final Algorithm PBEWITHSHA1ANDRC2_40
      PBEWithSHA1AndRC2_40
    • SM1

      public static final Algorithm SM1
      对称算法
    • SM2

      public static final Algorithm SM2
      公钥密码算法
    • SM3

      public static final Algorithm SM3
      主要用于数字签名及验证、消息认证码生成及验证、随机数生成等 其安全性及效率与SHA-256相当
    • SM4

      public static final Algorithm SM4
      迭代分组密码算法
  • Method Details

    • values

      public static Algorithm[] 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 Algorithm 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
    • getValue

      public String getValue()
      获取算法字符串表示,区分大小写
      Returns:
      算法字符串表示