public enum SymmetricAlgorithm extends Enum<SymmetricAlgorithm>
Enum Constant and Description |
---|
AES
默认的AES加密方式:AES/ECB/PKCS5Padding
|
ARCFOUR |
Blowfish |
DES
默认的DES加密方式:DES/ECB/PKCS5Padding
|
DESede
3DES算法,默认实现为:DESede/ECB/PKCS5Padding
|
PBEWithMD5AndDES |
PBEWithSHA1AndDESede |
PBEWithSHA1AndRC2_40 |
RC2 |
Modifier and Type | Method and Description |
---|---|
String |
getValue()
获得算法的字符串表示形式
|
static SymmetricAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SymmetricAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SymmetricAlgorithm AES
public static final SymmetricAlgorithm ARCFOUR
public static final SymmetricAlgorithm Blowfish
public static final SymmetricAlgorithm DES
public static final SymmetricAlgorithm DESede
public static final SymmetricAlgorithm RC2
public static final SymmetricAlgorithm PBEWithMD5AndDES
public static final SymmetricAlgorithm PBEWithSHA1AndDESede
public static final SymmetricAlgorithm PBEWithSHA1AndRC2_40
public static SymmetricAlgorithm[] values()
for (SymmetricAlgorithm c : SymmetricAlgorithm.values()) System.out.println(c);
public static SymmetricAlgorithm 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 © 2024. All rights reserved.