ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1622475 - /webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/spnego/SpnegoTokenContext.java
Date Thu, 04 Sep 2014 13:22:15 GMT
Author: coheigea
Date: Thu Sep  4 13:22:15 2014
New Revision: 1622475

URL: http://svn.apache.org/r1622475
Log:
JDK 1.5 fixes

Modified:
    webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/spnego/SpnegoTokenContext.java

Modified: webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/spnego/SpnegoTokenContext.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/spnego/SpnegoTokenContext.java?rev=1622475&r1=1622474&r2=1622475&view=diff
==============================================================================
--- webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/spnego/SpnegoTokenContext.java
(original)
+++ webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/spnego/SpnegoTokenContext.java
Thu Sep  4 13:22:15 2014
@@ -148,7 +148,7 @@ public class SpnegoTokenContext {
         if (clientAction != null) {
             clientAction.setServiceName(serviceName);
             clientAction.setMutualAuth(mutualAuth);
-            token = Subject.doAs(clientSubject, clientAction);
+            token = (byte[])Subject.doAs(clientSubject, clientAction);
             if (token == null) {
                 throw new WSSecurityException(
                     WSSecurityException.FAILURE, "kerberosServiceTicketError"
@@ -261,7 +261,7 @@ public class SpnegoTokenContext {
         if (serviceAction != null) {
             serviceAction.setTicket(ticket);
             serviceAction.setServiceName(service);
-            token = Subject.doAs(subject, serviceAction);
+            token = (byte[])Subject.doAs(subject, serviceAction);
             secContext = serviceAction.getContext();
         } else {
             KerberosServiceExceptionAction action = 



Mime
View raw message