8131735: closed/sun/security/ssl/SSLSessionImpl/RemovedPrivateKey.java is failing
authorweijun
Fri, 17 Jul 2015 19:40:25 +0800
changeset 31800 450f972e0488
parent 31799 4251d80202e0
child 31801 1297473ab237
child 31814 b8431927ad72
8131735: closed/sun/security/ssl/SSLSessionImpl/RemovedPrivateKey.java is failing Reviewed-by: vinnie
jdk/src/java.security.jgss/share/classes/sun/security/krb5/internal/ssl/Krb5KeyExchangeService.java
--- a/jdk/src/java.security.jgss/share/classes/sun/security/krb5/internal/ssl/Krb5KeyExchangeService.java	Fri Jul 17 10:37:25 2015 +0100
+++ b/jdk/src/java.security.jgss/share/classes/sun/security/krb5/internal/ssl/Krb5KeyExchangeService.java	Fri Jul 17 19:40:25 2015 +0800
@@ -83,6 +83,12 @@
                     (PrivilegedExceptionAction<ServiceCreds>)
                             () -> Krb5Util.getServiceCreds(
                                     GSSCaller.CALLER_SSL_SERVER, null, acc));
+            if (serviceCreds == null) {
+                if (debug != null && Debug.isOn("handshake")) {
+                    System.out.println("Kerberos serviceCreds not available");
+                }
+                return null;
+            }
             if (debug != null && Debug.isOn("handshake")) {
                 System.out.println("Using Kerberos creds");
             }