/** * Returns the LDAP url to connect to. (e.g. ldap://<ldapDirectoryHostname>:<port>). * This must be configured. * * @return the LDAP url to connect to. (e.g. ldap://<ldapDirectoryHostname>:<port>) */ public String getUrl() { return (String) getEnvironmentProperty(Context.PROVIDER_URL); }
/** * Sets 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 getting the JNDI environment's {@link Context#INITIAL_CONTEXT_FACTORY} property. * * @return the name of the ContextFactory class to use. */ public String getContextFactoryClassName() { return (String) getEnvironmentProperty(Context.INITIAL_CONTEXT_FACTORY); }
/** * Returns 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. * * @return the LDAP referral behavior when creating a connection. * @see <a href="http://java.sun.com/products/jndi/tutorial/ldap/referral/jndi.html">Referrals in JNDI</a> */ public String getReferral() { return (String) getEnvironmentProperty(Context.REFERRAL); }
/** * Returns the type of LDAP authentication mechanism to use when connecting to the LDAP server. * This is a wrapper method for getting the JNDI {@link #getEnvironment() environment template}'s * {@link Context#SECURITY_AUTHENTICATION} property. * <p/> * If this property remains un-configured (i.e. {@code null} indicating the * {@link #setAuthenticationMechanism(String)} method wasn't used), this indicates that the default JNDI * "none" (anonymous) and "simple" authentications are supported automatically. Any non-null value returned * represents an explicitly configured mechanism (e.g. a SASL or external mechanism). See the * <a href="http://download-llnw.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html">JNDI LDAP * Authentication Mechanisms</a> for more information. * * @return the type of LDAP authentication mechanism to use when connecting to the LDAP server. * @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 String getAuthenticationMechanism() { return (String) getEnvironmentProperty(Context.SECURITY_AUTHENTICATION); }
/** * Returns 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. * * @return the LDAP referral behavior when creating a connection. * @see <a href="http://java.sun.com/products/jndi/tutorial/ldap/referral/jndi.html">Referrals in JNDI</a> */ public String getReferral() { return (String) getEnvironmentProperty(Context.REFERRAL); }
/** * Returns the LDAP url to connect to. (e.g. ldap://<ldapDirectoryHostname>:<port>). * This must be configured. * * @return the LDAP url to connect to. (e.g. ldap://<ldapDirectoryHostname>:<port>) */ public String getUrl() { return (String) getEnvironmentProperty(Context.PROVIDER_URL); }
/** * Sets 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 getting the JNDI environment's {@link Context#INITIAL_CONTEXT_FACTORY} property. * * @return the name of the ContextFactory class to use. */ public String getContextFactoryClassName() { return (String) getEnvironmentProperty(Context.INITIAL_CONTEXT_FACTORY); }
/** * Returns the type of LDAP authentication mechanism to use when connecting to the LDAP server. * This is a wrapper method for getting the JNDI {@link #getEnvironment() environment template}'s * {@link Context#SECURITY_AUTHENTICATION} property. * <p/> * If this property remains un-configured (i.e. {@code null} indicating the * {@link #setAuthenticationMechanism(String)} method wasn't used), this indicates that the default JNDI * "none" (anonymous) and "simple" authentications are supported automatically. Any non-null value returned * represents an explicitly configured mechanism (e.g. a SASL or external mechanism). See the * <a href="http://download-llnw.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html">JNDI LDAP * Authentication Mechanisms</a> for more information. * * @return the type of LDAP authentication mechanism to use when connecting to the LDAP server. * @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 String getAuthenticationMechanism() { return (String) getEnvironmentProperty(Context.SECURITY_AUTHENTICATION); }
/** * Sets 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 getting the JNDI environment's {@link Context#INITIAL_CONTEXT_FACTORY} property. * * @return the name of the ContextFactory class to use. */ public String getContextFactoryClassName() { return (String) getEnvironmentProperty(Context.INITIAL_CONTEXT_FACTORY); }
/** * Returns 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. * * @return the LDAP referral behavior when creating a connection. * @see <a href="http://java.sun.com/products/jndi/tutorial/ldap/referral/jndi.html">Referrals in JNDI</a> */ public String getReferral() { return (String) getEnvironmentProperty(Context.REFERRAL); }
/** * Returns the LDAP url to connect to. (e.g. ldap://<ldapDirectoryHostname>:<port>). * This must be configured. * * @return the LDAP url to connect to. (e.g. ldap://<ldapDirectoryHostname>:<port>) */ public String getUrl() { return (String) getEnvironmentProperty(Context.PROVIDER_URL); }
/** * Returns the type of LDAP authentication mechanism to use when connecting to the LDAP server. * This is a wrapper method for getting the JNDI {@link #getEnvironment() environment template}'s * {@link Context#SECURITY_AUTHENTICATION} property. * <p/> * If this property remains un-configured (i.e. {@code null} indicating the * {@link #setAuthenticationMechanism(String)} method wasn't used), this indicates that the default JNDI * "none" (anonymous) and "simple" authentications are supported automatically. Any non-null value returned * represents an explicitly configured mechanism (e.g. a SASL or external mechanism). See the * <a href="http://download-llnw.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html">JNDI LDAP * Authentication Mechanisms</a> for more information. * * @return the type of LDAP authentication mechanism to use when connecting to the LDAP server. * @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 String getAuthenticationMechanism() { return (String) getEnvironmentProperty(Context.SECURITY_AUTHENTICATION); }