@Test(expected = IllegalStateException.class) public void testGetLdapContextWithoutUrl() throws NamingException { factory.getLdapContext((Object) "foo", "bar"); }
@Deprecated public LdapContext getLdapContext(String username, String password) throws NamingException { if (username != null && principalSuffix != null) { username += principalSuffix; } return getLdapContext((Object) username, password); }
DefaultLdapContextFactory implements LdapContextFactory { @Deprecated public LdapContext getLdapContext(String username, String password) throws NamingException { if (username != null && principalSuffix != null) { username += principalSuffix; } return getLdapContext((Object) username, password); } }
DefaultLdapContextFactory implements LdapContextFactory { @Deprecated public LdapContext getLdapContext(String username, String password) throws NamingException { if (username != null && principalSuffix != null) { username += principalSuffix; } return getLdapContext((Object) username, password); }  }
DefaultLdapContextFactory implements LdapContextFactory { @Deprecated public LdapContext getLdapContext(String username, String password) throws NamingException { if (username != null && principalSuffix != null) { username += principalSuffix; } return getLdapContext((Object) username, password); }  void setAuthentication(String authentication); void setPrincipalSuffix(String principalSuffix); @Deprecated void setSearchBase(String searchBase); void setContextFactoryClassName(String contextFactoryClassName); void setUrl(String url); void setReferral(String referral); void setSystemUsername(String systemUsername); void setSystemPassword(String systemPassword); void setUsePooling(boolean usePooling); void setAdditionalEnvironment(Map<String, String> additionalEnvironment); LdapContext getSystemLdapContext(); @Deprecated LdapContext getLdapContext(String username, String password); LdapContext getLdapContext(Object principal, Object credentials); }
DefaultLdapContextFactory implements LdapContextFactory { @Deprecated public LdapContext getLdapContext(String username, String password) throws NamingException { if (username != null && principalSuffix != null) { username += principalSuffix; } return getLdapContext((Object) username, password); }  void setAuthentication(String authentication); void setPrincipalSuffix(String principalSuffix); @Deprecated void setSearchBase(String searchBase); void setContextFactoryClassName(String contextFactoryClassName); void setUrl(String url); void setReferral(String referral); void setSystemUsername(String systemUsername); void setSystemPassword(String systemPassword); void setUsePooling(boolean usePooling); void setAdditionalEnvironment(Map<String, String> additionalEnvironment); LdapContext getSystemLdapContext(); @Deprecated LdapContext getLdapContext(String username, String password); LdapContext getLdapContext(Object principal, Object credentials);  }