Enum Format

java.lang.Object
java.lang.Enum<Format>
org.cryptacular.pem.Format
All Implemented Interfaces:
Serializable, Comparable<Format>

public enum Format extends Enum<Format>
Enum to define the RFC governing the PEM format
Author:
Middleware Services
  • Enum Constant Details

    • RFC2440

      public static final Format RFC2440
      a PEM encoded file as defined by RFC-2440 (OpenPGP).
    • RFC7468

      public static final Format RFC7468
      a PEM encoded file as defined by RFC-7468 (Textual Encodings of PKIX, PKCS, and CMS Structures).
    • RFC1421

      public static final Format RFC1421
      a PEM encoded file as defined by RFC-1421 (Privacy Enhanced Message).
    • RFC4716

      public static final Format RFC4716
      a PEM encoded file as defined by RFC-4716 (SSH).
  • Method Details

    • values

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