Skip to content

Commit

Permalink
Merge pull request #340 from /issues/339-configure-keystore-truststor…
Browse files Browse the repository at this point in the history
…e-memory

Fix #339: REST client should allow key store and trust store in memory configuration
  • Loading branch information
romanstrobl authored Jan 2, 2025
2 parents 7d3dffd + 37437f6 commit 5826c45
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,16 @@ public CertificateAuthBuilder keyStoreLocation(String keyStoreLocation) {
return this;
}

/**
* Set keystore bytes.
* @param keyStoreBytes Keystore bytes.
* @return Builder.
*/
public CertificateAuthBuilder keyStoreBytes(byte[] keyStoreBytes) {
mainBuilder.config.setKeyStoreBytes(keyStoreBytes);
return this;
}

/**
* Set keystore password.
* @param keyStorePassword Keystore password.
Expand Down Expand Up @@ -1345,6 +1355,16 @@ public CertificateAuthBuilder trustStoreLocation(String trustStoreLocation) {
return this;
}

/**
* Set truststore bytes.
* @param trustStoreBytes Truststore bytes.
* @return Builder.
*/
public CertificateAuthBuilder trustStoreBytes(byte[] trustStoreBytes) {
mainBuilder.config.setTrustStoreBytes(trustStoreBytes);
return this;
}

/**
* Set truststore password.
* @param trustStorePassword Truststore password.
Expand Down

0 comments on commit 5826c45

Please sign in to comment.