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).
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.
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.
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.