简体   繁体   English

javamail-向imap服务器进行身份验证的推荐方法? (gmail)

[英]javamail - recommended method for authenticating to imap server? (gmail)

Rather than store my password in the code or config files, is there an easy way to use an Oauth token instead? 除了将我的密码存储在代码或配置文件中之外,还有一种简单的方法来使用Oauth令牌吗? Thought about encrypting it, but thats like hiding a key under the doormat... 想过要对其加密,但这就像在门垫下隐藏一个钥匙...

That's what google suggests you do , actually. 谷歌实际上建议您这样做 And... ahem ... 而且...... 啊哈 ......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM