I want to use hyperref's \hypersetup to set title, author, and keywords of the generated PDF file to the corresponding values.

The problem is that I want \hypersetup values to be generated automatically; i.e. it takes the title of the paper and sets it as the title of the PDF file, and does the same for the author and keywords fields.

As shown above, I used \@title (which is defined internally by elsarticle document class). I just don't know how to automatically include author names and keyword list (both of them in the comma-separated format).