Module crypt.api

Enum Class CertPathEncoding

java.lang.Object
java.lang.Enum<CertPathEncoding>
io.github.astrapi69.crypt.api.encoding.CertPathEncoding
All Implemented Interfaces:
Encoding, Serializable, Comparable<CertPathEncoding>, Constable

public enum CertPathEncoding extends Enum<CertPathEncoding> implements Encoding
  • Enum Constant Details

    • PKCS7

      public static final CertPathEncoding PKCS7
      The enum constant for PKCS7 encoding
    • PKI_PATH

      public static final CertPathEncoding PKI_PATH
      The enum constant for 'PkiPath' encoding
    • UNKNOWN

      public static final CertPathEncoding UNKNOWN
      The enum constant 'UNKNOWN' if the cert path encoding name is unknown
  • Field Details

    • PKCS7_ENCODING_NAME

      public static final String PKCS7_ENCODING_NAME
      The Constant PKCS7_ENCODING_NAME
      See Also:
    • PKI_PATH_ENCODING_NAME

      public static final String PKI_PATH_ENCODING_NAME
      The Constant PKI_PATH_ENCODING_NAME
      See Also:
  • Method Details

    • values

      public static CertPathEncoding[] 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

      public static CertPathEncoding valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getEncoding

      public String getEncoding()
      Gets the encoding
      Specified by:
      getEncoding in interface Encoding
      Returns:
      the encoding