183 "com.sun.jndi.ldap.connect.timeout"; 184 185 // Timeout for reading responses 186 private static final String READ_TIMEOUT = 187 "com.sun.jndi.ldap.read.timeout"; 188 189 // Environment property for connection pooling 190 private static final String ENABLE_POOL = "com.sun.jndi.ldap.connect.pool"; 191 192 // Environment property for the domain name (derived from this context's DN) 193 private static final String DOMAIN_NAME = "com.sun.jndi.ldap.domainname"; 194 195 // Block until the first search reply is received 196 private static final String WAIT_FOR_REPLY = 197 "com.sun.jndi.ldap.search.waitForReply"; 198 199 // Size of the queue of unprocessed search replies 200 private static final String REPLY_QUEUE_SIZE = 201 "com.sun.jndi.ldap.search.replyQueueSize"; 202 203 // ----------------- Fields that don't change ----------------------- 204 private static final NameParser parser = new LdapNameParser(); 205 206 // controls that Provider needs 207 private static final ControlFactory myResponseControlFactory = 208 new DefaultResponseControlFactory(); 209 private static final Control manageReferralControl = 210 new ManageReferralControl(false); 211 212 private static final HierMemDirCtx EMPTY_SCHEMA = new HierMemDirCtx(); 213 static { 214 EMPTY_SCHEMA.setReadOnly( 215 new SchemaViolationException("Cannot update schema object")); 216 } 217 218 // ------------ Package private instance variables ---------------- 219 // Cannot be private; used by enums 220 221 // ------- Inherited by derived context instances 222 | 183 "com.sun.jndi.ldap.connect.timeout"; 184 185 // Timeout for reading responses 186 private static final String READ_TIMEOUT = 187 "com.sun.jndi.ldap.read.timeout"; 188 189 // Environment property for connection pooling 190 private static final String ENABLE_POOL = "com.sun.jndi.ldap.connect.pool"; 191 192 // Environment property for the domain name (derived from this context's DN) 193 private static final String DOMAIN_NAME = "com.sun.jndi.ldap.domainname"; 194 195 // Block until the first search reply is received 196 private static final String WAIT_FOR_REPLY = 197 "com.sun.jndi.ldap.search.waitForReply"; 198 199 // Size of the queue of unprocessed search replies 200 private static final String REPLY_QUEUE_SIZE = 201 "com.sun.jndi.ldap.search.replyQueueSize"; 202 203 /* 204 * Name of the DNS provider class used by 205 * {@code LdapCtxFactory.getUsingURL()} to resolve ldap server urls. 206 * {code DefaultLdapDnsProvider} is used by default. 207 * 208 * A DNS provider must implement the {@code BiFunction} interface. 209 * In addition, the provider class must be public and must have a 210 * public constructor that accepts no parameters. 211 * 212 * The {@code BiFunction.apply(String url, Hashtable<?,?> env)} method 213 * takes two parameters: 214 * 215 * {@code String url}: The {@code Context.PROVIDER_URL} 216 * {@code Hashtable<?,?> env}: The LdapCtx environment properties. 217 */ 218 static final String DNS_PROVIDER = "com.sun.jndi.ldap.dnsProvider"; 219 220 // ----------------- Fields that don't change ----------------------- 221 private static final NameParser parser = new LdapNameParser(); 222 223 // controls that Provider needs 224 private static final ControlFactory myResponseControlFactory = 225 new DefaultResponseControlFactory(); 226 private static final Control manageReferralControl = 227 new ManageReferralControl(false); 228 229 private static final HierMemDirCtx EMPTY_SCHEMA = new HierMemDirCtx(); 230 static { 231 EMPTY_SCHEMA.setReadOnly( 232 new SchemaViolationException("Cannot update schema object")); 233 } 234 235 // ------------ Package private instance variables ---------------- 236 // Cannot be private; used by enums 237 238 // ------- Inherited by derived context instances 239 |