Jump to content
We've recently updated our Privacy Statement, available here ×

JDBC datasource with password prompt


huwtrimet.org

Recommended Posts

I need to set up a JDBC datasource to connect to our secured PCI credit card database, people in the database group prefers me not saving the password in the JDBC datasource profile. 

What else could be the alternatives?

Can I have the report prompt for password during runtime?

 

Thanks in advance.

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

I could be wrong but I think you can.

 

1. Create a subreport

2. Main report's subreport properties, use Connection/Data Source Expression like below:

java.sql.DriverManager.getConnection("jdbc:oracle:thin:@//XXXXXX:1521/XXXX", "username", $P{param_password})

3. Make a Parameter "param_password" and set to always prompt

 

I have not tested it...

 

 

Link to comment
Share on other sites

  • 2 weeks later...

There is the PasswordEncoder bean in WEB-INF/applicationContext-security.xml. It extends the Spring org.springframework.security.providers.encoding.PasswordEncoder class. You can see the options in WEB-INF/applicationContext-security.xml and in the Spring Javadoc.

 

 

Sherman

Jaspersoft

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...