Is javamail a less secure application?

孤街醉人 提交于 2019-12-04 04:22:55

问题


I was just working on an email program that read emails from Gmail and does further processing. Initially using the code provide in SO(link provided below) I was getting an exception which says that "My access has been blocked and I need to login via web browser".

On the same time I saw an email in inbox (to which I am trying to connect) which says that "Google Account: sign-in attempt blocked" and I need to disable modern security from following link "https://www.google.com/settings/security/lesssecureapps".

I tried to disable and I was succesfully connected.

So does it means that Javamail is a less secure application? Or there are ways by which I can still connect without disabling the option?

Thanks in advance. Garry

[Code I used:]


回答1:


It's really hard to tell because Google isn't saying exactly what "modern security standards" an app needs to implement to be "more secure", but I suspect they're referring to this blog entry where they talk about OAuth2. JavaMail is capable of using the OAuth2 authentication mechanism, which I guess makes JavaMail a "more secure" application.



来源:https://stackoverflow.com/questions/25156129/is-javamail-a-less-secure-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!