@Override public void handle(final AuthenticationResponse response) throws LdapException { final String[] labeledDn = response.getResolvedDn().split(":", 2); final org.ldaptive.auth.AuthenticationResponseHandler[] handlers = responseHandlers.get(labeledDn[0]); if (handlers == null) { throw new LdapException("Could not find response handlers for label: " + labeledDn[0]); } if (handlers.length > 0) { for (org.ldaptive.auth.AuthenticationResponseHandler ah : handlers) { ah.handle(response); } } } }
@Override public void handle(final AuthenticationResponse response) throws LdapException { final String[] labeledDn = response.getResolvedDn().split(":", 2); final org.ldaptive.auth.AuthenticationResponseHandler[] handlers = responseHandlers.get(labeledDn[0]); if (handlers == null) { throw new LdapException("Could not find response handlers for label: " + labeledDn[0]); } if (handlers.length > 0) { for (org.ldaptive.auth.AuthenticationResponseHandler ah : handlers) { ah.handle(response); } } } }
final String loginDn = response.getResolvedDn(); if (loginDn != null && setLdapDnPrincipal) { principals.add(new LdapDnPrincipal(loginDn, entry));
final String loginDn = response.getResolvedDn(); if (loginDn != null && setLdapDnPrincipal) { principals.add(new LdapDnPrincipal(loginDn, entry));
final String loginDn = response.getResolvedDn(); if (loginDn != null && setLdapDnPrincipal) { principals.add(new LdapDnPrincipal(loginDn, entry));