@Test public void testAuthenticate() throws Exception { Session dir1 = memdir1.getSession(); Session dir3 = memdir3.getSession(); assertTrue(dir1.authenticate("1", "foo1")); assertFalse(dir1.authenticate("1", "haha")); assertFalse(dir1.authenticate("3", "foo3")); assertFalse(dir3.authenticate("1", "foo1")); assertTrue(dir3.authenticate("3", "foo3")); assertFalse(dir3.authenticate("3", "haha")); assertTrue(dir.authenticate("1", "foo1")); assertFalse(dir.authenticate("1", "haha")); assertTrue(dir.authenticate("3", "foo3")); assertFalse(dir.authenticate("3", "haha")); }
@Override public Session getSession() throws DirectoryException { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; }
MultiDirectory extends AbstractDirectory { @Override public Session getSession() throws DirectoryException { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; } }
MultiDirectory extends AbstractDirectory { @Override public Session getSession() throws DirectoryException { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; } MultiDirectory(MultiDirectoryDescriptor descriptor); }
MultiDirectory extends AbstractDirectory { @Override public Session getSession() throws DirectoryException { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; } MultiDirectory(MultiDirectoryDescriptor descriptor); @Override String getName(); @Override String getSchema(); @Override String getParentDirectory(); @Override String getIdField(); @Override String getPasswordField(); @Override Session getSession(); @Override Reference getReference(String referenceFieldName); @Override void invalidateDirectoryCache(); }
MultiDirectory extends AbstractDirectory { @Override public Session getSession() throws DirectoryException { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; } MultiDirectory(MultiDirectoryDescriptor descriptor); @Override String getName(); @Override String getSchema(); @Override String getParentDirectory(); @Override String getIdField(); @Override String getPasswordField(); @Override Session getSession(); @Override Reference getReference(String referenceFieldName); @Override void invalidateDirectoryCache();  }