Added a public method for setting the Bouncy Castle security provider.