Enum Class CryptoDetector.KeyFormat
- All Implemented Interfaces:
Serializable, Comparable<CryptoDetector.KeyFormat>, Constable
- Enclosing class:
CryptoDetector
Key formats that can be detected.
可检测的密钥格式。
- Since:
- JDK 25, opencode-base-crypto V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJWK (JSON Web Key) | JWK (JSON Web Key)OpenSSH Private Key | OpenSSH 私钥OpenSSH Public Key | OpenSSH 公钥PEM X.509 Certificate | PEM X.509 证书PEM EC Private Key | PEM EC 私钥PEM EC Public Key | PEM EC 公钥PEM PKCS#8 Encrypted Private Key | PEM PKCS#8 加密私钥PEM PKCS#8 Private Key | PEM PKCS#8 私钥PEM Public Key (generic) | PEM 公钥 (通用)PEM RSA Private Key | PEM RSA 私钥PEM RSA Public Key | PEM RSA 公钥Unknown format | 未知格式 -
Method Summary
Modifier and TypeMethodDescriptionstatic CryptoDetector.KeyFormatReturns the enum constant of this class with the specified name.static CryptoDetector.KeyFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PEM_RSA_PRIVATE
PEM RSA Private Key | PEM RSA 私钥 -
PEM_RSA_PUBLIC
PEM RSA Public Key | PEM RSA 公钥 -
PEM_EC_PRIVATE
PEM EC Private Key | PEM EC 私钥 -
PEM_EC_PUBLIC
PEM EC Public Key | PEM EC 公钥 -
PEM_CERTIFICATE
PEM X.509 Certificate | PEM X.509 证书 -
PEM_PKCS8_PRIVATE
PEM PKCS#8 Private Key | PEM PKCS#8 私钥 -
PEM_PKCS8_ENCRYPTED
PEM PKCS#8 Encrypted Private Key | PEM PKCS#8 加密私钥 -
PEM_PUBLIC_KEY
PEM Public Key (generic) | PEM 公钥 (通用) -
OPENSSH_PUBLIC
OpenSSH Public Key | OpenSSH 公钥 -
OPENSSH_PRIVATE
OpenSSH Private Key | OpenSSH 私钥 -
JWK
JWK (JSON Web Key) | JWK (JSON Web Key) -
UNKNOWN
Unknown format | 未知格式
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-