Skip to content

Commit

Permalink
Fixes spring-projects#39057 : Added keystore type and truststore type…
Browse files Browse the repository at this point in the history
… in toString
  • Loading branch information
amparab committed Jan 15, 2024
1 parent a721595 commit 9c18e5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ private static JksSslStoreDetails asStoreDetails(JksSslBundleProperties.Store pr
@Override
public String toString() {
return "PropertiesSslBundle{" + "key-alias=" + this.key.getAlias() + ", protocol='" + this.protocol + '\''
+ ", keystore-type=" + this.stores.getKeyStore().getType()
+ ((this.stores.getTrustStore() != null) ? ", truststore-type=" + this.stores.getTrustStore().getType()
: ", truststore=null")
+ ", ciphers=" + Arrays.toString(this.options.getCiphers()) + ", enabled-protocols="
+ Arrays.toString(this.options.getEnabledProtocols()) + '}';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ private static boolean hasJavaKeyStoreProperties(Ssl ssl) {
@Override
public String toString() {
return "WebServerSslBundle{" + "key-alias=" + this.key.getAlias() + ", protocol='" + this.protocol + '\''
+ ", keystore-type=" + this.stores.getKeyStore().getType()
+ ((this.stores.getTrustStore() != null) ? ", truststore-type=" + this.stores.getTrustStore().getType()
: ", truststore=null")
+ ", ciphers=" + Arrays.toString(this.options.getCiphers()) + ", enabled-protocols="
+ Arrays.toString(this.options.getEnabledProtocols()) + '}';
}
Expand Down

0 comments on commit 9c18e5e

Please sign in to comment.