Definition at line 58 of file HeavyAIConnection.java.
static S_struct ai.heavy.jdbc.KeyLoader.getDetails_pkcs12 |
( |
String |
filename, |
|
|
String |
password |
|
) |
| throws Exception |
|
inlinestatic |
Definition at line 71 of file HeavyAIConnection.java.
References nvtx_helpers::anonymous_namespace{nvtx_helpers.cpp}.filename(), and ai.heavy.jdbc.KeyLoader.getX509().
73 S_struct s_struct =
new S_struct();
75 KeyStore keystore = KeyStore.getInstance(
"PKCS12");
76 java.io.FileInputStream fis =
new java.io.FileInputStream(
filename);
77 keystore.load(fis, password.toCharArray());
79 Enumeration<String> eE = keystore.aliases();
81 while (eE.hasMoreElements()) {
82 alias = eE.nextElement();
86 throw new SQLException(
"pkcs12 file [" +
filename
87 +
"] contains an incorrect number [" + count
88 +
"] of certificate(s); only a single certificate is allowed");
91 X509Certificate cert = (X509Certificate) keystore.getCertificate(alias);
93 s_struct.key = keystore.getKey(alias, password.toCharArray());
94 }
catch (Exception eX) {
95 HeavyAIConnection.logger.error(eX.getMessage());
static String getX509(X509Certificate cert)
std::string filename(char const *path)
static String ai.heavy.jdbc.KeyLoader.getX509 |
( |
X509Certificate |
cert | ) |
throws Exception |
|
inlinestatic |
The documentation for this class was generated from the following file:
- /home/jenkins-slave/workspace/core-os-doxygen/java/heavyaijdbc/src/main/java/ai/heavy/jdbc/HeavyAIConnection.java