JNDI环境变量

地址:http://docs.oracle.com/javase/jndi/tutorial/beyond/env/overview.html

 

JNDI环境变量

 

Property NameDescription
java.naming.applet  An instance of java.applet.Applet. The applet parameters of this applet instance are used to obtain certain environment properties. See the next section for details. 
ConstantContext.APPLET(in the API reference documentation)
Default: None.
java.naming.authoritative A string ("true" or "false") that specifies the authoritative source of the service requested. If you set this property to "true", then you are asking the service provider to use the most authoritative source for the service (such as a master server). Otherwise the source need not be (but can be) authoritative. 
ConstantContext.AUTHORITATIVE(in the API reference documentation)
Default"false"
java.naming.batchsize The string representation of an integer that specifies the preferred batch size to use when returning data via the service's protocol. See the Searches (in the Tips for LDAP Users trail) lesson for details and an example. 
ConstantContext.BATCHSIZE(in the API reference documentation)
Default: Provider's default. 
Example"10"
java.naming.dns.url A URL string that specifies the DNS host and domain names to use for the "jndi" URL context implementation. 
ConstantContext.DNS_URL(in the API reference documentation)
Default: None. 
Example"dns://dnsserver/wiz.com"
java.naming.factory.control Colon-separated list of class names of control factories. Each class must implement the ControlFactory(in the API reference documentation) interface. This property is used byControlFactory.getControlInstance() (in the API reference documentation), which in turn is used by service providers. See the Controls and Extensions (in the Tips for LDAP Users trail) lesson for details. 
ConstantLdapContext.CONTROL_FACTORIES(in the API reference documentation) 
Default: The empty list. 
Example"com.wiz.jndi.ldap.ControlFactory:vendorX.ldap.VendorXControlFactory"
java.naming.factory.initial Class name of the initial context factory. Class must implement theInitialContextFactory(in the API reference documentation) interface. This class is instantiated by the InitialContextconstructor(in the API reference documentation). You must set this property, unless you pass only URL names to theInitialContext(in the API reference documentation) methods. 
ConstantContext.INITIAL_CONTEXT_FACTORY(in the API reference documentation)
Default: None. 
Example"com.sun.jndi.ldap.LdapCtxFactory"
java.naming.factory.object Colon-separated list of class names of object factories. Each class must implement the ObjectFactory(in the API reference documentation) or DirObjectFactory(in the API reference documentation) interface. This property is used byNamingManager.getObjectInstance() (in the API reference documentation) and DirectoryManager.getObjectInstance() (in the API reference documentation), which in turn are used by service providers. See the Java Objects and the Directory (in the Java Objects and the Directory trail)trail for details. 
ConstantContext.OBJECT_FACTORIES(in the API reference documentation)
Default: The empty list. 
Example"com.wiz.jndi.ldap.AttrsToRemote:com.wiz.jndi.ldap.AttrsToCorba"
java.naming.factory.state Colon-separated list of class names of state factories. Each class must implement the StateFactory(in the API reference documentation) or DirStateFactory(in the API reference documentation) interface. This property is used byNamingManager.getStateToBind() (in the API reference documentation) and DirectoryManager.getStateToBind() (in the API reference documentation), which in turn are used by service providers. See the Java Objects and the Directory (in the Java Objects and the Directory trail) trail for details. 
ConstantContext.STATE_FACTORIES(in the API reference documentation)
Default: The empty list. 
Example"com.wiz.jndi.ldap.RemoteToAttrs:com.wiz.jndi.ldap.CorbaToAttrs"
java.naming.factory.url.pkgs Colon-separated list of package prefixes of URL context factories. The prefix consists of the URL scheme id and a suffix to construct the class name, as follows:
prefix.schemeId.schemeIdURLContextFactory
For example, suppose the prefix is "vendorZ.jndi" and the URL scheme id is "ldap", the complete class name is vendorZ.jndi.ldap.ldapURLContextFactory. Each class whose name is constructed in this manner must implement the ObjectFactory(in the API reference documentation) orDirObjectFactory(in the API reference documentation) interface and follow the rules for processing URL names. The package prefix "com.sun.jndi.url" is always appended to the end of the list specified by this property. This property is used when a URL name is passed to theInitialContext(in the API reference documentation) methods. See the URL (in the Beyond the Basics trail) lesson for more information. 
ConstantContext.URL_PKG_PREFIXES(in the API reference documentation)
Default: The empty list. 
Examplecom.wiz.jndi.url:vendorZ.jndi
java.naming.language A string specifying the preferred language to use with this service. The values of this property are defined by RFC 1766
ConstantContext.LANGUAGE(in the API reference documentation)
Default: Provider's default. 
Example"en-US"
java.naming.provider.url A URL string for configuring the service provider specified by the"java.naming.factory.initial" property. 
ConstantContext.PROVIDER_URL(in the API reference documentation)
Default: Provider's default. 
Example"ldap://localhost:389/o=JNDITutorial"
java.naming.referral A string specifying how the service provider should handle referrals; one of"throw""ignore", or "follow". See the Referrals (in the Tips for LDAP Users trail) lesson for details and examples.
ConstantContext.REFERRAL(in the API reference documentation)
Default: Provider's default. 
Example"throw"
java.naming.security.authentication A string specifying the type of authentication to use; one of "none""simple","strong", or a provider-specific string. See the Security (in the Tips for LDAP Users trail) lesson for details and examples. 
ConstantContext.SECURITY_AUTHENTICATION(in the API reference documentation)
Default: Provider's default. 
Example"simple"
java.naming.security.credentials An object specifying the credentials of the entity performing the authentication. Its type is determined by the service provider. See the Security (in the Tips for LDAP Users trail) lesson for details and examples. 
ConstantContext.SECURITY_CREDENTIALS(in the API reference documentation)
Default: Provider's default. 
Example: A char[] containing "secret."
java.naming.security.principal A string that specifies the identity of the entity performing the authentication. See the Security (in the Tips for LDAP Users trail) lesson for details and examples. 
ConstantContext.SECURITY_PRINCIPAL(in the API reference documentation)
Default: Provider's default. 
Example"cn=Directory Manager, o=JNDITutorial"
java.naming.security.protocol A string specifying the security protocol to use. See the Security (in the Tips for LDAP Users trail) lesson for details and an example. 
ConstantContext.SECURITY_PROTOCOL(in the API reference documentation)
Default: Provider's default. 
Example"ssl"
posted @ 2015-07-13 15:40  jlx351312  阅读(262)  评论(0编辑  收藏