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...