public enum CipherAlgorithm extends Enum<CipherAlgorithm>
Enum Constant and Description |
---|
AES
AES
|
DES
DES
|
DES3
3DES
|
RSA
RSA
|
SM4
SM4
|
Modifier and Type | Method and Description |
---|---|
Cipher |
getCipher() |
static Cipher |
getCipher(String model) |
Cipher |
getCipher(String work,
String padding) |
Cipher |
getCipher(String work,
String padding,
Provider provider) |
Cipher |
getCipher(String work,
String padding,
String provider) |
Cipher |
getCipher(WorkingMode work,
PaddingMode padding) |
Cipher |
getCipher(WorkingMode work,
PaddingMode padding,
Provider provider)
解密算法/工作模式/填充方式
|
Cipher |
getCipher(WorkingMode work,
PaddingMode padding,
String provider) |
protected String |
getCipherMode(String work,
String padding)
获取算法 解密算法/工作模式/填充方式
|
protected String |
getCipherMode(WorkingMode work,
PaddingMode padding) |
String |
getMode() |
static CipherAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CipherAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CipherAlgorithm RSA
public static final CipherAlgorithm AES
public static final CipherAlgorithm DES
public static final CipherAlgorithm DES3
public static final CipherAlgorithm SM4
public static CipherAlgorithm[] values()
for (CipherAlgorithm c : CipherAlgorithm.values()) System.out.println(c);
public static CipherAlgorithm 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 getMode()
public Cipher getCipher()
public Cipher getCipher(WorkingMode work, PaddingMode padding)
public Cipher getCipher(WorkingMode work, PaddingMode padding, String provider)
public Cipher getCipher(WorkingMode work, PaddingMode padding, Provider provider)
work
- 工作模式padding
- 填充方式protected String getCipherMode(WorkingMode work, PaddingMode padding)
protected String getCipherMode(String work, String padding)
work
- 工作模式padding
- 填充方式Copyright © 2024. All rights reserved.