View Javadoc
1   /*
2    *  Licensed to the Apache Software Foundation (ASF) under one
3    *  or more contributor license agreements.  See the NOTICE file
4    *  distributed with this work for additional information
5    *  regarding copyright ownership.  The ASF licenses this file
6    *  to you under the Apache License, Version 2.0 (the
7    *  "License"); you may not use this file except in compliance
8    *  with the License.  You may obtain a copy of the License at
9    *  
10   *    https://www.apache.org/licenses/LICENSE-2.0
11   *  
12   *  Unless required by applicable law or agreed to in writing,
13   *  software distributed under the License is distributed on an
14   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   *  KIND, either express or implied.  See the License for the
16   *  specific language governing permissions and limitations
17   *  under the License. 
18   *  
19   */
20  
21  package org.apache.directory.api.ldap.model.constants;
22  
23  
24  /**
25   * This class contains all the Ldap specific properties described in the JNDI API.
26   * See http://java.sun.com/j2se/1.5.0/docs/guide/jndi/jndi-ldap-gl.html
27   * Final reference -> class shouldn't be extended
28   *
29   * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
30   */
31  public final class JndiPropertyConstants
32  {
33      // Pure JNDI properties
34      /** Batch size of search results returned */
35      public static final String JNDI_BATCHSIZE = "java.naming.batchsize";
36  
37      /** List of FQCNs of the control factory classes */
38      public static final String JNDI_FACTORY_CONTROL = "java.naming.factory.control";
39  
40      /** FQCN of the factory creating the InitialContext */
41      public static final String JNDI_FACTORY_INITIAL = "java.naming.factory.initial";
42  
43      /** List of FQCNs of the Object factory */
44      public static final String JNDI_FACTORY_OBJECT = "java.naming.factory.object";
45  
46      /** List of FQCNs of the state factory */
47      public static final String JNDI_FACTORY_STATE = "java.naming.factory.state";
48  
49      /** The Language to use */
50      public static final String JNDI_LANGUAGE = "java.naming.language";
51  
52      /** The list of URL pointing to a LDAP server */
53      public static final String JNDI_PROVIDER_URL = "java.naming.provider.url";
54  
55      /** Tells how the referral should be handled */
56      public static final String JNDI_REFERRAL = "java.naming.referral";
57  
58      /** The Authentication mechanism */
59      public static final String JNDI_SECURITY_AUTHENTICATION = "java.naming.security.authentication";
60  
61      /** The credentials */
62      public static final String JNDI_SECURITY_CREDENTIALS = "java.naming.security.credentials";
63  
64      /** The Principal */
65      public static final String JNDI_SECURITY_PRINCIPAL = "java.naming.security.principal";
66  
67      /** The security protocol to use */
68      public static final String JNDI_SECURITY_PROTOCOL = "java.naming.security.protocol";
69  
70      // Ldap specific properties
71      /** The list of binary attributes */
72      public static final String JNDI_LDAP_ATTRIBUTES_BINARY = "java.naming.ldap.attributes.binary";
73  
74      /** The controls to send when connectiong */
75      public static final String JNDI_LDAP_CONTROL_CONNECT = "java.naming.ldap.control.connect";
76  
77      /** Tells if the old Rdn must be deleted when doing a MODDN */
78      public static final String JNDI_LDAP_DELETE_RDN = "java.naming.ldap.deleteRDN";
79  
80      /** Tells if and how we dereference aliases */
81      public static final String JNDI_LDAP_DAP_DEREF_ALIASES = "java.naming.ldap.derefAliases";
82  
83      /** The FQCN of the socket factory to use to connect to the server */
84      public static final String JNDI_FACTORY_SOCKET = "java.naming.ldap.factory.socket";
85  
86      /** The separator to use when dealing with RefAddr */
87      public static final String JNDI_LDAP_REF_SEPARATOR = "java.naming.ldap.ref.separator";
88  
89      /** The maximum number of referral to follow in a chain of referrals */
90      public static final String JNDI_LDAP_REFERRAL_LIMIT = "java.naming.ldap.referral.limit";
91  
92      /** tells that we want the attributeTypes only to be returned */
93      public static final String JNDI_LDAP_TYPES_ONLY = "java.naming.ldap.typesOnly";
94  
95      /** Specifies the LDAP version to use */
96      public static final String JNDI_LDAP_VERSION = "java.naming.ldap.version";
97  
98      // SASL properties
99      /** The SASL authorization ID */
100     public static final String JNDI_SASL_AUTHORIZATION_ID = "java.naming.security.sasl.authorizationId";
101 
102     /** The SASL Realm */
103     public static final String JNDI_SASL_REALM = "java.naming.security.sasl.realm";
104 
105     /** An instance of CallbackHandler to use when required */
106     public static final String JNDI_SASL_CALLBACK = "java.naming.security.sasl.callback";
107 
108     /** The SASL Quality Of Protection value */
109     public static final String JNDI_SASL_QOP = "javax.security.sasl.qop";
110 
111     /** The cipher strength */
112     public static final String JNDI_SASL_STRENGTH = "javax.security.sasl.strength";
113 
114     /** The maximum size of the receive buffer */
115     public static final String JNDI_SASL_MAX_BUFFER = "javax.security.sasl.maxbuffer";
116 
117     /** Tells if the the server must authenticate the client */
118     public static final String JNDI_SASL_AUTHENTICATION = "javax.security.sasl.server.authentication";
119 
120     /** Tells if the server must support forward secrecy */
121     public static final String JNDI_SASL_POLICY_FORWARD = "javax.security.sasl.policy.forward";
122 
123     /** Tells if the server must require some credentials */
124     public static final String JNDI_SASL_POLICY_CREDENTIALS = "javax.security.sasl.policy.credentials";
125 
126     /** Tells if the server allow Plain text mechanism */
127     public static final String JNDI_SASL_POLICY_NO_PLAIN_TEXT = "javax.security.sasl.policy.noplaintext";
128 
129     /** Tells if the SASL mechanism is protected against active attacks */
130     public static final String JNDI_SASL_POLICY_NO_ACTIVE = "javax.security.sasl.policy.noactive";
131 
132     /** Tells if the SASL mechanism is protected against dictionary attacks */
133     public static final String JNDI_SASL_POLICY_NO_DICTIONARY = "javax.security.sasl.policy.nodictionary";
134 
135     /** Tells if the SASL mechanism accept or not anonymous connections */
136     public static final String JNDI_SASL_POLICY_NO_ANONYMOUS = "javax.security.sasl.policy.noanonymous";
137     
138     /**
139      *  Ensures no construction of this class, also ensures there is no need for final keyword above
140      *  (Implicit super constructor is not visible for default constructor),
141      *  but is still self documenting.
142      */
143     private JndiPropertyConstants()
144     {
145     }
146 }