servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r1041297 - /servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/security/auth/impl/JAASAuthenticationService.java
Date Thu, 02 Dec 2010 07:50:50 GMT
Author: jbonofre
Date: Thu Dec  2 07:50:50 2010
New Revision: 1041297

URL: http://svn.apache.org/viewvc?rev=1041297&view=rev
Log:
[SM-1823] JaasAuthenticationService not property authenticating certificate chains.

Modified:
    servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/security/auth/impl/JAASAuthenticationService.java

Modified: servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/security/auth/impl/JAASAuthenticationService.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/security/auth/impl/JAASAuthenticationService.java?rev=1041297&r1=1041296&r2=1041297&view=diff
==============================================================================
--- servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/security/auth/impl/JAASAuthenticationService.java
(original)
+++ servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/security/auth/impl/JAASAuthenticationService.java
Thu Dec  2 07:50:50 2010
@@ -58,6 +58,8 @@ public class JAASAuthenticationService i
                         ((PasswordCallback) callbacks[i]).setPassword(((String) credentials).toCharArray());
                     } else if (callbacks[i] instanceof CertificateCallback && credentials
instanceof X509Certificate) {
                         ((CertificateCallback) callbacks[i]).setCertificate((X509Certificate)
credentials);
+                    } else if (callbacks[i] instanceof CertificateCallback && credentials
instanceof X509Certificate[]) {
+                        ((CertificateCallback) callbacks[i]).setCertificate(((X509Certificate[])
credentials)[0]);
                     } else {
                         throw new UnsupportedCallbackException(callbacks[i]);
                     }



Mime
View raw message