Skip to content

Commit

Permalink
adding back old SslHandshakeInfo constructor for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
deeptiv1991 committed Nov 24, 2024
1 parent 4ba06ab commit 9ce8a3d
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@ public class SslHandshakeInfo {
private final boolean usingExternalPSK;
private final ClientPSKIdentityInfo clientPSKIdentityInfo;

//for backward compatibility
public SslHandshakeInfo(
boolean isOfIntermediary,
String protocol,
String cipherSuite,
ClientAuth clientAuthRequirement,
Certificate serverCertificate,
X509Certificate clientCertificate) {
this.protocol = protocol;
this.cipherSuite = cipherSuite;
this.clientAuthRequirement = clientAuthRequirement;
this.serverCertificate = serverCertificate;
this.clientCertificate = clientCertificate;
this.isOfIntermediary = isOfIntermediary;
this.usingExternalPSK = false;
this.clientPSKIdentityInfo = null;
}

public SslHandshakeInfo(
boolean isOfIntermediary,
String protocol,
Expand Down

0 comments on commit 9ce8a3d

Please sign in to comment.