Enum X509Properties.PrincipalTypes
- java.lang.Object
-
- java.lang.Enum<X509Properties.PrincipalTypes>
-
- org.apereo.cas.configuration.model.support.x509.X509Properties.PrincipalTypes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<X509Properties.PrincipalTypes>
- Enclosing class:
- X509Properties
public static enum X509Properties.PrincipalTypes extends java.lang.Enum<X509Properties.PrincipalTypes>
The principal resolution types.
-
-
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.
-
-
-
Enum Constant Detail
-
CN_EDIPI
public static final X509Properties.PrincipalTypes CN_EDIPI
Create principal by common name and EDIPI.
-
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).
-
SERIAL_NO
public static final X509Properties.PrincipalTypes SERIAL_NO
Create principal by serial no. Resolve the principal by the serial number with a configurable radix, ranging from 2 to 36. Ifradix
is16
, then the serial number could be filled with leading zeros to even the number of digits.
-
SERIAL_NO_DN
public static final X509Properties.PrincipalTypes SERIAL_NO_DN
Create principal by serial no and DN.
-
SUBJECT
public static final X509Properties.PrincipalTypes 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 X509Properties.PrincipalTypes 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 X509Properties.PrincipalTypes SUBJECT_DN
Create principal by subject DN.
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
-