< prev index next >

src/java.base/share/classes/sun/security/ssl/CertificateMessage.java

Print this page
rev 52979 : 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: TBD

*** 438,448 **** if (chc.reservedServerCerts != null && !chc.handshakeSession.useExtendedMasterSecret) { // It is not necessary to check the certificate update if // endpoint identification is enabled. String identityAlg = chc.sslConfig.identificationProtocol; ! if ((identityAlg == null || identityAlg.length() == 0) && !isIdentityEquivalent(x509Certs[0], chc.reservedServerCerts[0])) { chc.conContext.fatal(Alert.BAD_CERTIFICATE, "server certificate change is restricted " + "during renegotiation"); --- 438,448 ---- if (chc.reservedServerCerts != null && !chc.handshakeSession.useExtendedMasterSecret) { // It is not necessary to check the certificate update if // endpoint identification is enabled. String identityAlg = chc.sslConfig.identificationProtocol; ! if ((identityAlg == null || identityAlg.isEmpty()) && !isIdentityEquivalent(x509Certs[0], chc.reservedServerCerts[0])) { chc.conContext.fatal(Alert.BAD_CERTIFICATE, "server certificate change is restricted " + "during renegotiation");
< prev index next >