@Test public void testAuthenticate() throws Exception { try (Session dir1 = memdir1.getSession(); Session dir3 = memdir3.getSession()) { assertTrue(dir1.authenticate("1", "pw1")); assertFalse(dir1.authenticate("1", "haha")); assertFalse(dir1.authenticate("3", "pw3")); assertFalse(dir3.authenticate("1", "pw1")); assertTrue(dir3.authenticate("3", "pw3")); assertFalse(dir3.authenticate("3", "haha")); assertTrue(dir.authenticate("1", "pw1")); assertFalse(dir.authenticate("1", "haha")); assertTrue(dir.authenticate("3", "pw3")); assertFalse(dir.authenticate("3", "haha")); } }
@Override public MultiDirectorySession getSession() { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; }
MultiDirectory extends AbstractDirectory { @Override public MultiDirectorySession getSession() { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; } }
MultiDirectory extends AbstractDirectory { @Override public MultiDirectorySession getSession() { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; } MultiDirectory(MultiDirectoryDescriptor descriptor); }
MultiDirectory extends AbstractDirectory { @Override public MultiDirectorySession getSession() { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; } MultiDirectory(MultiDirectoryDescriptor descriptor); @Override MultiDirectoryDescriptor getDescriptor(); @Override MultiDirectorySession getSession(); @Override List<Reference> getReferences(String referenceFieldName); @Override void invalidateDirectoryCache(); }
MultiDirectory extends AbstractDirectory { @Override public MultiDirectorySession getSession() { MultiDirectorySession session = new MultiDirectorySession(this); addSession(session); return session; } MultiDirectory(MultiDirectoryDescriptor descriptor); @Override MultiDirectoryDescriptor getDescriptor(); @Override MultiDirectorySession getSession(); @Override List<Reference> getReferences(String referenceFieldName); @Override void invalidateDirectoryCache();  }