public enum Mode extends Enum<Mode>
| Enum Constant and Description |
|---|
AES
默认的AES加密方式:AES/CBC/PKCS5Padding
|
ARCFOUR |
Blowfish |
DES
默认的DES加密方式:DES/ECB/PKCS5Padding
|
DESede
3DES算法,默认实现为:DESede/CBC/PKCS5Padding
|
EC
EC算法
|
HmacMD5 |
HmacSHA1 |
HmacSHA256 |
HmacSHA384 |
HmacSHA512 |
MD2 |
MD2withRSA |
MD5 |
MD5withRSA |
NONEwithDSA |
NONEwithECDSA |
NONEwithRSA |
PBEWithMD5AndDES |
PBEWithSHA1AndDESede |
PBEWithSHA1AndRC2_40 |
RC2 |
RSA
RSA算法
|
RSA_ECB_PKCS1
RSA算法,此算法用了默认补位方式为RSA/ECB/PKCS1Padding
|
RSA_None
RSA算法,此算法用了RSA/None/NoPadding
|
SHA1 |
SHA1withDSA |
SHA1withECDSA |
SHA1withRSA |
SHA256 |
SHA256withECDSA |
SHA256withRSA |
SHA384 |
SHA384withECDSA |
SHA384withRSA |
SHA512 |
SHA512withECDSA |
SHA512withRSA |
SHAPRNG |
| Modifier and Type | Method and Description |
|---|---|
String |
getValue()
获得算法的字符串表示形式
|
static Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mode AES
public static final Mode ARCFOUR
public static final Mode Blowfish
public static final Mode DES
public static final Mode DESede
public static final Mode RC2
public static final Mode RSA
public static final Mode RSA_ECB_PKCS1
public static final Mode RSA_None
public static final Mode EC
public static final Mode PBEWithMD5AndDES
public static final Mode PBEWithSHA1AndDESede
public static final Mode PBEWithSHA1AndRC2_40
public static final Mode NONEwithRSA
public static final Mode MD2withRSA
public static final Mode MD5withRSA
public static final Mode SHA1withRSA
public static final Mode SHA256withRSA
public static final Mode SHA384withRSA
public static final Mode SHA512withRSA
public static final Mode NONEwithDSA
public static final Mode SHA1withDSA
public static final Mode NONEwithECDSA
public static final Mode SHA1withECDSA
public static final Mode SHA256withECDSA
public static final Mode SHA384withECDSA
public static final Mode SHA512withECDSA
public static final Mode HmacMD5
public static final Mode HmacSHA1
public static final Mode HmacSHA256
public static final Mode HmacSHA384
public static final Mode HmacSHA512
public static final Mode MD2
public static final Mode MD5
public static final Mode SHA1
public static final Mode SHA256
public static final Mode SHA384
public static final Mode SHA512
public static final Mode SHAPRNG
public static Mode[] values()
for (Mode c : Mode.values()) System.out.println(c);
public static Mode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
Copyright © 2019. All rights reserved.