Enum X509Properties.PrincipalTypes

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CN_EDIPI
      Create principal by common name and EDIPI.
      RFC822_EMAIL
      Create principal from the RFC822 type name (aka email address) in the subject alternative name field.
      SERIAL_NO
      Create principal by serial no.
      SERIAL_NO_DN
      Create principal by serial no and DN.
      SUBJECT
      Create principal by subject.
      SUBJECT_ALT_NAME
      Create principal by subject alternative name.
      SUBJECT_DN
      Create principal by subject DN.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static X509Properties.PrincipalTypes valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static X509Properties.PrincipalTypes[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • RFC822_EMAIL

        public static final X509Properties.PrincipalTypes RFC822_EMAIL
        Create principal from the RFC822 type name (aka email address) in the subject alternative name field. The subject alternative name field contains a list of various types of names, one type is RFC822 e-mail address. This will return the first e-mail address that is found (if there are more than one).
    • Method Detail

      • values

        public static X509Properties.PrincipalTypes[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (X509Properties.PrincipalTypes c : X509Properties.PrincipalTypes.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static X509Properties.PrincipalTypes valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null