title: ORA-01005: null password given; logon denied when using Bouncy Castle as security provider
body: <p><strong>The setup is simple:</strong> </p>
  
  <ul>
  <li>bc-fips-1.0.0.jar and bcpkix-fips-1.0.0.jar for the security provider</li>
  <li>oracle jdbc driver version 12.1.0.2 </li>
  <li>server: Oracle Database 12c Standard Edition 12.1.0.2.0</li>
  </ul>
  
  <p><strong>The application:</strong></p>
  
  <pre><code>Security.addProvider(new BouncyCastleFipsProvider());
  Class.forName("oracle.jdbc.driver.OracleDriver");
  Connection connection = DriverManager.getConnection("jdbc:oracle:thin:@host:1521:db","user","pass");
  connection.close();
  </code></pre>
  
  <p><strong>The exception:</strong></p>
  
  <pre><code>java.sql.SQLException: ORA-01005: null password given; logon denied
  
  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)
  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:392)
  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:385)
  at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:1018)
  at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:501)
  at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:522)
  at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257)
  at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:437)
  at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:954)
  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:639)
  at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:666)
  at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:566)
  at java.sql.DriverManager.getConnection(DriverManager.java:664)
  at java.sql.DriverManager.getConnection(DriverManager.java:247)
  at Main.main(Main.java:56)
  </code></pre>
  
  <p>Any idea? </p>