Enum X509PrincipalType

    • Enum Constant Detail

      • CN_EDIPI

        public static final X509PrincipalType CN_EDIPI
        Create principal by common name and EDIPI.
      • RFC822_EMAIL

        public static final X509PrincipalType 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).
      • SERIAL_NO

        public static final X509PrincipalType SERIAL_NO
        Create principal by serial no. Resolve the principal by the serial number with a configurable radix, ranging from 2 to 36. If radix is 16, then the serial number could be filled with leading zeros to even the number of digits.
      • SERIAL_NO_DN

        public static final X509PrincipalType SERIAL_NO_DN
        Create principal by serial no and DN.
      • SUBJECT

        public static final X509PrincipalType SUBJECT
        Create principal by subject. Resolve the principal by extracting one or more attribute values from the certificate subject DN and combining them with intervening delimiters.
      • SUBJECT_ALT_NAME

        public static final X509PrincipalType SUBJECT_ALT_NAME
        Create principal by subject alternative name. Resolve the principal by the subject alternative name extension. (type: otherName)
      • SUBJECT_DN

        public static final X509PrincipalType SUBJECT_DN
        Create principal by subject DN.
    • Method Detail

      • values

        public static X509PrincipalType[] 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 (X509PrincipalType c : X509PrincipalType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static X509PrincipalType 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