Wrox Programmer Forums
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 24th, 2005, 02:37 PM
Authorized User
 
Join Date: Apr 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default JAVA MAIL

JHELLo
( sorry for my grammar )
how i can have in my code of java mail, the password of the account but hidden? (in a JavaBean)

coz, i saw the books, that put the password just like a any string,

if for any motive a person find the .class and then get the source code from the .class (exist software to do that), well is obvious what can happen

thanks

DR POMPEII, THE PLACE OF THE OBLIVION OF GOD
__________________
LIVE AT POMPEII 1972
 
Old June 25th, 2005, 07:57 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have read a bit on the sun forums about this and there was no easy method that I could see, the only solution involved splitting the password into different elements and re-assembling them in the program, so the elements were still visible as strings, but not as the complete password. You would have to search the sun forums for the discussion, I wasnt really happy with this method so did not bother.

The answer posted by most people was to secure the server! If you are running a web application, Tomcat restricts access to the class files, i.e. they are only accessible via jsp, you cannot enter the URL and download them, so, if you have the password in a bean/class it should be as secure as your server!

 
Old June 25th, 2005, 02:05 PM
Authorized User
 
Join Date: Apr 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi angrycat
(sorry for my grammar)

i thought that saw the related Foro in Sun, but is a hard problem trust in the server

anyway thanks for the tip

DR POMPEII, THE PLACE OF THE OBLIVION OF GOD
 
Old June 26th, 2005, 09:30 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dont worry I can read it ok!

If you cant trust your server your whole site/data/everything is up for grabs, I would be more worried about my databases etc. than a mail password, it was database passwords I was trying to secure by the way, not mail passwords, but the issue is the same.

 
Old June 28th, 2005, 03:42 PM
Authorized User
 
Join Date: Apr 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi angrycat
(sorry for my grammar)
you right about all, but always is good think in all risks and posibilities

best wishes


DR POMPEII, THE PLACE OF THE OBLIVION OF GOD





Similar Threads
Thread Thread Starter Forum Replies Last Post
problems sending mail with java mail gandacuboy J2EE 2 December 20th, 2006 03:05 PM
mail with attachment in JAVA rekha_jsr Servlets 8 March 10th, 2006 07:39 AM
Java Mail+Apache Rahuls Apache Tomcat 0 May 21st, 2005 12:13 PM
Error With Java Mail RajeshGudimetla J2EE 1 December 16th, 2004 01:26 AM
Java Mail sri2ee J2EE 0 October 14th, 2003 12:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.