- All Implemented Interfaces:
Encoding
,Serializable
,Comparable<CertPathEncoding>
,Constable
The enum
CertPathEncoding
provides all the encodings names that may be passed to the
CertPath.getEncoded(String)
method or the
CertificateFactory.generateCertPath(InputStream, String)
method. For more info see:
https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#certpath-encodings-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The Constant PKCS7_ENCODING_NAMEstatic final String
The Constant PKI_PATH_ENCODING_NAMEFields inherited from interface io.github.astrapi69.crypt.api.encoding.Encoding
UNKNOWN_ENCODING_NAME
-
Method Summary
Modifier and TypeMethodDescriptionGets the encodingstatic CertPathEncoding
Returns the enum constant of this class with the specified name.static CertPathEncoding[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PKCS7
The enum constant for PKCS7 encoding -
PKI_PATH
The enum constant for 'PkiPath' encoding -
UNKNOWN
The enum constant 'UNKNOWN' if the cert path encoding name is unknown
-
-
Field Details
-
PKCS7_ENCODING_NAME
The Constant PKCS7_ENCODING_NAME- See Also:
-
PKI_PATH_ENCODING_NAME
The Constant PKI_PATH_ENCODING_NAME- See Also:
-
-
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
-
getEncoding
Gets the encoding- Specified by:
getEncoding
in interfaceEncoding
- Returns:
- the encoding
-