/** * Validates password for base. Base is user's DN. When context was created * successful specified requirements are valid. * @param dn the user's distinguished name * @param password the user's password * @return boolean if the user's password is correct */ public boolean validatePassword(String dn, String password) { try { isAuthContext(dn, password); return true; } catch (SecurityViolation sv) { return false; } }