Enum Class SubjectDnPrincipalResolverProperties.SubjectDnFormat
java.lang.Object
java.lang.Enum<SubjectDnPrincipalResolverProperties.SubjectDnFormat>
org.apereo.cas.configuration.model.support.x509.SubjectDnPrincipalResolverProperties.SubjectDnFormat
- All Implemented Interfaces:
Serializable
,Comparable<SubjectDnPrincipalResolverProperties.SubjectDnFormat>
,Constable
- Enclosing class:
- SubjectDnPrincipalResolverProperties
public static enum SubjectDnPrincipalResolverProperties.SubjectDnFormat
extends Enum<SubjectDnPrincipalResolverProperties.SubjectDnFormat>
The format of subject dn to be used.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Denigrated result of calling certificate.getSubjectDN() method. Javadocs designate this method as "denigrated" for not being portable and/or not being well defined. It is what has been used by CAS for a long time so it remains the default.- See Also:
-
RFC1779
RFC 1779 String format of Distinguished Names. CallsX500Principal.getName("RFC1779")
which emits a subject DN with the attribute keywords defined in RFC 1779 (CN, L, ST, O, OU, C, STREET). Any other attribute type is emitted as an OID.- See Also:
-
RFC2253
RFC 2253 String format of Distinguished Names. CallsX500Principal.getName("RFC2253")
which emits a subject DN with the attribute keywords defined in RFC 2253 (CN, L, ST, O, OU, C, STREET, DC, UID). Any other attribute type is emitted as an OID.- See Also:
-
CANONICAL
Canonical String format of Distinguished Names. Calls X500Principal.getName("CANONICAL" which emits a subject DN that starts with RFC 2253 and applies additional canonicalizations described in the javadoc.- See Also:
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-