Enum Class GeneralNameType

java.lang.Object
java.lang.Enum<GeneralNameType>
org.apache.nifi.security.cert.GeneralNameType
All Implemented Interfaces:
Serializable, Comparable<GeneralNameType>, Constable

public enum GeneralNameType extends Enum<GeneralNameType>
Subject Alternative Name General Name Types defined according to RFC 3280 Section 4.2.1.7
  • Enum Constant Details

  • Field Details

    • nameType

      private final int nameType
    • generalName

      private final String generalName
    • valueClass

      private final Class<?> valueClass
  • Constructor Details

    • GeneralNameType

      private GeneralNameType(int nameType, String generalName, Class<?> valueClass)
  • Method Details

    • values

      public static GeneralNameType[] 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 GeneralNameType 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
    • getNameType

      public int getNameType()
      Get General Name Type identifier
      Returns:
      Subject Alternative Name Type identifier
    • getGeneralName

      public String getGeneralName()
      Get General Name label
      Returns:
      General Name label from RFC 3280 Section 4.2.1.7
    • getValueClass

      public Class<?> getValueClass()
      Get Value Class associated with General Name elements returned from Certificates
      Returns:
      Value Class