Can you parse the config file and decrypt the credentials from the Perl program? If you absolutely need to get the connection attributes from the Java object I have to echo what Paladin said - look into Inline::Java, but I haven't done this myself.
Comment on Re^3: Dazed/Confused from previous posts on how to call Java method from Perl