You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2014/09/04 15:22:15 UTC
svn commit: r1622475 -
/webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/spnego/SpnegoTokenContext.java
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 =