Skip to content

Commit 0ab3dad

Browse files
committed
Adding oraclepki as required library for cli and for maven-plugin to allow for connections without username using Oracle Wallet
1 parent 5335ab5 commit 0ab3dad

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

‎pom.xml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@
8686
<artifactId>orai18n</artifactId>
8787
<version>${oracle.jdbc.version}</version>
8888
</dependency>
89+
<dependency>
90+
<groupId>com.oracle.database.security</groupId>
91+
<artifactId>oraclepki</artifactId>
92+
<version>${oracle.jdbc.version}</version>
93+
</dependency>
8994
<dependency>
9095
<groupId>com.google.code.findbugs</groupId>
9196
<artifactId>jsr305</artifactId>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package org.utplsql.api;
2+
3+
import org.junit.jupiter.api.Test;
4+
5+
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
6+
7+
/**
8+
* utPLSQL-cli and utPLSQL-maven-plugin rely on this API to bring the classes ojdbc needs
9+
* for Oracle Wallet (Secure External Password Store) connections.
10+
* Without them, connecting with "/@TNS_ALIAS" fails with ORA-17167.
11+
*/
12+
class OracleWalletSupportTest {
13+
14+
@Test
15+
void oraclePkiIsOnClasspath() {
16+
assertDoesNotThrow(() -> Class.forName("oracle.security.pki.OracleWallet"));
17+
assertDoesNotThrow(() -> Class.forName("oracle.security.pki.OracleSecretStore"));
18+
}
19+
}

0 commit comments

Comments
 (0)