Author: anil.saldhana(a)jboss.com
Date: 2011-07-08 10:28:32 -0400 (Fri, 08 Jul 2011)
New Revision: 1079
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/PicketLinkSTS.java
Log:
PLFED-186: set binary token
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/PicketLinkSTS.java
===================================================================
---
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/PicketLinkSTS.java 2011-07-07
18:54:58 UTC (rev 1078)
+++
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/PicketLinkSTS.java 2011-07-08
14:28:32 UTC (rev 1079)
@@ -98,11 +98,12 @@
public SOAPMessage invoke(SOAPMessage request)
{
String valueType = null;
+ Node binaryToken = null;
//Check headers
try
{
SOAPHeader soapHeader = request.getSOAPHeader();
- Node binaryToken = getBinaryToken(soapHeader);
+ binaryToken = getBinaryToken(soapHeader);
if (binaryToken != null)
{
NamedNodeMap namedNodeMap = binaryToken.getAttributes();
@@ -149,6 +150,11 @@
throw new RuntimeException(e);
}
+ if (binaryToken != null)
+ {
+ req.setBinaryToken(binaryToken);
+ }
+
if (valueType != null)
{
req.setBinaryValueType(URI.create(valueType));
Show replies by date