How to store a passphrase with a Java application that periodically needs access to its plaintext form? It is a strange situation, but I am wedged in it. If providing a decent security mechanism is impossible, any tips on deterring script-kiddies?
Elaboration on my situation (it rhymes):
It's an inconvenient (read "horrible") situation where the application will be accessing a remote http (not https) service, passing a login/password in plaintext, a few times a week. Yes, ideally I would change service, but I can't do that. Given that, my question is on how to store the login, which the application needs to be able to access in plaintext/unencrypted form. Is there a more secure or at least script-kiddies deterrent solution than just hardcoding the plain values?
Elaboration 2:
This is a server app. I might have the option to host it on a Java EE app server, I am not aware of benefits it provides though. At the same time I am equally interested in how I could deal with this outside a JEE app sever.