Secure Gmail login on web browser from external Java program

Posted by Zach Scrivena on Stack Overflow See other posts from Stack Overflow or by Zach Scrivena
Published on 2008-09-21T20:51:12Z Indexed on 2011/01/18 3:53 UTC
Read the original article Hit count: 182

Filed under:
|
|
|

Is there a secure way of logging into a Gmail account on a web browser, from an external Java program? I know the following works, but is there a safer alternative?

Desktop.getDesktop().browse(new URI(
        "https://www.google.com/accounts/ServiceLoginAuth?continue=http://mail.google.com/gmail" +
        "&service=mail&Email=LOGIN&Passwd=PASSWORD&null=Sign+in"));

Clarification: The external Java program is GmailAssistant, a Gmail notifier that already uses the IMAP capabilities of JavaMail. I just need a way of allowing the user to access the account directly in a web browser.

© Stack Overflow or respective owner

Related posts about java

Related posts about browser