Skip to content
jricher edited this page Sep 26, 2012 · 14 revisions

Data Connection

The project is configured out of the box to connect to a MySQL server running on localhost with a default database name of "oic", and a default username of "oic" with a password of "oic". To change these, edit the dataContext.xml configuration file (or use an alternative method like MVN War Overlays). Be very careful to not check in any sensitive passwords or other information (such as the connection configuration to any integration or production servers) to the repository.

JCE

The project uses JCE through BouncyCastle. Your system may be set up to handle this already, in which case no further action is needed.

If you run into javax.crypto.JceSecurity errors, do the following:

  1. Add the BouncyCastle Provider to your JRE/JDK, per instructions at http://www.bouncycastle.org/wiki/display/JA1/Provider+Installation/

  2. Download the "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files" for your JRE version from http://www.oracle.com/technetwork/java/javase/downloads/index.html (scroll to the bottom of the page).

  3. Install the new policy files per the README file included in the download. The download contains new versions of local_policy.jar and US_export_policy.jar. These files must be placed in your jre/lib/security folder(s - multiple on Windows), replacing the current files. If you wish to at some point revert back to your original policy files, store the original files elsewhere.

Project Information

Related Github projects

  • simple-user-repository An example implementation of backend user data storage and management.

  • simple-web-app A simple application that shows the OpenIdConnectAuthenticationProvider and OIDCAuthenticationFilter in action.

Clone this wiki locally