Enum PKCS8PrivateKeyVersion

java.lang.Object
java.lang.Enum<PKCS8PrivateKeyVersion>
com.unboundid.util.ssl.cert.PKCS8PrivateKeyVersion
All Implemented Interfaces:
Serializable, Comparable<PKCS8PrivateKeyVersion>, java.lang.constant.Constable

This enum defines a set of supported PKCS #8 private key versions.
  • Enum Constant Details

  • Method Details

    • values

      public static PKCS8PrivateKeyVersion[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PKCS8PrivateKeyVersion valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      Retrieves the name for this private key version.
      Returns:
      The name for this private key version.
    • forName

      Retrieves the PKCS #8 private key version with the specified name.
      Parameters:
      name - The name of the PKCS #8 private key version to retrieve. It must not be null.
      Returns:
      The requested PKCS #8 private key version, or null if no such version is defined.