cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1363167 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/AbstractSpnegoAuthSupplier.java
Date Wed, 18 Jul 2012 23:06:23 GMT
Author: sergeyb
Date: Wed Jul 18 23:06:23 2012
New Revision: 1363167

URL: http://svn.apache.org/viewvc?rev=1363167&view=rev
Log:
Updating the spnego handler to use message.getContextualProperty when checking for the credential

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/AbstractSpnegoAuthSupplier.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/AbstractSpnegoAuthSupplier.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/AbstractSpnegoAuthSupplier.java?rev=1363167&r1=1363166&r2=1363167&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/AbstractSpnegoAuthSupplier.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/auth/AbstractSpnegoAuthSupplier.java
Wed Jul 18 23:06:23 2012
@@ -135,7 +135,8 @@ public abstract class AbstractSpnegoAuth
         GSSManager manager = GSSManager.getInstance();
         GSSName serverName = manager.createName(spn, null);
 
-        GSSCredential delegatedCred = (GSSCredential)message.get(GSSCredential.class.getName());
+        GSSCredential delegatedCred = 
+            (GSSCredential)message.getContextualProperty(GSSCredential.class.getName());
         
         GSSContext context = manager
                 .createContext(serverName.canonicalize(oid), oid, delegatedCred, GSSContext.DEFAULT_LIFETIME);



Mime
View raw message