Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

User and Pass authentication JavaMail

843834Apr 2 2009 — edited Apr 2 2009
Is there a way of inputing an already encrypted username and password on java mail? i mean, here's a snippet of an authenticator:
Authenticator authenticator = new Authenticator(){
	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication("test", "123456");
	}
};
As you can see, the string I input on the authenticator is not encrypted... and if I put an encrypted string, the JavaMail API will encrypt it again when sending to the server...
I wanna store the password on a config file, and i don't want to decrypt it at all! just leave it encrypted!

Appreciate any help...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2009
Added on Apr 2 2009
1 comment
748 views