/** * The LDAP url to connect to. (e.g. ldap://<ldapDirectoryHostname>:<port>). This must be configured. * * @param url the LDAP url to connect to. (e.g. ldap://<ldapDirectoryHostname>:<port>) */ public void setUrl(String url) { setEnvironmentProperty(Context.PROVIDER_URL, url); }
/** * Sets the LDAP referral behavior when creating a connection. Defaults to {@code follow}. See the Sun/Oracle LDAP * <a href="http://java.sun.com/products/jndi/tutorial/ldap/referral/jndi.html">referral documentation</a> for more. * * @param referral the referral property. * @see <a href="http://java.sun.com/products/jndi/tutorial/ldap/referral/jndi.html">Referrals in JNDI</a> */ public void setReferral(String referral) { setEnvironmentProperty(Context.REFERRAL, referral); }
/** * The name of the ContextFactory class to use. This defaults to the SUN LDAP JNDI implementation * but can be overridden to use custom LDAP factories. * <p/> * This is a wrapper method for setting the JNDI environment's {@link Context#INITIAL_CONTEXT_FACTORY} property. * * @param contextFactoryClassName the context factory that should be used. */ public void setContextFactoryClassName(String contextFactoryClassName) { setEnvironmentProperty(Context.INITIAL_CONTEXT_FACTORY, contextFactoryClassName); }
/** * Sets the type of LDAP authentication mechanism to use when connecting to the LDAP server. * This is a wrapper method for setting the JNDI {@link #getEnvironment() environment template}'s * {@link Context#SECURITY_AUTHENTICATION} property. * <p/> * "none" (i.e. anonymous) and "simple" authentications are supported automatically and don't need to be configured * via this property. However, if you require a different mechanism, such as a SASL or External mechanism, you * must configure that explicitly via this property. See the * <a href="http://download-llnw.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html">JNDI LDAP * Authentication Mechanisms</a> for more information. * * @param authenticationMechanism the type of LDAP authentication to perform. * @see <a href="http://download-llnw.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html"> * http://download-llnw.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html</a> */ public void setAuthenticationMechanism(String authenticationMechanism) { setEnvironmentProperty(Context.SECURITY_AUTHENTICATION, authenticationMechanism); }
/** * Sets the LDAP referral behavior when creating a connection. Defaults to {@code follow}. See the Sun/Oracle LDAP * <a href="http://java.sun.com/products/jndi/tutorial/ldap/referral/jndi.html">referral documentation</a> for more. * * @param referral the referral property. * @see <a href="http://java.sun.com/products/jndi/tutorial/ldap/referral/jndi.html">Referrals in JNDI</a> */ public void setReferral(String referral) { setEnvironmentProperty(Context.REFERRAL, referral); }
/** * The name of the ContextFactory class to use. This defaults to the SUN LDAP JNDI implementation * but can be overridden to use custom LDAP factories. * <p/> * This is a wrapper method for setting the JNDI environment's {@link Context#INITIAL_CONTEXT_FACTORY} property. * * @param contextFactoryClassName the context factory that should be used. */ public void setContextFactoryClassName(String contextFactoryClassName) { setEnvironmentProperty(Context.INITIAL_CONTEXT_FACTORY, contextFactoryClassName); }
/** * The LDAP url to connect to. (e.g. ldap://<ldapDirectoryHostname>:<port>). This must be configured. * * @param url the LDAP url to connect to. (e.g. ldap://<ldapDirectoryHostname>:<port>) */ public void setUrl(String url) { setEnvironmentProperty(Context.PROVIDER_URL, url); }
/** * Sets the type of LDAP authentication mechanism to use when connecting to the LDAP server. * This is a wrapper method for setting the JNDI {@link #getEnvironment() environment template}'s * {@link Context#SECURITY_AUTHENTICATION} property. * <p/> * "none" (i.e. anonymous) and "simple" authentications are supported automatically and don't need to be configured * via this property. However, if you require a different mechanism, such as a SASL or External mechanism, you * must configure that explicitly via this property. See the * <a href="http://download-llnw.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html">JNDI LDAP * Authentication Mechanisms</a> for more information. * * @param authenticationMechanism the type of LDAP authentication to perform. * @see <a href="http://download-llnw.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html"> * http://download-llnw.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html</a> */ public void setAuthenticationMechanism(String authenticationMechanism) { setEnvironmentProperty(Context.SECURITY_AUTHENTICATION, authenticationMechanism); }
/** * The LDAP url to connect to. (e.g. ldap://<ldapDirectoryHostname>:<port>). This must be configured. * * @param url the LDAP url to connect to. (e.g. ldap://<ldapDirectoryHostname>:<port>) */ public void setUrl(String url) { setEnvironmentProperty(Context.PROVIDER_URL, url); }
/** * Sets the LDAP referral behavior when creating a connection. Defaults to {@code follow}. See the Sun/Oracle LDAP * <a href="http://java.sun.com/products/jndi/tutorial/ldap/referral/jndi.html">referral documentation</a> for more. * * @param referral the referral property. * @see <a href="http://java.sun.com/products/jndi/tutorial/ldap/referral/jndi.html">Referrals in JNDI</a> */ public void setReferral(String referral) { setEnvironmentProperty(Context.REFERRAL, referral); }
/** * The name of the ContextFactory class to use. This defaults to the SUN LDAP JNDI implementation * but can be overridden to use custom LDAP factories. * <p/> * This is a wrapper method for setting the JNDI environment's {@link Context#INITIAL_CONTEXT_FACTORY} property. * * @param contextFactoryClassName the context factory that should be used. */ public void setContextFactoryClassName(String contextFactoryClassName) { setEnvironmentProperty(Context.INITIAL_CONTEXT_FACTORY, contextFactoryClassName); }
/** * Sets the type of LDAP authentication mechanism to use when connecting to the LDAP server. * This is a wrapper method for setting the JNDI {@link #getEnvironment() environment template}'s * {@link Context#SECURITY_AUTHENTICATION} property. * <p/> * "none" (i.e. anonymous) and "simple" authentications are supported automatically and don't need to be configured * via this property. However, if you require a different mechanism, such as a SASL or External mechanism, you * must configure that explicitly via this property. See the * <a href="http://download-llnw.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html">JNDI LDAP * Authentication Mechanisms</a> for more information. * * @param authenticationMechanism the type of LDAP authentication to perform. * @see <a href="http://download-llnw.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html"> * http://download-llnw.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html</a> */ public void setAuthenticationMechanism(String authenticationMechanism) { setEnvironmentProperty(Context.SECURITY_AUTHENTICATION, authenticationMechanism); }