@Test(expected = NamingException.class) public void testGetLdapContext() throws NamingException { factory = new JndiLdapContextFactory(); String brokenHost = UUID.randomUUID().toString(); factory.setUrl("ldap: factory.getLdapContext((Object) "foo", "bar"); }
@Deprecated public LdapContext getLdapContext(String username, String password) throws NamingException { return getLdapContext((Object) username, password); }
JndiLdapContextFactory implements LdapContextFactory { @Deprecated public LdapContext getLdapContext(String username, String password) throws NamingException { return getLdapContext((Object) username, password); } }
JndiLdapContextFactory implements LdapContextFactory { @Deprecated public LdapContext getLdapContext(String username, String password) throws NamingException { return getLdapContext((Object) username, password); } JndiLdapContextFactory(); }
JndiLdapContextFactory implements LdapContextFactory { @Deprecated public LdapContext getLdapContext(String username, String password) throws NamingException { return getLdapContext((Object) username, password); } JndiLdapContextFactory(); void setAuthenticationMechanism(String authenticationMechanism); String getAuthenticationMechanism(); void setContextFactoryClassName(String contextFactoryClassName); String getContextFactoryClassName(); Map getEnvironment(); @SuppressWarnings({"unchecked"}) void setEnvironment(Map env); boolean isPoolingEnabled(); void setPoolingEnabled(boolean poolingEnabled); void setReferral(String referral); String getReferral(); void setUrl(String url); String getUrl(); void setSystemPassword(String systemPassword); String getSystemPassword(); void setSystemUsername(String systemUsername); String getSystemUsername(); LdapContext getSystemLdapContext(); @Deprecated LdapContext getLdapContext(String username, String password); LdapContext getLdapContext(Object principal, Object credentials); }
JndiLdapContextFactory implements LdapContextFactory { @Deprecated public LdapContext getLdapContext(String username, String password) throws NamingException { return getLdapContext((Object) username, password); } JndiLdapContextFactory(); void setAuthenticationMechanism(String authenticationMechanism); String getAuthenticationMechanism(); void setContextFactoryClassName(String contextFactoryClassName); String getContextFactoryClassName(); Map getEnvironment(); @SuppressWarnings({"unchecked"}) void setEnvironment(Map env); boolean isPoolingEnabled(); void setPoolingEnabled(boolean poolingEnabled); void setReferral(String referral); String getReferral(); void setUrl(String url); String getUrl(); void setSystemPassword(String systemPassword); String getSystemPassword(); void setSystemUsername(String systemUsername); String getSystemUsername(); LdapContext getSystemLdapContext(); @Deprecated LdapContext getLdapContext(String username, String password); LdapContext getLdapContext(Object principal, Object credentials);  }