Enum Class Rfc7468Label

java.lang.Object
java.lang.Enum<Rfc7468Label>
dev.getelements.elements.sdk.model.security.Rfc7468Label
All Implemented Interfaces:
Serializable, Comparable<Rfc7468Label>, Constable

public enum Rfc7468Label extends Enum<Rfc7468Label>
Represents a PEM label per RFC-7468
  • Enum Constant Details

    • CERTIFICATE

      public static final Rfc7468Label CERTIFICATE
      See RFC-5280
    • X509_CRL

      public static final Rfc7468Label X509_CRL
      See RFC-5280
    • CERTIFICATE_REQUEST

      public static final Rfc7468Label CERTIFICATE_REQUEST
      See RFC-2986
    • PKCS7

      public static final Rfc7468Label PKCS7
      See RFC-2315
    • CMS

      public static final Rfc7468Label CMS
      See RFC-5652
    • PRIVATE_KEY

      public static final Rfc7468Label PRIVATE_KEY
      See RFC-5208 and RFC-5958
    • ENCRYPTED_PRIVATE_KEY

      public static final Rfc7468Label ENCRYPTED_PRIVATE_KEY
      See RFC-5958
    • ATTRIBUTE_CERTIFICATE

      public static final Rfc7468Label ATTRIBUTE_CERTIFICATE
      RFC-5755
    • PUBLIC_KEY

      public static final Rfc7468Label PUBLIC_KEY
      RFC-5280
  • Method Details

    • values

      public static Rfc7468Label[] 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 Rfc7468Label 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
    • getLabel

      public String getLabel()
      Gets the literal label value.
      Returns:
      the literal label value
    • findForLabel

      public static Optional<Rfc7468Label> findForLabel(String label)
      Finds the enum value from the label.
      Parameters:
      label - the label
      Returns:
      the Optional containing the value, or empty it not found