Enum Class CryptoDetector.EncodingType
java.lang.Object
java.lang.Enum<CryptoDetector.EncodingType>
cloud.opencode.base.crypto.util.CryptoDetector.EncodingType
- All Implemented Interfaces:
Serializable, Comparable<CryptoDetector.EncodingType>, Constable
- Enclosing class:
CryptoDetector
Encoding types 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 ConstantDescriptionASCII Armor (PGP) | ASCII Armor (PGP)Base64 standard encoding | Base64 标准编码Base64 URL-safe encoding | Base64 URL安全编码Hexadecimal encoding | 十六进制编码PEM format (Base64 with headers) | PEM 格式 (带头部的 Base64)Unknown or plain text | 未知或纯文本 -
Method Summary
Modifier and TypeMethodDescriptionstatic CryptoDetector.EncodingTypeReturns the enum constant of this class with the specified name.static CryptoDetector.EncodingType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BASE64
Base64 standard encoding | Base64 标准编码 -
BASE64_URL
Base64 URL-safe encoding | Base64 URL安全编码 -
HEX
Hexadecimal encoding | 十六进制编码 -
PEM
PEM format (Base64 with headers) | PEM 格式 (带头部的 Base64) -
ASCII_ARMOR
ASCII Armor (PGP) | ASCII Armor (PGP) -
UNKNOWN
Unknown or plain text | 未知或纯文本
-
-
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
-