Import .PrivateKeyInfo import .Bounc圜astleProvider import import .JcaPEMKe圜onverter import .JceOpenSSLPKCS8DecryptorProviderBuilder import import import 8EncryptedPrivateKeyInfo import import java.io.FileReader import java.io.IOException import import import import import import import import public class TestJdbc Include the Bouncy Castle JAR files in the classpath. Set this to the name of role that you want to use.Ĭompile and run the sample code. Set this to the name of warehouse that you want to use. Set this to the name of schema that you want to use. Set this to the name of the database that you want to use. If you generated an encrypted key, implement the getPrivateKeyPassphrase() method to return the passphrase for decrypting that key. Set this to the path and name of the private key file that you generated earlier. Where versions specifies the versions of the JDK that the JAR file supports.Ĭopy the sample code below, and replace the following placeholder values: The PKIX / CMS / EAC / PKCS / OCSP / TSP / OPENSSL JAR file ( bcpkix-jdk versions. The provider JAR file ( bcprov-jdk versions. In order to compile and run thisĮxample, you must include the following JAR files in your classpath: This example uses the Bouncy Castle Crypto APIs. This section provides an example of setting the privateKey property to a private key in a file. PrivateKey Property in Connection Properties ¶
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |