Author: anil.saldhana(a)jboss.com
Date: 2011-06-13 19:52:49 -0400 (Mon, 13 Jun 2011)
New Revision: 1000
Modified:
trust/trunk/jbossws/src/main/java/org/picketlink/trust/jbossws/handler/BinaryTokenHandler.java
Log:
PLFED-185: use StringUtil
Modified:
trust/trunk/jbossws/src/main/java/org/picketlink/trust/jbossws/handler/BinaryTokenHandler.java
===================================================================
---
trust/trunk/jbossws/src/main/java/org/picketlink/trust/jbossws/handler/BinaryTokenHandler.java 2011-06-13
23:52:28 UTC (rev 999)
+++
trust/trunk/jbossws/src/main/java/org/picketlink/trust/jbossws/handler/BinaryTokenHandler.java 2011-06-13
23:52:49 UTC (rev 1000)
@@ -23,7 +23,6 @@
import java.util.ArrayList;
import java.util.List;
-import java.util.StringTokenizer;
import javax.security.jacc.PolicyContext;
import javax.security.jacc.PolicyContextException;
@@ -39,6 +38,7 @@
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.handler.soap.SOAPMessageContext;
+import org.picketlink.identity.federation.core.util.StringUtil;
import org.picketlink.trust.jbossws.Constants;
import org.picketlink.trust.jbossws.Util;
@@ -420,11 +420,9 @@
private List<String> getHeaderNames(String str)
{
List<String> list = new ArrayList<String>();
-
- StringTokenizer st = new StringTokenizer(str, ",");
- while(st.hasMoreElements())
+ if(StringUtil.isNotNull(str))
{
- list.add(st.nextToken());
+ list.addAll(StringUtil.tokenize(str));
}
return list;
}