in my source code I need to set some properties, Database connection certifications on code level before the database connection establishes.
System.setProperty("javax.net.ssl.trustStorePassword", keystorePassword);
edit - I tried it using java -Djavax.net.ssl.trustStorePassword=yourPassword on runtime, but I want to do it in code level.