1 package org
.argeo
.util
.naming
;
4 * Standard LDAP object classes as per
5 * <a href="https://www.ldap.com/ldap-oid-reference">https://www.ldap.com/ldap-
8 public enum LdapObjs
implements SpecifiedName
, QNamed
{
9 account("0.9.2342.19200300.100.4.5", "RFC 4524"),
11 document("0.9.2342.19200300.100.4.6", "RFC 4524"),
13 room("0.9.2342.19200300.100.4.7", "RFC 4524"),
15 documentSeries("0.9.2342.19200300.100.4.9", "RFC 4524"),
17 domain("0.9.2342.19200300.100.4.13", "RFC 4524"),
19 rFC822localPart("0.9.2342.19200300.100.4.14", "RFC 4524"),
21 domainRelatedObject("0.9.2342.19200300.100.4.17", "RFC 4524"),
23 friendlyCountry("0.9.2342.19200300.100.4.18", "RFC 4524"),
25 simpleSecurityObject("0.9.2342.19200300.100.4.19", "RFC 4524"),
27 uidObject("1.3.6.1.1.3.1", "RFC 4519"),
29 extensibleObject("1.3.6.1.4.1.1466.101.120.111", "RFC 4512"),
31 dcObject("1.3.6.1.4.1.1466.344", "RFC 4519"),
33 authPasswordObject("1.3.6.1.4.1.4203.1.4.7", "RFC 3112"),
35 namedObject("1.3.6.1.4.1.5322.13.1.1", "draft-howard-namedobject"),
37 inheritableLDAPSubEntry("1.3.6.1.4.1.7628.5.6.1.1", "draft-ietf-ldup-subentry"),
39 top("2.5.6.0", "RFC 4512"),
41 alias("2.5.6.1", "RFC 4512"),
43 country("2.5.6.2", "RFC 4519"),
45 locality("2.5.6.3", "RFC 4519"),
47 organization("2.5.6.4", "RFC 4519"),
49 organizationalUnit("2.5.6.5", "RFC 4519"),
51 person("2.5.6.6", "RFC 4519"),
53 organizationalPerson("2.5.6.7", "RFC 4519"),
55 organizationalRole("2.5.6.8", "RFC 4519"),
57 groupOfNames("2.5.6.9", "RFC 4519"),
59 residentialPerson("2.5.6.10", "RFC 4519"),
61 applicationProcess("2.5.6.11", "RFC 4519"),
63 device("2.5.6.14", "RFC 4519"),
65 strongAuthenticationUser("2.5.6.15", "RFC 4523"),
67 certificationAuthority("2.5.6.16", "RFC 4523"),
68 // /** Should be certificationAuthority-V2 */
69 // certificationAuthority_V2("2.5.6.16.2", "RFC 4523") {
72 groupOfUniqueNames("2.5.6.17", "RFC 4519"),
74 userSecurityInformation("2.5.6.18", "RFC 4523"),
76 cRLDistributionPoint("2.5.6.19", "RFC 4523"),
78 pkiUser("2.5.6.21", "RFC 4523"),
80 pkiCA("2.5.6.22", "RFC 4523"),
82 deltaCRL("2.5.6.23", "RFC 4523"),
84 subschema("2.5.20.1", "RFC 4512"),
86 ldapSubEntry("2.16.840.1.113719.2.142.6.1.1", "draft-ietf-ldup-subentry"),
88 changeLogEntry("2.16.840.1.113730.3.2.1", "draft-good-ldap-changelog"),
90 inetOrgPerson("2.16.840.1.113730.3.2.2", "RFC 2798"),
92 referral("2.16.840.1.113730.3.2.6", "RFC 3296");
94 /** MUST be equal to ContentRepository LDAP namespace. */
95 final static String LDAP_NAMESPACE_URI
= "http://www.argeo.org/ns/ldap";
96 /** MUST be equal to ContentRepository LDAP prefix. */
97 final static String LDAP_DEFAULT_PREFIX
= "ldap";
99 private final static String LDAP_
= LDAP_DEFAULT_PREFIX
+ ":";
100 private final String oid
, spec
;
102 private LdapObjs(String oid
, String spec
) {
107 public String
getOid() {
111 public String
getSpec() {
115 public String
property() {
116 return new StringBuilder(LDAP_
).append(name()).toString();
120 public String
getDefaultPrefix() {
121 return LdapObjs
.LDAP_DEFAULT_PREFIX
;
125 public String
getNamespace() {
126 return LdapObjs
.LDAP_NAMESPACE_URI
;