Fix #6 Factory Null-tolerant for trusted certificate
This commit is contained in:
parent
3f7f88e14a
commit
ea3b6d50cb
@ -1,3 +1,8 @@
|
|||||||
|
## 0.4.1 [in progress]
|
||||||
|
* [fix] Factory Null-tolerant for trusted certificate (#6)
|
||||||
|
* [test] StackTraces testet for secret leaks
|
||||||
|
* [test] Tested against Vault 0.6.4
|
||||||
|
|
||||||
## 0.4.0 [2016-11-06]
|
## 0.4.0 [2016-11-06]
|
||||||
* [feature] Option to provide a trusted CA certificate (#2)
|
* [feature] Option to provide a trusted CA certificate (#2)
|
||||||
* [feature] Deletion, revocation and renewal of secrets (#3)
|
* [feature] Deletion, revocation and renewal of secrets (#3)
|
||||||
|
@ -22,7 +22,7 @@ Java Vault Connector is a connector library for [Vault](https://www.vaultproject
|
|||||||
* Renew/revoke leases
|
* Renew/revoke leases
|
||||||
* Raw secret content or JSON decoding
|
* Raw secret content or JSON decoding
|
||||||
* Connector Factory with builder pattern
|
* Connector Factory with builder pattern
|
||||||
* Tested against Vault 0.6.3
|
* Tested against Vault 0.6.4
|
||||||
|
|
||||||
**Usage Example**
|
**Usage Example**
|
||||||
|
|
||||||
|
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>de.stklcode.jvault</groupId>
|
<groupId>de.stklcode.jvault</groupId>
|
||||||
<artifactId>connector</artifactId>
|
<artifactId>connector</artifactId>
|
||||||
<version>0.5.0-SNAPSHOT</version>
|
<version>0.4.1-SNAPSHOT</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
@ -131,7 +131,9 @@ public class HTTPVaultConnectorFactory extends VaultConnectorFactory {
|
|||||||
* @since 0.4.0
|
* @since 0.4.0
|
||||||
*/
|
*/
|
||||||
public HTTPVaultConnectorFactory withTrustedCA(Path cert) throws VaultConnectorException {
|
public HTTPVaultConnectorFactory withTrustedCA(Path cert) throws VaultConnectorException {
|
||||||
return withSslContext(createSslContext(cert));
|
if (cert != null)
|
||||||
|
return withSslContext(createSslContext(cert));
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user