<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2398</id>
	<title>Nabble - WSS4J</title>
	<updated>2009-12-15T11:52:02Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/WSS4J-f2398.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSS4J-f2398.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26800727</id>
	<title>Re: WS-Security RSA Excrytion exception..</title>
	<published>2009-12-15T11:52:02Z</published>
	<updated>2009-12-15T11:52:02Z</updated>
	<author>
		<name>dkulp</name>
	</author>
	<content type="html">On Tue December 15 2009 2:43:55 pm stevewu wrote:
&lt;br&gt;&amp;gt; Hi Dan
&lt;br&gt;&amp;gt; Is this issue resolved in CXF 2.2.4, as it shipped with wss4j-1.5.8.jar?
&lt;br&gt;&lt;br&gt;I believe so, yea.
&lt;br&gt;&lt;br&gt;Dan
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; Steve
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; dkulp wrote:
&lt;br&gt;&amp;gt; &amp;gt; On Wed June 10 2009 5:21:17 pm bharath thippireddy wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I could get the User Token encryption working using BountyCastle.But as
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; we
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; cannot use bounty castle
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Any particular reason why? &amp;nbsp; I'm pretty sure a lot of things WS-Security
&lt;br&gt;&amp;gt; &amp;gt; related won't work with BouncyCastle. &amp;nbsp; The JDK just doesn't have the
&lt;br&gt;&amp;gt; &amp;gt; algorithms that are needed. &amp;nbsp;(although java 6 does have a lot more)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; can you please let me know if the exception below
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; can be fixed with a setting in jdk/jce.When I try a different algorithm
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; like DES instead of RSA I get &amp;nbsp;a nullpointer exception on the CXF
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Client.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.security.NoSuchAlgorithmException: Cannot find any provider
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; supporting RSA/NONE/PKCS1PADDING
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I did a little digging and I THINK this particular exception could be
&lt;br&gt;&amp;gt; &amp;gt; fixed
&lt;br&gt;&amp;gt; &amp;gt; with a simple change in WSS4J. &amp;nbsp; If the line:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; cipher = Cipher.getInstance(&amp;quot;RSA/NONE/PKCS1PADDING&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; was surrounded with a try/catch that would then try:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; cipher = Cipher.getInstance(&amp;quot;RSA/ECB/PKCS1PADDING&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I THINK it would work. &amp;nbsp; Bouncycastle uses &amp;quot;NONE&amp;quot; for the mode whereas
&lt;br&gt;&amp;gt; &amp;gt; the Sun
&lt;br&gt;&amp;gt; &amp;gt; provider uses ECB. &amp;nbsp; Not sure what the Sun setting for
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;RSA/NONE/OAEPPADDING&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; is. &amp;nbsp;That would need to be investigated more. &amp;nbsp;It would be one of:
&lt;br&gt;&amp;gt; &amp;gt; OAEPWITHMD5ANDMGF1PADDING, OAEPWITHSHA1ANDMGF1PADDING,
&lt;br&gt;&amp;gt; &amp;gt; OAEPWITHSHA-1ANDMGF1PADDING, OAEPWITHSHA-256ANDMGF1PADDING,
&lt;br&gt;&amp;gt; &amp;gt; OAEPWITHSHA-384ANDMGF1PADDING, OAEPWITHSHA-512ANDMGF1PADDING
&lt;br&gt;&amp;gt; &amp;gt; but cryptography is definitely not my area.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; In any case, that would require you to patch WSS4J. &amp;nbsp;If that's an option
&lt;br&gt;&amp;gt; &amp;gt; for
&lt;br&gt;&amp;gt; &amp;gt; you, you could give that a try.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; To the WSS4j folks: &amp;nbsp;why is this method not calling XMLCipher.getInstance
&lt;br&gt;&amp;gt; &amp;gt; like
&lt;br&gt;&amp;gt; &amp;gt; every other cipher related thing? &amp;nbsp;Should it be? &amp;nbsp; Would that alone fix
&lt;br&gt;&amp;gt; &amp;gt; it?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Dan
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Jun 10, 2009 5:11:04 PM
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; handleMessage
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; WARNING:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; org.apache.ws.security.WSSecurityException: An unsupported signature or
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; encryption algorithm was used (unsupported key t
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ransport encryption algorithm: No such algorithm:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/2001/04/xmlenc#rsa-1_5);&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/04/xmlenc#rsa-1_5);&lt;/a&gt;&amp;nbsp;nested exception is:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.security.NoSuchAlgorithmException: Cannot find any provider
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; supporting RSA/NONE/PKCS1PADDING
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityU
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;til .java:690)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKe
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;y(E ncryptedKeyProcessor.java:145)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKe
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;y(E ncryptedKeyProcessor.java:107)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(Encry
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;pte dKeyProcessor.java:87)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; thanks and regards,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Bharath
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Daniel Kulp
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800727&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dkulp@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.dankulp.com/blog&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dankulp.com/blog&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800727&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26800727&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-WS-Security-RSA-Excrytion-exception..-tp23974303p26800727.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26800579</id>
	<title>Re: WS-Security RSA Excrytion exception..</title>
	<published>2009-12-15T11:43:54Z</published>
	<updated>2009-12-15T11:43:54Z</updated>
	<author>
		<name>stevewu</name>
	</author>
	<content type="html">Hi Dan
&lt;br&gt;Is this issue resolved in CXF 2.2.4, as it shipped with wss4j-1.5.8.jar?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Steve
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;dkulp wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;On Wed June 10 2009 5:21:17 pm bharath thippireddy wrote:
&lt;br&gt;&amp;gt; I could get the User Token encryption working using BountyCastle.But as we
&lt;br&gt;&amp;gt; cannot use bounty castle
&lt;br&gt;&lt;br&gt;Any particular reason why? &amp;nbsp; I'm pretty sure a lot of things WS-Security 
&lt;br&gt;related won't work with BouncyCastle. &amp;nbsp; The JDK just doesn't have the 
&lt;br&gt;algorithms that are needed. &amp;nbsp;(although java 6 does have a lot more)
&lt;br&gt;&lt;br&gt;&amp;gt; can you please let me know if the exception below
&lt;br&gt;&amp;gt; can be fixed with a setting in jdk/jce.When I try a different algorithm
&lt;br&gt;&amp;gt; like DES instead of RSA I get &amp;nbsp;a nullpointer exception on the CXF Client.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.security.NoSuchAlgorithmException: Cannot find any provider
&lt;br&gt;&amp;gt; supporting RSA/NONE/PKCS1PADDING
&lt;br&gt;&lt;br&gt;I did a little digging and I THINK this particular exception could be fixed 
&lt;br&gt;with a simple change in WSS4J. &amp;nbsp; If the line:
&lt;br&gt;&lt;br&gt;cipher = Cipher.getInstance(&amp;quot;RSA/NONE/PKCS1PADDING&amp;quot;);
&lt;br&gt;&lt;br&gt;was surrounded with a try/catch that would then try:
&lt;br&gt;&lt;br&gt;cipher = Cipher.getInstance(&amp;quot;RSA/ECB/PKCS1PADDING&amp;quot;);
&lt;br&gt;&lt;br&gt;I THINK it would work. &amp;nbsp; Bouncycastle uses &amp;quot;NONE&amp;quot; for the mode whereas the Sun 
&lt;br&gt;provider uses ECB. &amp;nbsp; Not sure what the Sun setting for &amp;quot;RSA/NONE/OAEPPADDING&amp;quot; 
&lt;br&gt;is. &amp;nbsp;That would need to be investigated more. &amp;nbsp;It would be one of:
&lt;br&gt;OAEPWITHMD5ANDMGF1PADDING, OAEPWITHSHA1ANDMGF1PADDING, 
&lt;br&gt;OAEPWITHSHA-1ANDMGF1PADDING, OAEPWITHSHA-256ANDMGF1PADDING, 
&lt;br&gt;OAEPWITHSHA-384ANDMGF1PADDING, OAEPWITHSHA-512ANDMGF1PADDING
&lt;br&gt;but cryptography is definitely not my area.
&lt;br&gt;&lt;br&gt;In any case, that would require you to patch WSS4J. &amp;nbsp;If that's an option for 
&lt;br&gt;you, you could give that a try.
&lt;br&gt;&lt;br&gt;To the WSS4j folks: &amp;nbsp;why is this method not calling XMLCipher.getInstance like 
&lt;br&gt;every other cipher related thing? &amp;nbsp;Should it be? &amp;nbsp; Would that alone fix it?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Dan
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Jun 10, 2009 5:11:04 PM org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
&lt;br&gt;&amp;gt; handleMessage
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; WARNING:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; org.apache.ws.security.WSSecurityException: An unsupported signature or
&lt;br&gt;&amp;gt; encryption algorithm was used (unsupported key t
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ransport encryption algorithm: No such algorithm:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/2001/04/xmlenc#rsa-1_5);&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/04/xmlenc#rsa-1_5);&lt;/a&gt;&amp;nbsp;nested exception is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.security.NoSuchAlgorithmException: Cannot find any provider
&lt;br&gt;&amp;gt; supporting RSA/NONE/PKCS1PADDING
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil
&lt;br&gt;&amp;gt;.java:690)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(E
&lt;br&gt;&amp;gt;ncryptedKeyProcessor.java:145)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(E
&lt;br&gt;&amp;gt;ncryptedKeyProcessor.java:107)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(Encrypte
&lt;br&gt;&amp;gt;dKeyProcessor.java:87)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks and regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Bharath
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Daniel Kulp
&lt;br&gt;dkulp@apache.org
&lt;br&gt;&lt;a href=&quot;http://www.dankulp.com/blog&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dankulp.com/blog&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
&lt;br&gt;For additional commands, e-mail: wss4j-dev-help@ws.apache.org
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-WS-Security-RSA-Excrytion-exception..-tp23974303p26800579.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26747938</id>
	<title>Issue while using multiple webservices with WSS4J</title>
	<published>2009-12-11T09:03:34Z</published>
	<updated>2009-12-11T09:03:34Z</updated>
	<author>
		<name>Amol Amol</name>
	</author>
	<content type="html">Hi All,


We have client of two webservices A and B. 

Stand alone both the clients work fine.

But if we hit webservice B first and then webservice A we get a handshake_exception. Invoking webservice B after webservice A works fine and after this as well webservice B continues to work.

The different thing which we have done in webservice B is that we have used WSS4J based authentication.

We have the following entry in client-config.wsdd
&lt;globalConfiguration&gt;
		&lt;requestFlow&gt;
			&lt;handler type=&quot;java:org.apache.ws.axis.security.WSDoAllSender&quot;&gt;
				&lt;parameter name=&quot;action&quot; value=&quot;UsernameToken&quot; /&gt;
				&lt;parameter name=&quot;user&quot; value=&quot;XXXXX&quot; /&gt;
				&lt;parameter name=&quot;passwordType&quot; value=&quot;PasswordText&quot; /&gt;
				&lt;parameter name=&quot;passwordCallbackClass&quot; value=&quot;com.xxx.xxx.thirdpartyintegration.addressWS.Configuration.PWCallBack&quot; /&gt;
				&lt;parameter name=&quot;mustUnderstand&quot; value=&quot;false&quot; /&gt;
			&lt;/handler&gt;
		&lt;/requestFlow&gt;
&lt;/globalConfiguration&gt;


Now what we have investigated is that when we comment the call to client-config.wsdd the authentication from webservice B fails both webservice A works fine.

We tried use service level handler but the handler never gets invoked. The configuration we tried was 

&lt;service name=&quot;ViewPostalAddress_1_0&quot;&gt;
	  &lt;requestFlow&gt;
			&lt;handler type=&quot;java:org.apache.ws.axis.security.WSDoAllSender&quot;&gt;
				&lt;parameter name=&quot;action&quot; value=&quot;UsernameToken&quot; /&gt;
				&lt;parameter name=&quot;user&quot; value=&quot;XYZ&quot; /&gt;
				&lt;parameter name=&quot;passwordType&quot; value=&quot;PasswordText&quot; /&gt;
				&lt;parameter name=&quot;passwordCallbackClass&quot; value=&quot;com.xxx.xxx.thirdpartyintegration.addressWS.Configuration.PWCallBack&quot; /&gt;
				&lt;parameter name=&quot;mustUnderstand&quot; value=&quot;false&quot; /&gt;
			&lt;/handler&gt;
	  &lt;/requestFlow&gt;
  &lt;/service&gt;


Please let us know if any one has faced a similar issue before or point us to what is the problem in client-config.wsdd for the service level configuration.

We have also tried and compaired SSL logs and verified that the session never gets overridden by other.


Thanks and Regards, 
Amol</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Issue-while-using-multiple-webservices-with-WSS4J-tp26747938p26747938.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26685297</id>
	<title>RE: Wss4j working with WebSphere?</title>
	<published>2009-12-07T14:21:08Z</published>
	<updated>2009-12-07T14:21:08Z</updated>
	<author>
		<name>Yang, Gang CTR USA</name>
	</author>
	<content type="html">Hi, Colm,
&lt;br&gt;&lt;br&gt;I've just found some time in between my works to look into the failed
&lt;br&gt;tests. They seems to be all related to the cases of signing the security
&lt;br&gt;token using STR-Transform. Because in this case the Reference refers to
&lt;br&gt;the security token indirectly via the &amp;lt;SecurityTokenReference&amp;gt; inside
&lt;br&gt;the &amp;lt;Signature&amp;gt; and my change delayed the creation of the &amp;lt;Signature&amp;gt;
&lt;br&gt;element until the very end, the resolver failed to find the referred
&lt;br&gt;element in the original SOAP message.
&lt;br&gt;&lt;br&gt;At this point, I don't have a generic solution, but a workaround that
&lt;br&gt;works on most cases but signing the security token. I think the root
&lt;br&gt;cause is still that wss4j (more accurately xml-sec) used a set of DOM
&lt;br&gt;objects to refer and change the &amp;lt;SignatureValue&amp;gt; and &amp;lt;DigestValue&amp;gt;, but
&lt;br&gt;IBM WAS changed the DOM objects dynamically.
&lt;br&gt;&lt;br&gt;Should I create an issue in JIRA?
&lt;br&gt;&lt;br&gt;Gang
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Colm O hEigeartaigh [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;coheigea@...&lt;/a&gt;] 
&lt;br&gt;Sent: Tuesday, November 24, 2009 12:01 PM
&lt;br&gt;To: Yang, Gang CTR USA; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Eclipse. I normally run tests from the command line, e.g. &amp;quot;mvn clean
&lt;br&gt;install&amp;quot; or &amp;quot;mvn test&amp;quot;.
&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Yang, Gang CTR USA [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gang.yang@...&lt;/a&gt;]
&lt;br&gt;Sent: 24 November 2009 16:02
&lt;br&gt;To: Colm O hEigeartaigh; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;Hi, Colm,
&lt;br&gt;&lt;br&gt;What's your dev env? I checked out 1_5_x-fixes branch into MyEclipse 7.5
&lt;br&gt;and MyEclipse hung at &amp;quot;Initinalizging Java Tools&amp;quot; each time I restart
&lt;br&gt;MyEclipse.
&lt;br&gt;&lt;br&gt;Gang
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Colm O hEigeartaigh [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;coheigea@...&lt;/a&gt;]
&lt;br&gt;Sent: Tuesday, November 24, 2009 6:33 AM
&lt;br&gt;To: Yang, Gang CTR USA; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi Gang,
&lt;br&gt;&lt;br&gt;If I apply your fix it breaks 5 tests, one in TestWSSecurityNew3 and 4
&lt;br&gt;in TestWSSecurityNew11. Can you take a look at these tests in
&lt;br&gt;branches/1_5_x-fixes after applying your fix?
&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Yang, Gang CTR USA [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gang.yang@...&lt;/a&gt;]
&lt;br&gt;Sent: 18 November 2009 22:30
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;After some debugging, I think I found why wss4j isn't working with WAS
&lt;br&gt;properly. The problem is caused by the way WAS's SOAP/DOM implements
&lt;br&gt;Node.appendChild() and Node.insertBefore() and the timing wss4j inserts
&lt;br&gt;the &amp;lt;Signature&amp;gt; element into the header. WAS's element insertion
&lt;br&gt;implementation puts the appended/inserted child in a temp area
&lt;br&gt;(altContent) and used the API to hide that. When the child element is
&lt;br&gt;actually accessed, it would put the child and its sub-tree into the
&lt;br&gt;normal place by &amp;quot;copying&amp;quot;, which causes &amp;quot;new&amp;quot; node objects to be
&lt;br&gt;generated. Back to wss4j, WSSecSignature.build() calls &amp;quot;prependToHeader&amp;quot;
&lt;br&gt;to insert &amp;lt;Signature&amp;gt; element into the header (and doc) early and then
&lt;br&gt;was trying to do the signing. During the signing process, it actually
&lt;br&gt;accesses the &amp;lt;Signature&amp;gt; element causing WAS to copy and regenerate.
&lt;br&gt;This would cause the object references to the &amp;lt;DigestValue&amp;gt; and
&lt;br&gt;&amp;lt;SignatureValue&amp;gt; in sig (XMLSignaure) member to stale. Therefore the
&lt;br&gt;inserted &amp;lt;DigestValue&amp;gt; values and &amp;lt;SignatureValue&amp;gt; value are not
&lt;br&gt;actually inserted into the final SOAP document.
&lt;br&gt;&lt;br&gt;I modified the code to call prependToHeader() at last after the
&lt;br&gt;computeSignature() call. This seems to have worked fine with WAS now.
&lt;br&gt;However, since I'm not an expert in wss4j and would like some one, Cole
&lt;br&gt;maybe?, to bless the change and pull that into the codebase if that's
&lt;br&gt;fine.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Gang
&lt;br&gt;PS: The modified WSSecSignature.build() code:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public Document build(Document doc, Crypto cr, WSSecHeader
&lt;br&gt;secHeader)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throws WSSecurityException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; doDebug = log.isDebugEnabled();
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (doDebug) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log.debug(&amp;quot;Beginning signing...&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prepare(doc, cr, secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SOAPConstants soapConstants =
&lt;br&gt;WSSecurityUtil.getSOAPConstants(doc.getDocumentElement());
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (parts == null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parts = new Vector();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WSEncryptionPart encP = 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new WSEncryptionPart(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; soapConstants.getBodyQName().getLocalPart(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; soapConstants.getEnvelopeURI(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Content&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parts.add(encP);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; addReferencesToSign(parts, secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // put at the end instead:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // prependToHeader(secHeader);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // if we have a BST prepend it in front of the Signature
&lt;br&gt;according to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // strict layout rules.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (bstToken != null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prependBSTElementToHeader(secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; computeSignature();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prependToHeader(secHeader);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return doc;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Yang, Gang CTR USA [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gang.yang@...&lt;/a&gt;]
&lt;br&gt;Sent: Tuesday, November 17, 2009 9:31 AM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;Has any one used wss4j with WebSphere successfully? I'm using wss4j
&lt;br&gt;1.5.8 with WAS 7.0 unsuccessfully. I'm using wss4j to build the SOAP
&lt;br&gt;security headers and signature using JAX-WS handlers. After the
&lt;br&gt;WSSSingnature.build() call without any error, the security headers were
&lt;br&gt;added to the SOAP message without the digest values and signature value.
&lt;br&gt;Has any one experienced similar behavior and has any insight?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Gang
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685297&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Wss4j-working-with-WebSphere--tp26390957p26685297.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26640106</id>
	<title>Antwort: RE: Question about x509 certificates</title>
	<published>2009-12-04T01:47:52Z</published>
	<updated>2009-12-04T01:47:52Z</updated>
	<author>
		<name>Oliver Wulff</name>
	</author>
	<content type="html">&lt;br&gt;&amp;lt;img
&lt;br&gt;src=&amp;quot;&lt;a href=&quot;http://zdownload.zurich.com/mailimages/ZHP_MailHeader.gif&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://zdownload.zurich.com/mailimages/ZHP_MailHeader.gif&lt;/a&gt;&amp;quot; /&amp;gt;
&lt;br&gt;Hi all
&lt;br&gt;&lt;br&gt;Another option might be XKMS or WS-Trust instead of a &amp;quot;proprietary&amp;quot;
&lt;br&gt;protocol like LDAP (from a web services point of view).
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Oliver
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;Dittmann, Werner &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(NSN - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DE/Munich)&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;An 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;werner.dittmann@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;ext Cole Ferrier&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nsn.com&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640106&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cole@...&lt;/a&gt;&amp;gt;, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640106&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;04.12.2009 10:43 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Kopie 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thema 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RE: Question about x509 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; certificates &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Cole,
&lt;br&gt;&lt;br&gt;the advise given by Daniel is correct. The Merlin implementation uses a
&lt;br&gt;local
&lt;br&gt;keystore based on JKS. Because you mention LDAP in your mail: IIRC someone
&lt;br&gt;already implemented LDAP access to get certificates. I don't know who it
&lt;br&gt;was but maybe you can ask here or try google :-) .
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;&amp;nbsp;From: ext Cole Ferrier [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640106&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cole@...&lt;/a&gt;]
&lt;br&gt;&amp;nbsp;Sent: Thursday, December 03, 2009 11:22 PM
&lt;br&gt;&amp;nbsp;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640106&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp;Subject: Fwd: Question about x509 certificates
&lt;br&gt;&lt;br&gt;&amp;nbsp;I was referred to this list, from Daniel Kulp from the CXF list.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Here is what i'm trying to do:
&lt;br&gt;&lt;br&gt;&amp;nbsp;I want to be able to accept an signed (not encrypted) message without
&lt;br&gt;&amp;nbsp;having the public key in my keystore prior to someone calling me. I have a
&lt;br&gt;&amp;nbsp;service available that i can go and get all the public keys &amp;nbsp;for anyone,
&lt;br&gt;&amp;nbsp;but i want to do that on demand, so that i don't have to maintain a local
&lt;br&gt;&amp;nbsp;key store. How could one go about doing this?
&lt;br&gt;&lt;br&gt;&amp;nbsp;I wouldn't mind using a local key store to cache copies of the public key
&lt;br&gt;&amp;nbsp;once i looked them up once, but i don't want to have to have the key prior
&lt;br&gt;&amp;nbsp;to them calling me.
&lt;br&gt;&lt;br&gt;&amp;nbsp;(Also I have a certificate revocation list, that i want to validate
&lt;br&gt;&amp;nbsp;against, which i could do at this point or later in the process).
&lt;br&gt;&lt;br&gt;&amp;nbsp; He stated that i should look at implementing a
&lt;br&gt;&lt;br&gt;&amp;nbsp;org.apache.ws.security.components.crypto.Crypto
&lt;br&gt;&lt;br&gt;&amp;nbsp;Do you have any suggestions on where i should start?
&lt;br&gt;&lt;br&gt;&amp;nbsp;Or is this not the right approach?
&lt;br&gt;&lt;br&gt;&amp;nbsp;My use case is that we have a central group that manages x509 certs and
&lt;br&gt;&amp;nbsp;&amp;quot;flags&amp;quot; for applications for authorization purposes.
&lt;br&gt;&amp;nbsp;So i was going to use the x509 signature for authentication, then lookup
&lt;br&gt;&amp;nbsp;in ldap the flags on their account for authorization. (the authorization i
&lt;br&gt;&amp;nbsp;was going to do later in a CXF interceptor)
&lt;br&gt;&lt;br&gt;&amp;nbsp;Thanks in advance,
&lt;br&gt;&lt;br&gt;&amp;nbsp;Cole
&lt;br&gt;&lt;br&gt;&amp;nbsp;---------- Forwarded message ----------
&lt;br&gt;&amp;nbsp;From: Daniel Kulp &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640106&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dkulp@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp;Date: Thu, Dec 3, 2009 at 12:09 PM
&lt;br&gt;&amp;nbsp;Subject: Re: Question about x509 certificates
&lt;br&gt;&amp;nbsp;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640106&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp;Cc: Cole Ferrier &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640106&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cole@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;On Wed December 2 2009 6:36:11 pm Cole Ferrier wrote:
&lt;br&gt;&amp;nbsp;&amp;gt; I've done some basic testing and setup with x509 certificates, but i
&lt;br&gt;&amp;nbsp;have a
&lt;br&gt;&amp;nbsp;&amp;gt; few requirements that i'm trying to figure out how i could implement.
&lt;br&gt;&amp;nbsp;&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;gt; 1) I want to be able to accept an signed (not encrypted) message without
&lt;br&gt;&amp;nbsp;&amp;gt; having the public key in my keystore prior to someone calling me.
&lt;br&gt;&amp;nbsp;&amp;gt; I have a service available that i can go and get all the public keys
&lt;br&gt;&amp;nbsp;for
&lt;br&gt;&amp;nbsp;&amp;gt; anyone, but i want to do that on demand, so that i don't have to
&lt;br&gt;&amp;nbsp;maintain a
&lt;br&gt;&amp;nbsp;&amp;gt; local key store. How could one go about doing this?
&lt;br&gt;&lt;br&gt;&amp;nbsp;This PROBABLY should be redirected to the WSS4J list. &amp;nbsp; I THINK the only
&lt;br&gt;&amp;nbsp;way
&lt;br&gt;&amp;nbsp;to do this would be to write your own
&lt;br&gt;&amp;nbsp;org.apache.ws.security.components.crypto.Crypto
&lt;br&gt;&lt;br&gt;&amp;nbsp;object that implements all the needed methods. &amp;nbsp; That's the class that
&lt;br&gt;&amp;nbsp;WSS4J
&lt;br&gt;&amp;nbsp;uses to handle all the key manipulation and such. &amp;nbsp; You would set your
&lt;br&gt;&amp;nbsp;classname in the properties file instead of the Merlin version.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt; 2) Then of course i need to check a revocation list, so i'm assuming i
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp;could just use an interceptor to go and check that? or??
&lt;br&gt;&lt;br&gt;&amp;nbsp;An interceptor could work here. &amp;nbsp; Alternatively, the Crypto object you
&lt;br&gt;&amp;nbsp;create
&lt;br&gt;&amp;nbsp;above could just throw an exception if a revoked cert is asked for.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt; 3) then the question comes to authorization, (since i've already done
&lt;br&gt;&amp;nbsp;the
&lt;br&gt;&amp;nbsp;&amp;gt; above to validate that i know who they are.. ) Should this be done in a
&lt;br&gt;&amp;nbsp;&amp;gt; separate interceptor? I am talking i want to authorize at the per
&lt;br&gt;&amp;nbsp;service
&lt;br&gt;&amp;nbsp;&amp;gt; layer or operation, not at the whole application..
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp;How early should i try to do this.. i think i was able to get what the
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp;user is doing on what interface
&lt;br&gt;&amp;nbsp;&amp;gt; message.get(Message.WSDL_OPERATION)
&lt;br&gt;&amp;nbsp;&amp;gt; message.get(Message.WSDL_INTERFACE)
&lt;br&gt;&amp;nbsp;&amp;gt; and who the user is:
&lt;br&gt;&amp;nbsp;&amp;gt; //ignore the ugly code
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vector v = (Vector) message.get
&lt;br&gt;&amp;nbsp;(WSHandlerConstants.RECV_RESULTS);
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WSSecurityEngineResult r = (WSSecurityEngineResult)
&lt;br&gt;&amp;nbsp;&amp;gt; ((WSHandlerResult) v.get(0)).getResults().get(0);
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WSUsernameTokenPrincipal p = (WSUsernameTokenPrincipal)
&lt;br&gt;&amp;nbsp;&amp;gt; r.get(WSSecurityEngineResult.TAG_PRINCIPAL);
&lt;br&gt;&amp;nbsp;&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;gt; then i could take the user and what they are doing and validate that
&lt;br&gt;&amp;nbsp;they
&lt;br&gt;&amp;nbsp;&amp;gt; are authorized for that operation.
&lt;br&gt;&amp;nbsp;&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;gt; Right now i tried this at the Phase.USER_LOGICAL and it seems to work,
&lt;br&gt;&amp;nbsp;is
&lt;br&gt;&amp;nbsp;&amp;gt; this the right place for that?
&lt;br&gt;&lt;br&gt;&amp;nbsp;Yep. &amp;nbsp; You can simplify a bit by doing:
&lt;br&gt;&lt;br&gt;&amp;nbsp;SecurityContext sc = msg.get(SecurityContext.class);
&lt;br&gt;&amp;nbsp;Principal p = sc.getUserPrincipal();
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt; If anyone has had to do anything like this and has sample code, i'd
&lt;br&gt;&amp;nbsp;&amp;gt; appreciate it.
&lt;br&gt;&amp;nbsp;&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;gt; Cole
&lt;br&gt;&amp;nbsp;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;--
&lt;br&gt;&amp;nbsp;Daniel Kulp
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640106&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dkulp@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.dankulp.com/blog&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dankulp.com/blog&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;******************* BITTE BEACHTEN *******************
&lt;br&gt;&amp;nbsp;Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
&lt;br&gt;&amp;nbsp;möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
&lt;br&gt;&amp;nbsp;Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
&lt;br&gt;&amp;nbsp;genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
&lt;br&gt;&amp;nbsp;irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
&lt;br&gt;&amp;nbsp;Ausschluss jeder Reproduktion zu zerstören und die absendende Person
&lt;br&gt;&amp;nbsp;umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640106&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640106&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fwd%3A-Question-about-x509-certificates-tp26634312p26640106.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26640039</id>
	<title>RE: Question about x509 certificates</title>
	<published>2009-12-04T01:43:21Z</published>
	<updated>2009-12-04T01:43:21Z</updated>
	<author>
		<name>Dittmann, Werner (NSN - DE/Munich)</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.3627&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=981353709-04122009&gt;&lt;FONT face=Calibri color=#0000ff&gt;Cole,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=981353709-04122009&gt;&lt;FONT face=Calibri color=#0000ff&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=981353709-04122009&gt;&lt;FONT face=Calibri color=#0000ff&gt;the advise given by Daniel is correct. The Merlin implementation 
uses a local&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=981353709-04122009&gt;&lt;FONT face=Calibri color=#0000ff&gt;keystore based on JKS. Because you mention LDAP in your mail: IIRC 
someone&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=981353709-04122009&gt;&lt;FONT face=Calibri color=#0000ff&gt;already implemented LDAP access to get certificates. I don't know 
who it&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=981353709-04122009&gt;&lt;FONT face=Calibri color=#0000ff&gt;was but maybe you can ask here or try google :-) 
.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=981353709-04122009&gt;&lt;FONT face=Calibri color=#0000ff&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=981353709-04122009&gt;&lt;FONT face=Calibri color=#0000ff&gt;Regards,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=981353709-04122009&gt;&lt;FONT face=Calibri color=#0000ff&gt;Werner&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV class=OutlookMessageHeader lang=de dir=ltr align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; ext Cole Ferrier 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640039&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cole@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; Thursday, December 03, 2009 
  11:22 PM&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640039&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Fwd: 
  Question about x509 certificates&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;I was referred to this list, from Daniel Kulp from the CXF 
  list.&lt;BR&gt;&lt;BR&gt;Here is what i'm trying to do:&lt;BR&gt;&lt;BR&gt;I want to be able to accept 
  an signed (not encrypted) message without having the public key in my keystore 
  prior to someone calling me. I have a service available that i can go and get 
  all the public keys &amp;nbsp;for anyone, but i want to do that on demand, so that 
  i don't have to maintain a local key store. How could one go about doing 
  this?&lt;BR&gt;&lt;BR&gt;I wouldn't mind using a local key store to cache copies of the 
  public key once i looked them up once, but i don't want to have to have the 
  key prior to them calling me.&lt;BR&gt;&lt;BR&gt;(Also I have a certificate revocation 
  list, that i want to validate against, which i could do at this point or later 
  in the process).&lt;BR&gt;&lt;BR&gt;&amp;nbsp;He stated that i should look at implementing a 
  &lt;BR&gt;&lt;BR&gt;org.apache.ws.security.components.crypto.Crypto&lt;BR&gt;&lt;BR&gt;Do you have any 
  suggestions on where i should start?&lt;BR&gt;
  &lt;DIV class=gmail_quote&gt;&lt;BR&gt;&lt;/DIV&gt;Or is this not the right approach?&lt;BR&gt;&lt;BR&gt;My 
  use case is that we have a central group that manages x509 certs and &quot;flags&quot; 
  for applications for authorization purposes. &lt;BR&gt;So i was going to use the 
  x509 signature for authentication, then lookup in ldap the flags on their 
  account for authorization. (the authorization i was going to do later in a CXF 
  interceptor)&lt;BR&gt;&lt;BR&gt;Thanks in advance,&lt;BR&gt;&lt;BR&gt;Cole&lt;BR&gt;&lt;BR&gt;
  &lt;DIV class=gmail_quote&gt;---------- Forwarded message ----------&lt;BR&gt;From: &lt;B class=gmail_sendername&gt;Daniel Kulp&lt;/B&gt; &lt;SPAN dir=ltr&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640039&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dkulp@...&lt;/a&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR&gt;Date: Thu, 
  Dec 3, 2009 at 12:09 PM&lt;BR&gt;Subject: Re: Question about x509 
  certificates&lt;BR&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640039&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;&lt;BR&gt;Cc: Cole 
  Ferrier &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640039&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cole@...&lt;/a&gt;&amp;gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;
  &lt;DIV class=im&gt;On Wed December 2 2009 6:36:11 pm Cole Ferrier wrote:&lt;BR&gt;&amp;gt; 
  I've done some basic testing and setup with x509 certificates, but i have 
  a&lt;BR&gt;&amp;gt; few requirements that i'm trying to figure out how i could 
  implement.&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt; 1) I want to be able to accept an signed (not 
  encrypted) message without&lt;BR&gt;&amp;gt; having the public key in my keystore prior 
  to someone calling me.&lt;BR&gt;&amp;gt; I have a service available that i can go and 
  get all the public keys &amp;nbsp;for&lt;BR&gt;&amp;gt; anyone, but i want to do that on 
  demand, so that i don't have to maintain a&lt;BR&gt;&amp;gt; local key store. How could 
  one go about doing this?&lt;BR&gt;&lt;BR&gt;&lt;/DIV&gt;This PROBABLY should be redirected to 
  the WSS4J list. &amp;nbsp; I THINK the only way&lt;BR&gt;to do this would be to write 
  your own&lt;BR&gt;org.apache.ws.security.components.crypto.Crypto&lt;BR&gt;&lt;BR&gt;object that 
  implements all the needed methods. &amp;nbsp; That's the class that WSS4J&lt;BR&gt;uses 
  to handle all the key manipulation and such. &amp;nbsp; You would set 
  your&lt;BR&gt;classname in the properties file instead of the Merlin version.&lt;BR&gt;
  &lt;DIV class=im&gt;&lt;BR&gt;&lt;BR&gt;&amp;gt; 2) Then of course i need to check a revocation 
  list, so i'm assuming i&lt;BR&gt;&amp;gt; &amp;nbsp;could just use an interceptor to go and 
  check that? or??&lt;BR&gt;&lt;BR&gt;&lt;/DIV&gt;An interceptor could work here. &amp;nbsp; 
  Alternatively, the Crypto object you create&lt;BR&gt;above could just throw an 
  exception if a revoked cert is asked for.&lt;BR&gt;
  &lt;DIV class=im&gt;&lt;BR&gt;&lt;div class='shrinkable-quote'&gt;&lt;BR&gt;&amp;gt; 3) then the question comes to authorization, (since 
  i've already done the&lt;BR&gt;&amp;gt; above to validate that i know who they are.. ) 
  Should this be done in a&lt;BR&gt;&amp;gt; separate interceptor? I am talking i want to 
  authorize at the per service&lt;BR&gt;&amp;gt; layer or operation, not at the whole 
  application..&lt;BR&gt;&amp;gt; &amp;nbsp;How early should i try to do this.. i think i was 
  able to get what the&lt;BR&gt;&amp;gt; &amp;nbsp;user is doing on what interface&lt;BR&gt;&amp;gt; 
  message.get(Message.WSDL_OPERATION)&lt;BR&gt;&amp;gt; 
  message.get(Message.WSDL_INTERFACE)&lt;BR&gt;&amp;gt; and who the user is:&lt;BR&gt;&amp;gt; 
  //ignore the ugly code&lt;BR&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vector v = (Vector) 
  message.get(WSHandlerConstants.RECV_RESULTS);&lt;BR&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
  &amp;nbsp; WSSecurityEngineResult r = (WSSecurityEngineResult)&lt;BR&gt;&amp;gt; 
  ((WSHandlerResult) v.get(0)).getResults().get(0);&lt;BR&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
  &amp;nbsp; WSUsernameTokenPrincipal p = (WSUsernameTokenPrincipal)&lt;BR&gt;&amp;gt; 
  r.get(WSSecurityEngineResult.TAG_PRINCIPAL);&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt; then i could take 
  the user and what they are doing and validate that they&lt;BR&gt;&amp;gt; are authorized 
  for that operation.&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt; Right now i tried this at the 
  Phase.USER_LOGICAL and it seems to work, is&lt;BR&gt;&amp;gt; this the right place for 
  that?&lt;/div&gt;&lt;BR&gt;&lt;/DIV&gt;Yep. &amp;nbsp; You can simplify a bit by 
  doing:&lt;BR&gt;&lt;BR&gt;SecurityContext sc = 
  msg.get(SecurityContext.class);&lt;BR&gt;Principal p = sc.getUserPrincipal();&lt;BR&gt;
  &lt;DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;
  &lt;DIV class=h5&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&amp;gt; If anyone has had to do anything like this and 
  has sample code, i'd&lt;BR&gt;&amp;gt; appreciate it.&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt; 
  Cole&lt;BR&gt;&amp;gt;&lt;BR&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;FONT color=#888888&gt;--&lt;BR&gt;Daniel Kulp&lt;BR&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640039&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dkulp@...&lt;/a&gt;&lt;BR&gt;&lt;A href=&quot;http://www.dankulp.com/blog&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://www.dankulp.com/blog&lt;/A&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fwd%3A-Question-about-x509-certificates-tp26634312p26640039.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26635360</id>
	<title>[jira] Commented: (WSS-203) Move trunk to use JSR-105 APIs instead of custom XML-Security APIs  for XML digital signature functionality.</title>
	<published>2009-12-03T15:48:20Z</published>
	<updated>2009-12-03T15:48:20Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12785647#action_12785647&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12785647#action_12785647&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Mike Youngstrom commented on WSS-203:
&lt;br&gt;-------------------------------------
&lt;br&gt;&lt;br&gt;With this issue fixed is the xmlsec dependency now optional for those on Java 6?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Move trunk to use JSR-105 APIs instead of custom XML-Security APIs &amp;nbsp;for XML digital signature functionality.
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: WSS-203
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-203&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-203&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: WSS4J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: WSS4J Core
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 1.5.7
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Colm O hEigeartaigh
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Colm O hEigeartaigh
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 1.6
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Move trunk to use JSR-105 APIs instead of custom XML-Security APIs for XML digital signature functionality.
&lt;br&gt;&amp;gt; Colm.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26635360&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26635360&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28WSS-203%29-Move-trunk-to-use-JSR-105-APIs-instead-of-custom-XML-Security-APIs--for-XML-digital-signature-functionality.-tp24570297p26635360.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26634312</id>
	<title>Fwd: Question about x509 certificates</title>
	<published>2009-12-03T14:21:32Z</published>
	<updated>2009-12-03T14:21:32Z</updated>
	<author>
		<name>Cole Ferrier</name>
	</author>
	<content type="html">I was referred to this list, from Daniel Kulp from the CXF list.&lt;br&gt;&lt;br&gt;Here is what i&amp;#39;m trying to do:&lt;br&gt;&lt;br&gt; I want to be able to accept an signed (not encrypted) message without having the public key in my keystore prior to someone calling me. I have a service available that i can go and get all the public keys  for anyone, but i want to do that on demand, so that i don&amp;#39;t have to maintain a local key store. How could one go about doing this?&lt;br&gt;
&lt;br&gt;I wouldn&amp;#39;t mind using a local key store to cache copies of the public key once i looked them up once, but i don&amp;#39;t want to have to have the key prior to them calling me.&lt;br&gt;&lt;br&gt;(Also I have a certificate revocation list, that i want to validate against, which i could do at this point or later in the process).&lt;br&gt;
&lt;br&gt; He stated that i should look at implementing a &lt;br&gt;&lt;br&gt;org.apache.ws.security.components.crypto.Crypto&lt;br&gt;&lt;br&gt;Do you have any suggestions on where i should start?&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;br&gt;&lt;/div&gt;Or is this not the right approach?&lt;br&gt;
&lt;br&gt;My use case is that we have a central group that manages x509 certs and &amp;quot;flags&amp;quot; for applications for authorization purposes. &lt;br&gt;So i was going to use the x509 signature for authentication, then lookup in ldap the flags on their account for authorization. (the authorization i was going to do later in a CXF interceptor)&lt;br&gt;
&lt;br&gt;Thanks in advance,&lt;br&gt;&lt;br&gt;Cole&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;---------- Forwarded message ----------&lt;br&gt;From: &lt;b class=&quot;gmail_sendername&quot;&gt;Daniel Kulp&lt;/b&gt; &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26634312&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dkulp@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
Date: Thu, Dec 3, 2009 at 12:09 PM&lt;br&gt;Subject: Re: Question about x509 certificates&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26634312&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;&lt;br&gt;Cc: Cole Ferrier &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26634312&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cole@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;im&quot;&gt;On Wed December 2 2009 6:36:11 pm Cole Ferrier wrote:&lt;br&gt;
&amp;gt; I&amp;#39;ve done some basic testing and setup with x509 certificates, but i have a&lt;br&gt;
&amp;gt; few requirements that i&amp;#39;m trying to figure out how i could implement.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 1) I want to be able to accept an signed (not encrypted) message without&lt;br&gt;
&amp;gt; having the public key in my keystore prior to someone calling me.&lt;br&gt;
&amp;gt; I have a service available that i can go and get all the public keys  for&lt;br&gt;
&amp;gt; anyone, but i want to do that on demand, so that i don&amp;#39;t have to maintain a&lt;br&gt;
&amp;gt; local key store. How could one go about doing this?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;This PROBABLY should be redirected to the WSS4J list.   I THINK the only way&lt;br&gt;
to do this would be to write your own&lt;br&gt;
org.apache.ws.security.components.crypto.Crypto&lt;br&gt;
&lt;br&gt;
object that implements all the needed methods.   That&amp;#39;s the class that WSS4J&lt;br&gt;
uses to handle all the key manipulation and such.   You would set your&lt;br&gt;
classname in the properties file instead of the Merlin version.&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;br&gt;
&amp;gt; 2) Then of course i need to check a revocation list, so i&amp;#39;m assuming i&lt;br&gt;
&amp;gt;  could just use an interceptor to go and check that? or??&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;An interceptor could work here.   Alternatively, the Crypto object you create&lt;br&gt;
above could just throw an exception if a revoked cert is asked for.&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;br&gt;
&amp;gt; 3) then the question comes to authorization, (since i&amp;#39;ve already done the&lt;br&gt;
&amp;gt; above to validate that i know who they are.. ) Should this be done in a&lt;br&gt;
&amp;gt; separate interceptor? I am talking i want to authorize at the per service&lt;br&gt;
&amp;gt; layer or operation, not at the whole application..&lt;br&gt;
&amp;gt;  How early should i try to do this.. i think i was able to get what the&lt;br&gt;
&amp;gt;  user is doing on what interface&lt;br&gt;
&amp;gt; message.get(Message.WSDL_OPERATION)&lt;br&gt;
&amp;gt; message.get(Message.WSDL_INTERFACE)&lt;br&gt;
&amp;gt; and who the user is:&lt;br&gt;
&amp;gt; //ignore the ugly code&lt;br&gt;
&amp;gt;         Vector v = (Vector) message.get(WSHandlerConstants.RECV_RESULTS);&lt;br&gt;
&amp;gt;         WSSecurityEngineResult r = (WSSecurityEngineResult)&lt;br&gt;
&amp;gt; ((WSHandlerResult) v.get(0)).getResults().get(0);&lt;br&gt;
&amp;gt;         WSUsernameTokenPrincipal p = (WSUsernameTokenPrincipal)&lt;br&gt;
&amp;gt; r.get(WSSecurityEngineResult.TAG_PRINCIPAL);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; then i could take the user and what they are doing and validate that they&lt;br&gt;
&amp;gt; are authorized for that operation.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Right now i tried this at the Phase.USER_LOGICAL and it seems to work, is&lt;br&gt;
&amp;gt; this the right place for that?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Yep.   You can simplify a bit by doing:&lt;br&gt;
&lt;br&gt;
SecurityContext sc = msg.get(SecurityContext.class);&lt;br&gt;
Principal p = sc.getUserPrincipal();&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; If anyone has had to do anything like this and has sample code, i&amp;#39;d&lt;br&gt;
&amp;gt; appreciate it.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Cole&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
Daniel Kulp&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26634312&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dkulp@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.dankulp.com/blog&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.dankulp.com/blog&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fwd%3A-Question-about-x509-certificates-tp26634312p26634312.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26610442</id>
	<title>how to have usernmae token authentication and SecureConversation using rampart</title>
	<published>2009-12-02T07:09:10Z</published>
	<updated>2009-12-02T07:09:10Z</updated>
	<author>
		<name>soni swapna</name>
	</author>
	<content type="html">Hi Team,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I have a requirement to engage rampart for username token authentication and sending and receiving signed and encrypt messages. But for authentication i have to pass the username and password from client program, instead of harding coding in policy.xml at client side. Could anyone please tell me how can i do this.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Swapna Soni.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-have-usernmae-token-authentication-and-SecureConversation-using-rampart-tp26610442p26610442.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26593162</id>
	<title>RE: keyStore.isKeyEntry() returning false</title>
	<published>2009-12-01T06:55:09Z</published>
	<updated>2009-12-01T06:55:09Z</updated>
	<author>
		<name>Dittmann, Werner (NSN - DE/Munich)</name>
	</author>
	<content type="html">That's quite simple: the disPartner.jks does not contain a key
&lt;br&gt;with that alias, only a certificate. The key in disPartner.jks
&lt;br&gt;is named &amp;quot;dispartner&amp;quot;.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Werner
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: ext NewToGit [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593162&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;omarnetbox@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: Monday, November 30, 2009 1:54 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593162&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: keyStore.isKeyEntry() returning false
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm creating my KeyStore (disPartner.jks) as shown below but the
&lt;br&gt;&amp;gt; isKeyEntry(&amp;quot;dispubcer&amp;quot;) method is returning false can someone 
&lt;br&gt;&amp;gt; tell me why
&lt;br&gt;&amp;gt; please.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But when I retrieve the certificate using 
&lt;br&gt;&amp;gt; getCertiticate(&amp;quot;dispubcer&amp;quot;) it
&lt;br&gt;&amp;gt; finds it no problem.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; %-| please help me. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; echo 'Create dis store ... '
&lt;br&gt;&amp;gt; $JAVA_HOME/bin/keytool -genkeypair -alias dis -keystore 
&lt;br&gt;&amp;gt; disStore.jks -dname
&lt;br&gt;&amp;gt; &amp;quot;cn=dis&amp;quot; -keypass dispass -storepass dispass -keyalg rsa
&lt;br&gt;&amp;gt; echo 'Self-sign dis ... '
&lt;br&gt;&amp;gt; $JAVA_HOME/bin/keytool -selfcert -alias dis -keystore 
&lt;br&gt;&amp;gt; disStore.jks -keypass
&lt;br&gt;&amp;gt; dispass -storepass dispass
&lt;br&gt;&amp;gt; echo 'Export dis public key...'
&lt;br&gt;&amp;gt; $JAVA_HOME/bin/keytool -export -keystore disStore.jks -alias 
&lt;br&gt;&amp;gt; dis -storepass
&lt;br&gt;&amp;gt; dispass -file dispub.cer
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; echo 'Create disPartner store ... '
&lt;br&gt;&amp;gt; $JAVA_HOME/bin/keytool -genkeypair -alias dispartner -keystore
&lt;br&gt;&amp;gt; disPartner.jks -dname &amp;quot;cn=dispartner&amp;quot; -keypass disPartnerpass 
&lt;br&gt;&amp;gt; -storepass
&lt;br&gt;&amp;gt; disPartnerpass -keyalg rsa
&lt;br&gt;&amp;gt; echo 'Self-sign disPartner ... '
&lt;br&gt;&amp;gt; $JAVA_HOME/bin/keytool -selfcert -alias dispartner -keystore 
&lt;br&gt;&amp;gt; disPartner.jks
&lt;br&gt;&amp;gt; -keypass disPartnerpass -storepass disPartnerpass
&lt;br&gt;&amp;gt; echo 'Export disPartner public key...'
&lt;br&gt;&amp;gt; $JAVA_HOME/bin/keytool -export -keystore disPartner.jks 
&lt;br&gt;&amp;gt; -alias dispartner
&lt;br&gt;&amp;gt; -storepass disPartnerpass -file disPartnerpub.cer
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; echo 'Import dispub.cer-&amp;gt;disPartner.jks... '
&lt;br&gt;&amp;gt; $JAVA_HOME/bin/keytool -import -alias dispubcer -file 
&lt;br&gt;&amp;gt; dispub.cer -keystore
&lt;br&gt;&amp;gt; disPartner.jks -storepass disPartnerpass
&lt;br&gt;&amp;gt; echo 'removing dispub.cer ...'
&lt;br&gt;&amp;gt; rm dispub.cer
&lt;br&gt;&amp;gt; echo 'Import disPartnerpub.cer-&amp;gt;disStore.jks... '
&lt;br&gt;&amp;gt; $JAVA_HOME/bin/keytool -import -alias disPartnerpubcert -file
&lt;br&gt;&amp;gt; disPartnerpub.cer -keystore disStore.jks -storepass dispass
&lt;br&gt;&amp;gt; echo 'removing disPartnerpub.cer ...'
&lt;br&gt;&amp;gt; rm disPartnerpub.cer
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; echo 'Done.'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/keyStore.isKeyEntry%28%29-returning-fals&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/keyStore.isKeyEntry%28%29-returning-fals&lt;/a&gt;&lt;br&gt;&amp;gt; e-tp26574263p26574263.html
&lt;br&gt;&amp;gt; Sent from the WSS4J mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593162&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593162&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593162&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593162&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/keyStore.isKeyEntry%28%29-returning-false-tp26574263p26593162.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26580414</id>
	<title>Axis 1.1 with WSS4J</title>
	<published>2009-11-30T11:25:04Z</published>
	<updated>2009-11-30T11:25:04Z</updated>
	<author>
		<name>Pradhan, Priyatosh (MLX Technology)</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;&lt;HTML&gt;&lt;head&gt;&lt;META content=&quot;text/html; charset=utf-8&quot; http-equiv=&quot;Content-Type&quot;&gt;



&lt;META content=&quot;text/html; charset=utf-8&quot; HTTP-EQUIV=&quot;Content-Type&quot;&gt;
&lt;META CONTENT=&quot;MS Exchange Server version 6.5.7655.4&quot; NAME=&quot;Generator&quot;&gt;
&lt;TITLE&gt;Axis 1.1 with WSS4J&lt;/TITLE&gt;
&lt;META content=&quot;text/html; charset=utf-8&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;&lt;BODY&gt;
&lt;DIV&gt;
&lt;!-- Converted from text/rtf format --&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;Can I use WSS4J with Axis 1.1?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;WSS4J documentation points to Axis 1.2.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/DIV&gt;
&lt;DIV&gt;
&lt;HR COLOR=&quot;gray&quot;&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT FACE=&quot;Arial&quot; SIZE=&quot;2&quot;&gt;This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. The information contained in this e-mail was obtained from sources believed to be reliable; however, the accuracy or completeness of this information is not guaranteed. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch.&amp;nbsp; Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free.&amp;nbsp; References to &quot;Merrill Lynch&quot; are references to any company in the Merrill Lynch &amp; Co., Inc. group of companies, which are wholly-owned by Bank of America Corporation.&amp;nbsp; Securities and Insurance Products: * Are Not FDIC Insured&amp;nbsp; * Are Not Bank Guaranteed&amp;nbsp; *&amp;nbsp; May Lose Value&amp;nbsp; *&amp;nbsp; Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency.&amp;nbsp; Past performance is no guarantee of future results. Attachments that are part of this E-communication may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: &lt;A HREF=&quot;http://www.ml.com/e-communications_terms/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ml.com/e-communications_terms/&lt;/A&gt;.&amp;nbsp; By messaging with Merrill Lynch you consent to the foregoing.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;HR COLOR=&quot;gray&quot;&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Axis-1.1-with-WSS4J-tp26580414p26580414.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26574263</id>
	<title>keyStore.isKeyEntry() returning false</title>
	<published>2009-11-30T04:54:11Z</published>
	<updated>2009-11-30T04:54:11Z</updated>
	<author>
		<name>NewToGit</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm creating my KeyStore (disPartner.jks) as shown below but the isKeyEntry(&amp;quot;dispubcer&amp;quot;) method is returning false can someone tell me why please.
&lt;br&gt;&lt;br&gt;But when I retrieve the certificate using getCertiticate(&amp;quot;dispubcer&amp;quot;) it finds it no problem.
&lt;br&gt;&lt;br&gt;&lt;img class='smiley' src='http://old.nabble.com/images/smiley/anim_crazy.gif' /&gt;&amp;nbsp;please help me. 
&lt;br&gt;&lt;br&gt;echo 'Create dis store ... '
&lt;br&gt;$JAVA_HOME/bin/keytool -genkeypair -alias dis -keystore disStore.jks -dname &amp;quot;cn=dis&amp;quot; -keypass dispass -storepass dispass -keyalg rsa
&lt;br&gt;echo 'Self-sign dis ... '
&lt;br&gt;$JAVA_HOME/bin/keytool -selfcert -alias dis -keystore disStore.jks -keypass dispass -storepass dispass
&lt;br&gt;echo 'Export dis public key...'
&lt;br&gt;$JAVA_HOME/bin/keytool -export -keystore disStore.jks -alias dis -storepass dispass -file dispub.cer
&lt;br&gt;&lt;br&gt;echo 'Create disPartner store ... '
&lt;br&gt;$JAVA_HOME/bin/keytool -genkeypair -alias dispartner -keystore disPartner.jks -dname &amp;quot;cn=dispartner&amp;quot; -keypass disPartnerpass -storepass disPartnerpass -keyalg rsa
&lt;br&gt;echo 'Self-sign disPartner ... '
&lt;br&gt;$JAVA_HOME/bin/keytool -selfcert -alias dispartner -keystore disPartner.jks -keypass disPartnerpass -storepass disPartnerpass
&lt;br&gt;echo 'Export disPartner public key...'
&lt;br&gt;$JAVA_HOME/bin/keytool -export -keystore disPartner.jks -alias dispartner -storepass disPartnerpass -file disPartnerpub.cer
&lt;br&gt;&lt;br&gt;echo 'Import dispub.cer-&amp;gt;disPartner.jks... '
&lt;br&gt;$JAVA_HOME/bin/keytool -import -alias dispubcer -file dispub.cer -keystore disPartner.jks -storepass disPartnerpass
&lt;br&gt;echo 'removing dispub.cer ...'
&lt;br&gt;rm dispub.cer
&lt;br&gt;echo 'Import disPartnerpub.cer-&amp;gt;disStore.jks... '
&lt;br&gt;$JAVA_HOME/bin/keytool -import -alias disPartnerpubcert -file disPartnerpub.cer -keystore disStore.jks -storepass dispass
&lt;br&gt;echo 'removing disPartnerpub.cer ...'
&lt;br&gt;rm disPartnerpub.cer
&lt;br&gt;&lt;br&gt;echo 'Done.'
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/keyStore.isKeyEntry%28%29-returning-false-tp26574263p26574263.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26499578</id>
	<title>RE: Wss4j working with WebSphere?</title>
	<published>2009-11-24T09:01:05Z</published>
	<updated>2009-11-24T09:01:05Z</updated>
	<author>
		<name>Colm O hEigeartaigh</name>
	</author>
	<content type="html">&lt;br&gt;Eclipse. I normally run tests from the command line, e.g. &amp;quot;mvn clean
&lt;br&gt;install&amp;quot; or &amp;quot;mvn test&amp;quot;.
&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Yang, Gang CTR USA [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gang.yang@...&lt;/a&gt;] 
&lt;br&gt;Sent: 24 November 2009 16:02
&lt;br&gt;To: Colm O hEigeartaigh; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;Hi, Colm,
&lt;br&gt;&lt;br&gt;What's your dev env? I checked out 1_5_x-fixes branch into MyEclipse 7.5
&lt;br&gt;and MyEclipse hung at &amp;quot;Initinalizging Java Tools&amp;quot; each time I restart
&lt;br&gt;MyEclipse.
&lt;br&gt;&lt;br&gt;Gang
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Colm O hEigeartaigh [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;coheigea@...&lt;/a&gt;] 
&lt;br&gt;Sent: Tuesday, November 24, 2009 6:33 AM
&lt;br&gt;To: Yang, Gang CTR USA; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi Gang,
&lt;br&gt;&lt;br&gt;If I apply your fix it breaks 5 tests, one in TestWSSecurityNew3 and 4
&lt;br&gt;in TestWSSecurityNew11. Can you take a look at these tests in
&lt;br&gt;branches/1_5_x-fixes after applying your fix?
&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Yang, Gang CTR USA [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gang.yang@...&lt;/a&gt;]
&lt;br&gt;Sent: 18 November 2009 22:30
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;After some debugging, I think I found why wss4j isn't working with WAS
&lt;br&gt;properly. The problem is caused by the way WAS's SOAP/DOM implements
&lt;br&gt;Node.appendChild() and Node.insertBefore() and the timing wss4j inserts
&lt;br&gt;the &amp;lt;Signature&amp;gt; element into the header. WAS's element insertion
&lt;br&gt;implementation puts the appended/inserted child in a temp area
&lt;br&gt;(altContent) and used the API to hide that. When the child element is
&lt;br&gt;actually accessed, it would put the child and its sub-tree into the
&lt;br&gt;normal place by &amp;quot;copying&amp;quot;, which causes &amp;quot;new&amp;quot; node objects to be
&lt;br&gt;generated. Back to wss4j, WSSecSignature.build() calls &amp;quot;prependToHeader&amp;quot;
&lt;br&gt;to insert &amp;lt;Signature&amp;gt; element into the header (and doc) early and then
&lt;br&gt;was trying to do the signing. During the signing process, it actually
&lt;br&gt;accesses the &amp;lt;Signature&amp;gt; element causing WAS to copy and regenerate.
&lt;br&gt;This would cause the object references to the &amp;lt;DigestValue&amp;gt; and
&lt;br&gt;&amp;lt;SignatureValue&amp;gt; in sig (XMLSignaure) member to stale. Therefore the
&lt;br&gt;inserted &amp;lt;DigestValue&amp;gt; values and &amp;lt;SignatureValue&amp;gt; value are not
&lt;br&gt;actually inserted into the final SOAP document.
&lt;br&gt;&lt;br&gt;I modified the code to call prependToHeader() at last after the
&lt;br&gt;computeSignature() call. This seems to have worked fine with WAS now.
&lt;br&gt;However, since I'm not an expert in wss4j and would like some one, Cole
&lt;br&gt;maybe?, to bless the change and pull that into the codebase if that's
&lt;br&gt;fine.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Gang
&lt;br&gt;PS: The modified WSSecSignature.build() code:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public Document build(Document doc, Crypto cr, WSSecHeader
&lt;br&gt;secHeader)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throws WSSecurityException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; doDebug = log.isDebugEnabled();
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (doDebug) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log.debug(&amp;quot;Beginning signing...&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prepare(doc, cr, secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SOAPConstants soapConstants =
&lt;br&gt;WSSecurityUtil.getSOAPConstants(doc.getDocumentElement());
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (parts == null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parts = new Vector();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WSEncryptionPart encP = 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new WSEncryptionPart(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; soapConstants.getBodyQName().getLocalPart(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; soapConstants.getEnvelopeURI(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Content&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parts.add(encP);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; addReferencesToSign(parts, secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // put at the end instead:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // prependToHeader(secHeader);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // if we have a BST prepend it in front of the Signature
&lt;br&gt;according to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // strict layout rules.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (bstToken != null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prependBSTElementToHeader(secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; computeSignature();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prependToHeader(secHeader);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return doc;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Yang, Gang CTR USA [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gang.yang@...&lt;/a&gt;]
&lt;br&gt;Sent: Tuesday, November 17, 2009 9:31 AM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;Has any one used wss4j with WebSphere successfully? I'm using wss4j
&lt;br&gt;1.5.8 with WAS 7.0 unsuccessfully. I'm using wss4j to build the SOAP
&lt;br&gt;security headers and signature using JAX-WS handlers. After the
&lt;br&gt;WSSSingnature.build() call without any error, the security headers were
&lt;br&gt;added to the SOAP message without the digest values and signature value.
&lt;br&gt;Has any one experienced similar behavior and has any insight?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Gang
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499578&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Wss4j-working-with-WebSphere--tp26390957p26499578.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26498623</id>
	<title>RE: Wss4j working with WebSphere?</title>
	<published>2009-11-24T08:02:08Z</published>
	<updated>2009-11-24T08:02:08Z</updated>
	<author>
		<name>Yang, Gang CTR USA</name>
	</author>
	<content type="html">Hi, Colm,
&lt;br&gt;&lt;br&gt;What's your dev env? I checked out 1_5_x-fixes branch into MyEclipse 7.5
&lt;br&gt;and MyEclipse hung at &amp;quot;Initinalizging Java Tools&amp;quot; each time I restart
&lt;br&gt;MyEclipse.
&lt;br&gt;&lt;br&gt;Gang
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Colm O hEigeartaigh [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498623&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;coheigea@...&lt;/a&gt;] 
&lt;br&gt;Sent: Tuesday, November 24, 2009 6:33 AM
&lt;br&gt;To: Yang, Gang CTR USA; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498623&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi Gang,
&lt;br&gt;&lt;br&gt;If I apply your fix it breaks 5 tests, one in TestWSSecurityNew3 and 4
&lt;br&gt;in TestWSSecurityNew11. Can you take a look at these tests in
&lt;br&gt;branches/1_5_x-fixes after applying your fix?
&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Yang, Gang CTR USA [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498623&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gang.yang@...&lt;/a&gt;]
&lt;br&gt;Sent: 18 November 2009 22:30
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498623&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;After some debugging, I think I found why wss4j isn't working with WAS
&lt;br&gt;properly. The problem is caused by the way WAS's SOAP/DOM implements
&lt;br&gt;Node.appendChild() and Node.insertBefore() and the timing wss4j inserts
&lt;br&gt;the &amp;lt;Signature&amp;gt; element into the header. WAS's element insertion
&lt;br&gt;implementation puts the appended/inserted child in a temp area
&lt;br&gt;(altContent) and used the API to hide that. When the child element is
&lt;br&gt;actually accessed, it would put the child and its sub-tree into the
&lt;br&gt;normal place by &amp;quot;copying&amp;quot;, which causes &amp;quot;new&amp;quot; node objects to be
&lt;br&gt;generated. Back to wss4j, WSSecSignature.build() calls &amp;quot;prependToHeader&amp;quot;
&lt;br&gt;to insert &amp;lt;Signature&amp;gt; element into the header (and doc) early and then
&lt;br&gt;was trying to do the signing. During the signing process, it actually
&lt;br&gt;accesses the &amp;lt;Signature&amp;gt; element causing WAS to copy and regenerate.
&lt;br&gt;This would cause the object references to the &amp;lt;DigestValue&amp;gt; and
&lt;br&gt;&amp;lt;SignatureValue&amp;gt; in sig (XMLSignaure) member to stale. Therefore the
&lt;br&gt;inserted &amp;lt;DigestValue&amp;gt; values and &amp;lt;SignatureValue&amp;gt; value are not
&lt;br&gt;actually inserted into the final SOAP document.
&lt;br&gt;&lt;br&gt;I modified the code to call prependToHeader() at last after the
&lt;br&gt;computeSignature() call. This seems to have worked fine with WAS now.
&lt;br&gt;However, since I'm not an expert in wss4j and would like some one, Cole
&lt;br&gt;maybe?, to bless the change and pull that into the codebase if that's
&lt;br&gt;fine.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Gang
&lt;br&gt;PS: The modified WSSecSignature.build() code:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public Document build(Document doc, Crypto cr, WSSecHeader
&lt;br&gt;secHeader)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throws WSSecurityException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; doDebug = log.isDebugEnabled();
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (doDebug) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log.debug(&amp;quot;Beginning signing...&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prepare(doc, cr, secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SOAPConstants soapConstants =
&lt;br&gt;WSSecurityUtil.getSOAPConstants(doc.getDocumentElement());
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (parts == null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parts = new Vector();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WSEncryptionPart encP = 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new WSEncryptionPart(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; soapConstants.getBodyQName().getLocalPart(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; soapConstants.getEnvelopeURI(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Content&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parts.add(encP);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; addReferencesToSign(parts, secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // put at the end instead:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // prependToHeader(secHeader);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // if we have a BST prepend it in front of the Signature
&lt;br&gt;according to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // strict layout rules.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (bstToken != null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prependBSTElementToHeader(secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; computeSignature();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prependToHeader(secHeader);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return doc;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Yang, Gang CTR USA [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498623&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gang.yang@...&lt;/a&gt;]
&lt;br&gt;Sent: Tuesday, November 17, 2009 9:31 AM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498623&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;Has any one used wss4j with WebSphere successfully? I'm using wss4j
&lt;br&gt;1.5.8 with WAS 7.0 unsuccessfully. I'm using wss4j to build the SOAP
&lt;br&gt;security headers and signature using JAX-WS handlers. After the
&lt;br&gt;WSSSingnature.build() call without any error, the security headers were
&lt;br&gt;added to the SOAP message without the digest values and signature value.
&lt;br&gt;Has any one experienced similar behavior and has any insight?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Gang
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498623&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498623&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498623&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498623&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498623&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498623&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Wss4j-working-with-WebSphere--tp26390957p26498623.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26494389</id>
	<title>RE: Wss4j working with WebSphere?</title>
	<published>2009-11-24T03:32:51Z</published>
	<updated>2009-11-24T03:32:51Z</updated>
	<author>
		<name>Colm O hEigeartaigh</name>
	</author>
	<content type="html">&lt;br&gt;Hi Gang,
&lt;br&gt;&lt;br&gt;If I apply your fix it breaks 5 tests, one in TestWSSecurityNew3 and 4
&lt;br&gt;in TestWSSecurityNew11. Can you take a look at these tests in
&lt;br&gt;branches/1_5_x-fixes after applying your fix?
&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Yang, Gang CTR USA [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26494389&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gang.yang@...&lt;/a&gt;] 
&lt;br&gt;Sent: 18 November 2009 22:30
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26494389&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: RE: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;After some debugging, I think I found why wss4j isn't working with WAS
&lt;br&gt;properly. The problem is caused by the way WAS's SOAP/DOM implements
&lt;br&gt;Node.appendChild() and Node.insertBefore() and the timing wss4j inserts
&lt;br&gt;the &amp;lt;Signature&amp;gt; element into the header. WAS's element insertion
&lt;br&gt;implementation puts the appended/inserted child in a temp area
&lt;br&gt;(altContent) and used the API to hide that. When the child element is
&lt;br&gt;actually accessed, it would put the child and its sub-tree into the
&lt;br&gt;normal place by &amp;quot;copying&amp;quot;, which causes &amp;quot;new&amp;quot; node objects to be
&lt;br&gt;generated. Back to wss4j, WSSecSignature.build() calls &amp;quot;prependToHeader&amp;quot;
&lt;br&gt;to insert &amp;lt;Signature&amp;gt; element into the header (and doc) early and then
&lt;br&gt;was trying to do the signing. During the signing process, it actually
&lt;br&gt;accesses the &amp;lt;Signature&amp;gt; element causing WAS to copy and regenerate.
&lt;br&gt;This would cause the object references to the &amp;lt;DigestValue&amp;gt; and
&lt;br&gt;&amp;lt;SignatureValue&amp;gt; in sig (XMLSignaure) member to stale. Therefore the
&lt;br&gt;inserted &amp;lt;DigestValue&amp;gt; values and &amp;lt;SignatureValue&amp;gt; value are not
&lt;br&gt;actually inserted into the final SOAP document.
&lt;br&gt;&lt;br&gt;I modified the code to call prependToHeader() at last after the
&lt;br&gt;computeSignature() call. This seems to have worked fine with WAS now.
&lt;br&gt;However, since I'm not an expert in wss4j and would like some one, Cole
&lt;br&gt;maybe?, to bless the change and pull that into the codebase if that's
&lt;br&gt;fine.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Gang
&lt;br&gt;PS: The modified WSSecSignature.build() code:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public Document build(Document doc, Crypto cr, WSSecHeader
&lt;br&gt;secHeader)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throws WSSecurityException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; doDebug = log.isDebugEnabled();
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (doDebug) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log.debug(&amp;quot;Beginning signing...&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prepare(doc, cr, secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SOAPConstants soapConstants =
&lt;br&gt;WSSecurityUtil.getSOAPConstants(doc.getDocumentElement());
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (parts == null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parts = new Vector();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WSEncryptionPart encP = 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new WSEncryptionPart(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; soapConstants.getBodyQName().getLocalPart(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; soapConstants.getEnvelopeURI(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Content&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parts.add(encP);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; addReferencesToSign(parts, secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // put at the end instead:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // prependToHeader(secHeader);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // if we have a BST prepend it in front of the Signature
&lt;br&gt;according to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // strict layout rules.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (bstToken != null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prependBSTElementToHeader(secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; computeSignature();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prependToHeader(secHeader);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return doc;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Yang, Gang CTR USA [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26494389&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gang.yang@...&lt;/a&gt;] 
&lt;br&gt;Sent: Tuesday, November 17, 2009 9:31 AM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26494389&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;Has any one used wss4j with WebSphere successfully? I'm using wss4j
&lt;br&gt;1.5.8 with WAS 7.0 unsuccessfully. I'm using wss4j to build the SOAP
&lt;br&gt;security headers and signature using JAX-WS handlers. After the
&lt;br&gt;WSSSingnature.build() call without any error, the security headers were
&lt;br&gt;added to the SOAP message without the digest values and signature value.
&lt;br&gt;Has any one experienced similar behavior and has any insight?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Gang
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26494389&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26494389&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26494389&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26494389&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26494389&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26494389&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Wss4j-working-with-WebSphere--tp26390957p26494389.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26416977</id>
	<title>RE: Wss4j working with WebSphere?</title>
	<published>2009-11-18T14:30:05Z</published>
	<updated>2009-11-18T14:30:05Z</updated>
	<author>
		<name>Yang, Gang CTR USA</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;After some debugging, I think I found why wss4j isn't working with WAS
&lt;br&gt;properly. The problem is caused by the way WAS's SOAP/DOM implements
&lt;br&gt;Node.appendChild() and Node.insertBefore() and the timing wss4j inserts
&lt;br&gt;the &amp;lt;Signature&amp;gt; element into the header. WAS's element insertion
&lt;br&gt;implementation puts the appended/inserted child in a temp area
&lt;br&gt;(altContent) and used the API to hide that. When the child element is
&lt;br&gt;actually accessed, it would put the child and its sub-tree into the
&lt;br&gt;normal place by &amp;quot;copying&amp;quot;, which causes &amp;quot;new&amp;quot; node objects to be
&lt;br&gt;generated. Back to wss4j, WSSecSignature.build() calls &amp;quot;prependToHeader&amp;quot;
&lt;br&gt;to insert &amp;lt;Signature&amp;gt; element into the header (and doc) early and then
&lt;br&gt;was trying to do the signing. During the signing process, it actually
&lt;br&gt;accesses the &amp;lt;Signature&amp;gt; element causing WAS to copy and regenerate.
&lt;br&gt;This would cause the object references to the &amp;lt;DigestValue&amp;gt; and
&lt;br&gt;&amp;lt;SignatureValue&amp;gt; in sig (XMLSignaure) member to stale. Therefore the
&lt;br&gt;inserted &amp;lt;DigestValue&amp;gt; values and &amp;lt;SignatureValue&amp;gt; value are not
&lt;br&gt;actually inserted into the final SOAP document.
&lt;br&gt;&lt;br&gt;I modified the code to call prependToHeader() at last after the
&lt;br&gt;computeSignature() call. This seems to have worked fine with WAS now.
&lt;br&gt;However, since I'm not an expert in wss4j and would like some one, Cole
&lt;br&gt;maybe?, to bless the change and pull that into the codebase if that's
&lt;br&gt;fine.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Gang
&lt;br&gt;PS: The modified WSSecSignature.build() code:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public Document build(Document doc, Crypto cr, WSSecHeader
&lt;br&gt;secHeader)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throws WSSecurityException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; doDebug = log.isDebugEnabled();
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (doDebug) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log.debug(&amp;quot;Beginning signing...&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prepare(doc, cr, secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SOAPConstants soapConstants =
&lt;br&gt;WSSecurityUtil.getSOAPConstants(doc.getDocumentElement());
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (parts == null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parts = new Vector();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WSEncryptionPart encP = 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new WSEncryptionPart(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; soapConstants.getBodyQName().getLocalPart(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; soapConstants.getEnvelopeURI(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Content&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parts.add(encP);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; addReferencesToSign(parts, secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // put at the end instead:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // prependToHeader(secHeader);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // if we have a BST prepend it in front of the Signature
&lt;br&gt;according to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // strict layout rules.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (bstToken != null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prependBSTElementToHeader(secHeader);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; computeSignature();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prependToHeader(secHeader);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return doc;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Yang, Gang CTR USA [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26416977&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gang.yang@...&lt;/a&gt;] 
&lt;br&gt;Sent: Tuesday, November 17, 2009 9:31 AM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26416977&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: Wss4j working with WebSphere?
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;Has any one used wss4j with WebSphere successfully? I'm using wss4j
&lt;br&gt;1.5.8 with WAS 7.0 unsuccessfully. I'm using wss4j to build the SOAP
&lt;br&gt;security headers and signature using JAX-WS handlers. After the
&lt;br&gt;WSSSingnature.build() call without any error, the security headers were
&lt;br&gt;added to the SOAP message without the digest values and signature value.
&lt;br&gt;Has any one experienced similar behavior and has any insight?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Gang
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26416977&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26416977&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26416977&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26416977&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Wss4j-working-with-WebSphere--tp26390957p26416977.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26390957</id>
	<title>Wss4j working with WebSphere?</title>
	<published>2009-11-17T06:30:35Z</published>
	<updated>2009-11-17T06:30:35Z</updated>
	<author>
		<name>Yang, Gang CTR USA</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Has any one used wss4j with WebSphere successfully? I'm using wss4j
&lt;br&gt;1.5.8 with WAS 7.0 unsuccessfully. I'm using wss4j to build the SOAP
&lt;br&gt;security headers and signature using JAX-WS handlers. After the
&lt;br&gt;WSSSingnature.build() call without any error, the security headers were
&lt;br&gt;added to the SOAP message without the digest values and signature value.
&lt;br&gt;Has any one experienced similar behavior and has any insight?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Gang
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26390957&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26390957&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Wss4j-working-with-WebSphere--tp26390957p26390957.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26342249</id>
	<title>Re: WSS4J Encryption with public key ???</title>
	<published>2009-11-13T11:36:41Z</published>
	<updated>2009-11-13T11:36:41Z</updated>
	<author>
		<name>Mayank Mishra-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;superk888 wrote:
&lt;br&gt;&amp;gt; Yep, I've figured it out afterward. But when working with asymmetric
&lt;br&gt;&amp;gt; encryption, aren't we suppose to have 2 possibilities with one key pair? 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - A encrypts with A's private key --&amp;gt; B decrypts with A's public key
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;It's a signature operation which happens with A's private key and B 
&lt;br&gt;verifies the signature with A's public key. if we use public key to 
&lt;br&gt;decrypt then many guys 'C', 'D', 'E', etc would decrypt the message, 
&lt;br&gt;which we don't want, we wanted only 'B' to decrypt as it's encrypted for 
&lt;br&gt;'B' only. Hence, encryption won't work here. This is a Signature, where 
&lt;br&gt;everyone can come to know that only 'A' has sent the message.
&lt;br&gt;&lt;br&gt;&amp;gt; - A encrypts with B's public key --&amp;gt; B decrypts with B's private key
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;This is right for Encryption. We do encryption so that only one guy 'B' 
&lt;br&gt;who has it's private key can decrypt. All other's won't be having 'B's 
&lt;br&gt;private key, hence can't decrypt.
&lt;br&gt;&amp;gt; Besides, there is something wrong with the WSPasswordCallback class from
&lt;br&gt;&amp;gt; WSS4J : this class uses a private key to decrypt a message. It logically
&lt;br&gt;&amp;gt; throws an exception when we try to decrypt with a public key. 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But then, why the hell does it allow to encrypt with a private key?
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;I hope this helps.
&lt;br&gt;&lt;br&gt;With Regards,
&lt;br&gt;Mayank
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Colm O hEigeartaigh wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For an unknown reason to me, the crypto engine is looking for a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; private 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; key in the specified keystore object, which actually only contains a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; certificate since it is the server's public key:confused:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; The client needs a private key to decrypt the (encrypted) message
&lt;br&gt;&amp;gt;&amp;gt; received from the server. The service should be configured to encrypt
&lt;br&gt;&amp;gt;&amp;gt; the response using the client's public key.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Colm.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: superk888 [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26342249&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;superk888@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt;&amp;gt; Sent: 12 November 2009 12:04
&lt;br&gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26342249&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: WSS4J Encryption with public key ???
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi everyone, 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I've implemented a Web Service that supports 2-ways encryption features
&lt;br&gt;&amp;gt;&amp;gt; using the X.509 Certificates method. Everything works fine when using 2
&lt;br&gt;&amp;gt;&amp;gt; pairs of keys as it is described in the Apache CXF documentation, but
&lt;br&gt;&amp;gt;&amp;gt; what I
&lt;br&gt;&amp;gt;&amp;gt; am trying to do, is to use only one pair of keys : server-side keeps its
&lt;br&gt;&amp;gt;&amp;gt; own
&lt;br&gt;&amp;gt;&amp;gt; private key and gives its public key to the service client.
&lt;br&gt;&amp;gt;&amp;gt; Consequently,
&lt;br&gt;&amp;gt;&amp;gt; client-side has to encrypt messages before sending with the server's
&lt;br&gt;&amp;gt;&amp;gt; public
&lt;br&gt;&amp;gt;&amp;gt; key, which should work since this is an asymmetric encryption method. 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Nevertheless, my service client succeeds to encrypt a message with the
&lt;br&gt;&amp;gt;&amp;gt; server's public key but when the latter sends a response, my service
&lt;br&gt;&amp;gt;&amp;gt; client
&lt;br&gt;&amp;gt;&amp;gt; fails to decode the encrypted response. Is this case, I got the
&lt;br&gt;&amp;gt;&amp;gt; following
&lt;br&gt;&amp;gt;&amp;gt; error : 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2009-11-12 12:55:22,261 [main] ERROR
&lt;br&gt;&amp;gt;&amp;gt; org.apache.ws.security.components.crypto.CryptoBase - Cannot find key
&lt;br&gt;&amp;gt;&amp;gt; for
&lt;br&gt;&amp;gt;&amp;gt; alias: [myAlias] in keystore of type [jks] from provider [SUN version
&lt;br&gt;&amp;gt;&amp;gt; 1.5]
&lt;br&gt;&amp;gt;&amp;gt; with size [1] and aliases: {myAlias}
&lt;br&gt;&amp;gt;&amp;gt; 12-nov.-2009 12:55:22
&lt;br&gt;&amp;gt;&amp;gt; org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
&lt;br&gt;&amp;gt;&amp;gt; handleMessage
&lt;br&gt;&amp;gt;&amp;gt; ATTENTION: 
&lt;br&gt;&amp;gt;&amp;gt; org.apache.ws.security.WSSecurityException: The signature or decryption
&lt;br&gt;&amp;gt;&amp;gt; was
&lt;br&gt;&amp;gt;&amp;gt; invalid; nested exception is: 
&lt;br&gt;&amp;gt;&amp;gt; 	java.lang.Exception: Cannot find key for alias: [myAlias]
&lt;br&gt;&amp;gt;&amp;gt; 	at ...
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt; Caused by: java.lang.Exception: Cannot find key for alias: [myAlias]
&lt;br&gt;&amp;gt;&amp;gt; 	at
&lt;br&gt;&amp;gt;&amp;gt; org.apache.ws.security.components.crypto.CryptoBase.getPrivateKey(Crypto
&lt;br&gt;&amp;gt;&amp;gt; Base.java:214)
&lt;br&gt;&amp;gt;&amp;gt; 	at
&lt;br&gt;&amp;gt;&amp;gt; org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKe
&lt;br&gt;&amp;gt;&amp;gt; y(EncryptedKeyProcessor.java:328)
&lt;br&gt;&amp;gt;&amp;gt; 	... 71 more
&lt;br&gt;&amp;gt;&amp;gt; 12-nov.-2009 12:55:22 org.apache.cxf.phase.PhaseInterceptorChain
&lt;br&gt;&amp;gt;&amp;gt; doIntercept
&lt;br&gt;&amp;gt;&amp;gt; ATTENTION: Interceptor has thrown exception, unwinding now
&lt;br&gt;&amp;gt;&amp;gt; org.apache.cxf.binding.soap.SoapFault: The signature or decryption was
&lt;br&gt;&amp;gt;&amp;gt; invalid; nested exception is: 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; For an unknown reason to me, the crypto engine is looking for a private
&lt;br&gt;&amp;gt;&amp;gt; key
&lt;br&gt;&amp;gt;&amp;gt; in the specified keystore object, which actually only contains a
&lt;br&gt;&amp;gt;&amp;gt; certificate
&lt;br&gt;&amp;gt;&amp;gt; since it is the server's public key:confused: 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; What am I missing?
&lt;br&gt;&amp;gt;&amp;gt; -- 
&lt;br&gt;&amp;gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/WSS4J-Encryption-with-public-key-----tp26316077p26&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/WSS4J-Encryption-with-public-key-----tp26316077p26&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; 316077.html
&lt;br&gt;&amp;gt;&amp;gt; Sent from the WSS4J mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26342249&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26342249&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26342249&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26342249&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26342249&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26342249&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSS4J-Encryption-with-public-key-----tp26316077p26342249.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26341857</id>
	<title>RE: WSS4J Encryption with public key ???</title>
	<published>2009-11-13T11:11:19Z</published>
	<updated>2009-11-13T11:11:19Z</updated>
	<author>
		<name>superk888</name>
	</author>
	<content type="html">Yep, I've figured it out afterward. But when working with asymmetric encryption, aren't we suppose to have 2 possibilities with one key pair? 
&lt;br&gt;&lt;br&gt;- A encrypts with A's private key --&amp;gt; B decrypts with A's public key
&lt;br&gt;- A encrypts with B's public key --&amp;gt; B decrypts with B's private key
&lt;br&gt;&lt;br&gt;Besides, there is something wrong with the WSPasswordCallback class from WSS4J : this class uses a private key to decrypt a message. It logically throws an exception when we try to decrypt with a public key. 
&lt;br&gt;&lt;br&gt;&lt;b&gt;But then, why the hell does it allow to encrypt with a private key?&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Colm O hEigeartaigh wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&amp;gt; For an unknown reason to me, the crypto engine is looking for a
&lt;br&gt;private 
&lt;br&gt;&amp;gt; key in the specified keystore object, which actually only contains a 
&lt;br&gt;&amp;gt; certificate since it is the server's public key:confused:
&lt;br&gt;&lt;br&gt;The client needs a private key to decrypt the (encrypted) message
&lt;br&gt;received from the server. The service should be configured to encrypt
&lt;br&gt;the response using the client's public key.
&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: superk888 [mailto:superk888@gmail.com] 
&lt;br&gt;Sent: 12 November 2009 12:04
&lt;br&gt;To: wss4j-dev@ws.apache.org
&lt;br&gt;Subject: WSS4J Encryption with public key ???
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi everyone, 
&lt;br&gt;&lt;br&gt;I've implemented a Web Service that supports 2-ways encryption features
&lt;br&gt;using the X.509 Certificates method. Everything works fine when using 2
&lt;br&gt;pairs of keys as it is described in the Apache CXF documentation, but
&lt;br&gt;what I
&lt;br&gt;am trying to do, is to use only one pair of keys : server-side keeps its
&lt;br&gt;own
&lt;br&gt;private key and gives its public key to the service client.
&lt;br&gt;Consequently,
&lt;br&gt;client-side has to encrypt messages before sending with the server's
&lt;br&gt;public
&lt;br&gt;key, which should work since this is an asymmetric encryption method. 
&lt;br&gt;&lt;br&gt;Nevertheless, my service client succeeds to encrypt a message with the
&lt;br&gt;server's public key but when the latter sends a response, my service
&lt;br&gt;client
&lt;br&gt;fails to decode the encrypted response. Is this case, I got the
&lt;br&gt;following
&lt;br&gt;error : 
&lt;br&gt;&lt;br&gt;2009-11-12 12:55:22,261 [main] ERROR
&lt;br&gt;org.apache.ws.security.components.crypto.CryptoBase - Cannot find key
&lt;br&gt;for
&lt;br&gt;alias: [myAlias] in keystore of type [jks] from provider [SUN version
&lt;br&gt;1.5]
&lt;br&gt;with size [1] and aliases: {myAlias}
&lt;br&gt;12-nov.-2009 12:55:22
&lt;br&gt;org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
&lt;br&gt;handleMessage
&lt;br&gt;ATTENTION: 
&lt;br&gt;org.apache.ws.security.WSSecurityException: The signature or decryption
&lt;br&gt;was
&lt;br&gt;invalid; nested exception is: 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.lang.Exception: Cannot find key for alias: [myAlias]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ...
&lt;br&gt;...
&lt;br&gt;Caused by: java.lang.Exception: Cannot find key for alias: [myAlias]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.ws.security.components.crypto.CryptoBase.getPrivateKey(Crypto
&lt;br&gt;Base.java:214)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKe
&lt;br&gt;y(EncryptedKeyProcessor.java:328)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 71 more
&lt;br&gt;12-nov.-2009 12:55:22 org.apache.cxf.phase.PhaseInterceptorChain
&lt;br&gt;doIntercept
&lt;br&gt;ATTENTION: Interceptor has thrown exception, unwinding now
&lt;br&gt;org.apache.cxf.binding.soap.SoapFault: The signature or decryption was
&lt;br&gt;invalid; nested exception is: 
&lt;br&gt;&lt;br&gt;For an unknown reason to me, the crypto engine is looking for a private
&lt;br&gt;key
&lt;br&gt;in the specified keystore object, which actually only contains a
&lt;br&gt;certificate
&lt;br&gt;since it is the server's public key:confused: 
&lt;br&gt;&lt;br&gt;What am I missing?
&lt;br&gt;-- 
&lt;br&gt;View this message in context:
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/WSS4J-Encryption-with-public-key-----tp26316077p26&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/WSS4J-Encryption-with-public-key-----tp26316077p26&lt;/a&gt;&lt;br&gt;316077.html
&lt;br&gt;Sent from the WSS4J mailing list archive at Nabble.com.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
&lt;br&gt;For additional commands, e-mail: wss4j-dev-help@ws.apache.org
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
&lt;br&gt;For additional commands, e-mail: wss4j-dev-help@ws.apache.org
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSS4J-Encryption-with-public-key-----tp26316077p26341857.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26340424</id>
	<title>RE: WSS4J Encryption with public key ???</title>
	<published>2009-11-13T09:38:45Z</published>
	<updated>2009-11-13T09:38:45Z</updated>
	<author>
		<name>Colm O hEigeartaigh</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; For an unknown reason to me, the crypto engine is looking for a
&lt;br&gt;private 
&lt;br&gt;&amp;gt; key in the specified keystore object, which actually only contains a 
&lt;br&gt;&amp;gt; certificate since it is the server's public key:confused:
&lt;br&gt;&lt;br&gt;The client needs a private key to decrypt the (encrypted) message
&lt;br&gt;received from the server. The service should be configured to encrypt
&lt;br&gt;the response using the client's public key.
&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: superk888 [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340424&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;superk888@...&lt;/a&gt;] 
&lt;br&gt;Sent: 12 November 2009 12:04
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340424&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: WSS4J Encryption with public key ???
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi everyone, 
&lt;br&gt;&lt;br&gt;I've implemented a Web Service that supports 2-ways encryption features
&lt;br&gt;using the X.509 Certificates method. Everything works fine when using 2
&lt;br&gt;pairs of keys as it is described in the Apache CXF documentation, but
&lt;br&gt;what I
&lt;br&gt;am trying to do, is to use only one pair of keys : server-side keeps its
&lt;br&gt;own
&lt;br&gt;private key and gives its public key to the service client.
&lt;br&gt;Consequently,
&lt;br&gt;client-side has to encrypt messages before sending with the server's
&lt;br&gt;public
&lt;br&gt;key, which should work since this is an asymmetric encryption method. 
&lt;br&gt;&lt;br&gt;Nevertheless, my service client succeeds to encrypt a message with the
&lt;br&gt;server's public key but when the latter sends a response, my service
&lt;br&gt;client
&lt;br&gt;fails to decode the encrypted response. Is this case, I got the
&lt;br&gt;following
&lt;br&gt;error : 
&lt;br&gt;&lt;br&gt;2009-11-12 12:55:22,261 [main] ERROR
&lt;br&gt;org.apache.ws.security.components.crypto.CryptoBase - Cannot find key
&lt;br&gt;for
&lt;br&gt;alias: [myAlias] in keystore of type [jks] from provider [SUN version
&lt;br&gt;1.5]
&lt;br&gt;with size [1] and aliases: {myAlias}
&lt;br&gt;12-nov.-2009 12:55:22
&lt;br&gt;org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
&lt;br&gt;handleMessage
&lt;br&gt;ATTENTION: 
&lt;br&gt;org.apache.ws.security.WSSecurityException: The signature or decryption
&lt;br&gt;was
&lt;br&gt;invalid; nested exception is: 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.lang.Exception: Cannot find key for alias: [myAlias]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ...
&lt;br&gt;...
&lt;br&gt;Caused by: java.lang.Exception: Cannot find key for alias: [myAlias]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.ws.security.components.crypto.CryptoBase.getPrivateKey(Crypto
&lt;br&gt;Base.java:214)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKe
&lt;br&gt;y(EncryptedKeyProcessor.java:328)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 71 more
&lt;br&gt;12-nov.-2009 12:55:22 org.apache.cxf.phase.PhaseInterceptorChain
&lt;br&gt;doIntercept
&lt;br&gt;ATTENTION: Interceptor has thrown exception, unwinding now
&lt;br&gt;org.apache.cxf.binding.soap.SoapFault: The signature or decryption was
&lt;br&gt;invalid; nested exception is: 
&lt;br&gt;&lt;br&gt;For an unknown reason to me, the crypto engine is looking for a private
&lt;br&gt;key
&lt;br&gt;in the specified keystore object, which actually only contains a
&lt;br&gt;certificate
&lt;br&gt;since it is the server's public key:confused: 
&lt;br&gt;&lt;br&gt;What am I missing?
&lt;br&gt;-- 
&lt;br&gt;View this message in context:
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/WSS4J-Encryption-with-public-key-----tp26316077p26&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/WSS4J-Encryption-with-public-key-----tp26316077p26&lt;/a&gt;&lt;br&gt;316077.html
&lt;br&gt;Sent from the WSS4J mailing list archive at Nabble.com.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340424&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340424&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340424&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340424&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSS4J-Encryption-with-public-key-----tp26316077p26340424.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26327780</id>
	<title>Server-side: updating keystore?</title>
	<published>2009-11-12T14:35:24Z</published>
	<updated>2009-11-12T14:35:24Z</updated>
	<author>
		<name>superk888</name>
	</author>
	<content type="html">Hi everyone, 
&lt;br&gt;&lt;br&gt;What follows isn't an issue I'm currently running into but it is actually a situation I could face pretty soon:
&lt;br&gt;&lt;br&gt;I've implemented a web service (Code First) which is deployed via spring-based xml configuration file in a Tomcat server. My service also implements security by referencing a keystore and a truststore.
&lt;br&gt;Suppose I wanna add a new client to my service. Its public key should be added to the server-side truststore and normally, the Tomcat server should be restarted, since WSS4J loads keystores' content only once, at the service deployment. 
&lt;br&gt;&lt;br&gt;So here's what I am wondering : would it be possible to dynamically update a keystore object without having to turn off the application server, even for a brief moment?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Server-side%3A-updating-keystore--tp26327780p26327780.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26316077</id>
	<title>WSS4J Encryption with public key ???</title>
	<published>2009-11-12T04:04:29Z</published>
	<updated>2009-11-12T04:04:29Z</updated>
	<author>
		<name>superk888</name>
	</author>
	<content type="html">Hi everyone, 
&lt;br&gt;&lt;br&gt;I've implemented a Web Service that supports 2-ways encryption features using the X.509 Certificates method. Everything works fine when using 2 pairs of keys as it is described in the Apache CXF documentation, but what I am trying to do, is to use only one pair of keys : server-side keeps its own private key and gives its public key to the service client. Consequently, client-side has to encrypt messages before sending with the server's public key, which should work since this is an asymmetric encryption method. 
&lt;br&gt;&lt;br&gt;Nevertheless, my service client succeeds to encrypt a message with the server's public key but when the latter sends a response, my service client fails to decode the encrypted response. Is this case, I got the following error : 
&lt;br&gt;&lt;b&gt;&lt;br&gt;2009-11-12 12:55:22,261 [main] ERROR org.apache.ws.security.components.crypto.CryptoBase - Cannot find key for alias: [myAlias] in keystore of type [jks] from provider [SUN version 1.5] with size [1] and aliases: {myAlias}&lt;/b&gt;&lt;br&gt;12-nov.-2009 12:55:22 org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor handleMessage
&lt;br&gt;ATTENTION: 
&lt;br&gt;org.apache.ws.security.WSSecurityException: The signature or decryption was invalid; nested exception is: 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.lang.Exception: Cannot find key for alias: [myAlias]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at ...
&lt;br&gt;...
&lt;br&gt;Caused by: java.lang.Exception: Cannot find key for alias: [myAlias]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.ws.security.components.crypto.CryptoBase.getPrivateKey(CryptoBase.java:214)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 71 more
&lt;br&gt;12-nov.-2009 12:55:22 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
&lt;br&gt;ATTENTION: Interceptor has thrown exception, unwinding now
&lt;br&gt;org.apache.cxf.binding.soap.SoapFault: The signature or decryption was invalid; nested exception is: 
&lt;br&gt;&lt;br&gt;For an unknown reason to me, the crypto engine is looking for a private key in the specified keystore object, which actually only contains a certificate since it is the server's public key&lt;img class='smiley' src='http://old.nabble.com/images/smiley/anim_confused.gif' /&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;What am I missing?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSS4J-Encryption-with-public-key-----tp26316077p26316077.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26284654</id>
	<title>[jira] Commented: (WSS-218) getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates</title>
	<published>2009-11-10T06:47:27Z</published>
	<updated>2009-11-10T06:47:27Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12775438#action_12775438&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12775438#action_12775438&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Michel Schudel commented on WSS-218:
&lt;br&gt;------------------------------------
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: WSS-218
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: WSS4J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: WSS4J Core
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 1.5.8
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Michel Schudel
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Colm O hEigeartaigh
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 4h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 4h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
&lt;br&gt;&amp;gt; The method getAliasForX509Cert(String, BigInteger) &amp;nbsp;does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
&lt;br&gt;&amp;gt; Please wrap line 334-353 in version 1.5.8 as follows:
&lt;br&gt;&amp;gt; if (keystore.isCertificateEntry(alias) {
&lt;br&gt;&amp;gt; &amp;nbsp; (line 334-353)
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; That should do it.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26284654&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26284654&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28WSS-218%29-getAliasForX509Cert%28String%2C-BigInteger%29-in-CryptoBase-returns-null-if-not-all-aliases-are-certificates-tp26283668p26284654.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26284550</id>
	<title>[jira] Commented: (WSS-218) getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates</title>
	<published>2009-11-10T06:41:27Z</published>
	<updated>2009-11-10T06:41:27Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12775437#action_12775437&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12775437#action_12775437&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Colm O hEigeartaigh commented on WSS-218:
&lt;br&gt;-----------------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Have you fixed this bug (wss-218) in the private method (getAliasForX509Cert(String, BigInteger) explicitly too? 
&lt;br&gt;&lt;br&gt;Yes, check the subversion diff given in WSS-218.
&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: WSS-218
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: WSS4J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: WSS4J Core
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 1.5.8
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Michel Schudel
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Colm O hEigeartaigh
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 4h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 4h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
&lt;br&gt;&amp;gt; The method getAliasForX509Cert(String, BigInteger) &amp;nbsp;does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
&lt;br&gt;&amp;gt; Please wrap line 334-353 in version 1.5.8 as follows:
&lt;br&gt;&amp;gt; if (keystore.isCertificateEntry(alias) {
&lt;br&gt;&amp;gt; &amp;nbsp; (line 334-353)
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; That should do it.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26284550&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26284550&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28WSS-218%29-getAliasForX509Cert%28String%2C-BigInteger%29-in-CryptoBase-returns-null-if-not-all-aliases-are-certificates-tp26283668p26284550.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26284463</id>
	<title>[jira] Commented: (WSS-218) getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates</title>
	<published>2009-11-10T06:35:27Z</published>
	<updated>2009-11-10T06:35:27Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12775435#action_12775435&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12775435#action_12775435&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Michel Schudel commented on WSS-218:
&lt;br&gt;------------------------------------
&lt;br&gt;&lt;br&gt;Colm,
&lt;br&gt;&lt;br&gt;The patch supplied in WSS-210 does not fix this issue, which is in a different method: getAliasForX509Cert(Certificate).
&lt;br&gt;&lt;br&gt;Have you fixed this bug (wss-218) in the private method (getAliasForX509Cert(String, BigInteger) explicitly too?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Michel
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: WSS-218
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: WSS4J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: WSS4J Core
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 1.5.8
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Michel Schudel
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Colm O hEigeartaigh
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 4h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 4h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
&lt;br&gt;&amp;gt; The method getAliasForX509Cert(String, BigInteger) &amp;nbsp;does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
&lt;br&gt;&amp;gt; Please wrap line 334-353 in version 1.5.8 as follows:
&lt;br&gt;&amp;gt; if (keystore.isCertificateEntry(alias) {
&lt;br&gt;&amp;gt; &amp;nbsp; (line 334-353)
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; That should do it.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26284463&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26284463&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28WSS-218%29-getAliasForX509Cert%28String%2C-BigInteger%29-in-CryptoBase-returns-null-if-not-all-aliases-are-certificates-tp26283668p26284463.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26284302</id>
	<title>[jira] Resolved: (WSS-218) getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates</title>
	<published>2009-11-10T06:25:29Z</published>
	<updated>2009-11-10T06:25:29Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Colm O hEigeartaigh resolved WSS-218.
&lt;br&gt;-------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Resolution: Duplicate
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Assignee: Colm O hEigeartaigh &amp;nbsp;(was: Ruchith Udayanga Fernando)
&lt;br&gt;&lt;br&gt;&lt;br&gt;This has already been fixed for 1.5.9:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-210&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-210&lt;/a&gt;&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: WSS-218
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: WSS4J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: WSS4J Core
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 1.5.8
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Michel Schudel
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Colm O hEigeartaigh
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 4h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 4h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
&lt;br&gt;&amp;gt; The method getAliasForX509Cert(String, BigInteger) &amp;nbsp;does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
&lt;br&gt;&amp;gt; Please wrap line 334-353 in version 1.5.8 as follows:
&lt;br&gt;&amp;gt; if (keystore.isCertificateEntry(alias) {
&lt;br&gt;&amp;gt; &amp;nbsp; (line 334-353)
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; That should do it.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26284302&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26284302&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28WSS-218%29-getAliasForX509Cert%28String%2C-BigInteger%29-in-CryptoBase-returns-null-if-not-all-aliases-are-certificates-tp26283668p26284302.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26284303</id>
	<title>[jira] Closed: (WSS-218) getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates</title>
	<published>2009-11-10T06:25:29Z</published>
	<updated>2009-11-10T06:25:29Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Colm O hEigeartaigh closed WSS-218.
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: WSS-218
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: WSS4J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: WSS4J Core
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 1.5.8
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Michel Schudel
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Colm O hEigeartaigh
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 4h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 4h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
&lt;br&gt;&amp;gt; The method getAliasForX509Cert(String, BigInteger) &amp;nbsp;does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
&lt;br&gt;&amp;gt; Please wrap line 334-353 in version 1.5.8 as follows:
&lt;br&gt;&amp;gt; if (keystore.isCertificateEntry(alias) {
&lt;br&gt;&amp;gt; &amp;nbsp; (line 334-353)
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; That should do it.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26284303&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26284303&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28WSS-218%29-getAliasForX509Cert%28String%2C-BigInteger%29-in-CryptoBase-returns-null-if-not-all-aliases-are-certificates-tp26283668p26284303.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26283694</id>
	<title>[jira] Updated: (WSS-218) getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates</title>
	<published>2009-11-10T05:49:27Z</published>
	<updated>2009-11-10T05:49:27Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Michel Schudel updated WSS-218:
&lt;br&gt;-------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Description: 
&lt;br&gt;We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
&lt;br&gt;The method getAliasForX509Cert(String, BigInteger) &amp;nbsp;does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
&lt;br&gt;&lt;br&gt;Please wrap line 334-353 in version 1.5.8 as follows:
&lt;br&gt;if (keystore.isCertificateEntry(alias) {
&lt;br&gt;&amp;nbsp; (line 334-353)
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;That should do it.
&lt;br&gt;&lt;br&gt;&amp;nbsp; was:
&lt;br&gt;We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
&lt;br&gt;The method getAliasForX509Cert(String, BigInteger) &amp;nbsp;does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
&lt;br&gt;&lt;br&gt;Please wrap line 334-353 in version 1.5.8 as follows:
&lt;br&gt;if (keystore.isCertificate(alias) {
&lt;br&gt;&amp;nbsp; (line 334-353)
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;That should do it.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: WSS-218
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: WSS4J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: WSS4J Core
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 1.5.8
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Michel Schudel
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Ruchith Udayanga Fernando
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 4h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 4h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
&lt;br&gt;&amp;gt; The method getAliasForX509Cert(String, BigInteger) &amp;nbsp;does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
&lt;br&gt;&amp;gt; Please wrap line 334-353 in version 1.5.8 as follows:
&lt;br&gt;&amp;gt; if (keystore.isCertificateEntry(alias) {
&lt;br&gt;&amp;gt; &amp;nbsp; (line 334-353)
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; That should do it.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26283694&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26283694&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28WSS-218%29-getAliasForX509Cert%28String%2C-BigInteger%29-in-CryptoBase-returns-null-if-not-all-aliases-are-certificates-tp26283668p26283694.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26283668</id>
	<title>[jira] Created: (WSS-218) getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates</title>
	<published>2009-11-10T05:47:28Z</published>
	<updated>2009-11-10T05:47:28Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">getAliasForX509Cert(String, BigInteger) in CryptoBase returns null if not all aliases are certificates
&lt;br&gt;------------------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: WSS-218
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-218&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-218&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: WSS4J
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Bug
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Components: WSS4J Core
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: 1.5.8
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Michel Schudel
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Assignee: Ruchith Udayanga Fernando
&lt;br&gt;&lt;br&gt;&lt;br&gt;We want to retrieve a certificate based an on X509IssuerSerial. Our keystore has not only the correct certificates but also a lot of secret (3DES) keys.
&lt;br&gt;The method getAliasForX509Cert(String, BigInteger) &amp;nbsp;does not check if an alias is a certificate entry, resulting in a null return when the first alias found is a (secret) key.
&lt;br&gt;&lt;br&gt;Please wrap line 334-353 in version 1.5.8 as follows:
&lt;br&gt;if (keystore.isCertificate(alias) {
&lt;br&gt;&amp;nbsp; (line 334-353)
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;That should do it.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26283668&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26283668&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28WSS-218%29-getAliasForX509Cert%28String%2C-BigInteger%29-in-CryptoBase-returns-null-if-not-all-aliases-are-certificates-tp26283668p26283668.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26270886</id>
	<title>RE: help: directReference, senderVouches &amp; X509Certificate</title>
	<published>2009-11-09T10:00:18Z</published>
	<updated>2009-11-09T10:00:18Z</updated>
	<author>
		<name>vroom</name>
	</author>
	<content type="html">&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;I've tried setting the SIG_KEY_ID to &amp;quot;X509KeyIdentifier&amp;quot; and SKIKeyIdentifier and get an GeneralSecurityError that they are an &amp;nbsp;&amp;quot;Unsupported Key Identification&amp;quot;.
&lt;br&gt;&lt;br&gt;Is there some other approach you would recommend? &amp;nbsp;
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;-- Steve
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Colm O hEigeartaigh wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;&lt;br&gt;WSS4J does not currently support constructing a KeyInfo object that
&lt;br&gt;includes the X509 Cert in x509Data. According to the SOAP Message
&lt;br&gt;Security spec:
&lt;br&gt;&lt;br&gt;&amp;quot;However, in this specification, the use of &amp;lt;wsse:BinarySecurityToken&amp;gt;
&lt;br&gt;is the RECOMMENDED mechanism to carry key material if the key type
&lt;br&gt;contains binary data.&amp;quot;
&lt;br&gt;&lt;br&gt;You have a few other options to use for referring to a Key from a
&lt;br&gt;signature:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHand&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHand&lt;/a&gt;&lt;br&gt;lerConstants.html#SIG_KEY_ID
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHand&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHand&lt;/a&gt;&lt;br&gt;lerConstants.html#keyIdentifier
&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: vroom [mailto:vroom3@gmail.com] 
&lt;br&gt;Sent: 06 November 2009 23:25
&lt;br&gt;To: wss4j-dev@ws.apache.org
&lt;br&gt;Subject: help: directReference, senderVouches &amp; X509Certificate
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I have a integration test coming up and have been trying for a few days
&lt;br&gt;to
&lt;br&gt;figure out how to format a client-side SOAP message so it will be
&lt;br&gt;accepted
&lt;br&gt;by a service. &amp;nbsp;The example client message I've been shown requires
&lt;br&gt;senderVouches and has the clients' x509 certificate being transferred to
&lt;br&gt;the
&lt;br&gt;service in the KeyInfo like so:
&lt;br&gt;&lt;br&gt;keyInfo
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x509Data
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x509Certificate
&lt;br&gt;&lt;br&gt;The message I'm generating with senderVouches and directReference places
&lt;br&gt;provides:
&lt;br&gt;&lt;br&gt;&lt;br&gt;Wsse:securityTokenReference
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wsse:BinarySecurityToken in header
&lt;br&gt;&lt;br&gt;keyInfo
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SecurityTokenReference
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reference to BinarySecurityToken 
&lt;br&gt;&lt;br&gt;My requirement therefore is to remove the
&lt;br&gt;SecurityTokenReference/BinarySecurityToken from the header and add the
&lt;br&gt;x509certificate to the KeyInfo.
&lt;br&gt;&lt;br&gt;The software stack I'm using is:
&lt;br&gt;xFire 1.2.6
&lt;br&gt;Wss4j 1.5.1
&lt;br&gt;openSaml 1.0.1
&lt;br&gt;Xmlsecurity 1.3
&lt;br&gt;&lt;br&gt;I'm trying to get it upgraded but its a very long and tedious process.
&lt;br&gt;Will
&lt;br&gt;an upgrade supply this functionality?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;View this message in context:
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/help%3A-directReference%2C-senderVouches---X509Cer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/help%3A-directReference%2C-senderVouches---X509Cer&lt;/a&gt;&lt;br&gt;tificate-tp26230917p26230917.html
&lt;br&gt;Sent from the WSS4J mailing list archive at Nabble.com.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
&lt;br&gt;For additional commands, e-mail: wss4j-dev-help@ws.apache.org
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
&lt;br&gt;For additional commands, e-mail: wss4j-dev-help@ws.apache.org
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/help%3A-directReference%2C-senderVouches---X509Certificate-tp26230917p26270886.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26265926</id>
	<title>[jira] Commented: (WSS-213) Running TestWSSecurityNewST2 Fails - General security error (No certificates were found for SAML signature)</title>
	<published>2009-11-09T04:50:32Z</published>
	<updated>2009-11-09T04:50:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12774952#action_12774952&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12774952#action_12774952&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Colm O hEigeartaigh commented on WSS-213:
&lt;br&gt;-----------------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; How would I find out what types of SAML Assertions can be created and controlled through the properties files like (saml and crypto) as opposed to using the API directly?
&lt;br&gt;&lt;br&gt;Probably the best way is to look at the source:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://ws.apache.org/wss4j/xref/org/apache/ws/security/saml/SAMLIssuerFactory.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ws.apache.org/wss4j/xref/org/apache/ws/security/saml/SAMLIssuerFactory.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://ws.apache.org/wss4j/xref/org/apache/ws/security/saml/SAMLIssuerImpl.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ws.apache.org/wss4j/xref/org/apache/ws/security/saml/SAMLIssuerImpl.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; And it sounds like the type of SAML Token that I want to create is not possible this way
&lt;br&gt;&lt;br&gt;Yes, the range of SAML assertions that can be generated through the properties file is quite limited.
&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Running TestWSSecurityNewST2 Fails - General security error (No certificates were found for SAML signature)
&lt;br&gt;&amp;gt; -----------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: WSS-213
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-213&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-213&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: WSS4J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 1.5.8
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: OS = Ubuntu 9.04
&lt;br&gt;&amp;gt; Eclipse = JEE Eclipse, Galileo, STS, m2eclipse
&lt;br&gt;&amp;gt; JDK = java-6-sun-1.6.0.16, java-1.5.0-sun-1.5.0.19 (attempted as well)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Jay Blanton
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Ruchith Udayanga Fernando
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Critical
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: wss4j.saml-jks.tar.gz, wss4j.saml.tar.gz
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I pulled down the 1.5.8, 1.5.8-SNAPSHOT, and pulled down the trunk for 1.6.
&lt;br&gt;&amp;gt; I tried to build the trunk by doing a mvn package -Dmaven.test.skip=true (because quite a few unit tests fail).
&lt;br&gt;&amp;gt; Then I try to run TestWSSecurityNewST2 and it fails.
&lt;br&gt;&amp;gt; This is the exact issue I am having when trying to get my Spring Web Service Implementation to work with WSS4J's SAML Support (which it appears that Spring does not expose so I have to create a custom Interceptor).
&lt;br&gt;&amp;gt; I have working examples of a digital signature, encryption, and UsernameToken with Spring Web Services support for SAML, but the SAML is not working. &amp;nbsp;So I specifically went to the WSS4J examples to see if I could get those working first, and then working with my keystores, but the default test does not work for me that shipped with WSS4J.
&lt;br&gt;&amp;gt; [INFO] Scanning for projects...
&lt;br&gt;&amp;gt; [INFO] ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; [INFO] Building Ping Web Service Client
&lt;br&gt;&amp;gt; [INFO]
&lt;br&gt;&amp;gt; [INFO] Id: com.foo:ping.ws-saml:jar:0.0.1-SNAPSHOT
&lt;br&gt;&amp;gt; [INFO] task-segment: [package]
&lt;br&gt;&amp;gt; [INFO] ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; [INFO] [resources:resources]
&lt;br&gt;&amp;gt; [INFO] Using default encoding to copy filtered resources.
&lt;br&gt;&amp;gt; url = &lt;a href=&quot;http://repo1.maven.org/maven2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2&lt;/a&gt;&lt;br&gt;&amp;gt; Downloading: &lt;a href=&quot;http://repo1.maven.org/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&lt;/a&gt;&lt;br&gt;&amp;gt; url = &lt;a href=&quot;http://static.appfuse.org/repository&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://static.appfuse.org/repository&lt;/a&gt;&lt;br&gt;&amp;gt; Downloading: &lt;a href=&quot;http://static.appfuse.org/repository/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://static.appfuse.org/repository/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&lt;/a&gt;&lt;br&gt;&amp;gt; url = &lt;a href=&quot;http://repository.jboss.com/maven2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.jboss.com/maven2&lt;/a&gt;&lt;br&gt;&amp;gt; Downloading: &lt;a href=&quot;http://repository.jboss.com/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.jboss.com/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&lt;/a&gt;&lt;br&gt;&amp;gt; [INFO] [compiler:compile]
&lt;br&gt;&amp;gt; [INFO] Compiling 10 source files to /home/a068071/Public/Development/eclipse3.5-workspace/ping.ws-saml/target/classes
&lt;br&gt;&amp;gt; url = &lt;a href=&quot;http://repo1.maven.org/maven2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2&lt;/a&gt;&lt;br&gt;&amp;gt; Downloading: &lt;a href=&quot;http://repo1.maven.org/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&lt;/a&gt;&lt;br&gt;&amp;gt; url = &lt;a href=&quot;http://static.appfuse.org/repository&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://static.appfuse.org/repository&lt;/a&gt;&lt;br&gt;&amp;gt; Downloading: &lt;a href=&quot;http://static.appfuse.org/repository/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://static.appfuse.org/repository/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&lt;/a&gt;&lt;br&gt;&amp;gt; url = &lt;a href=&quot;http://repository.jboss.com/maven2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.jboss.com/maven2&lt;/a&gt;&lt;br&gt;&amp;gt; Downloading: &lt;a href=&quot;http://repository.jboss.com/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.jboss.com/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&lt;/a&gt;&lt;br&gt;&amp;gt; [INFO] [jibx:bind]
&lt;br&gt;&amp;gt; [INFO] Not running JiBX binding compiler (single-module mode) - no binding files
&lt;br&gt;&amp;gt; [INFO] [resources:testResources]
&lt;br&gt;&amp;gt; [INFO] Using default encoding to copy filtered resources.
&lt;br&gt;&amp;gt; url = &lt;a href=&quot;http://repo1.maven.org/maven2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2&lt;/a&gt;&lt;br&gt;&amp;gt; Downloading: &lt;a href=&quot;http://repo1.maven.org/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&lt;/a&gt;&lt;br&gt;&amp;gt; url = &lt;a href=&quot;http://static.appfuse.org/repository&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://static.appfuse.org/repository&lt;/a&gt;&lt;br&gt;&amp;gt; Downloading: &lt;a href=&quot;http://static.appfuse.org/repository/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://static.appfuse.org/repository/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&lt;/a&gt;&lt;br&gt;&amp;gt; url = &lt;a href=&quot;http://repository.jboss.com/maven2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.jboss.com/maven2&lt;/a&gt;&lt;br&gt;&amp;gt; Downloading: &lt;a href=&quot;http://repository.jboss.com/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.jboss.com/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&lt;/a&gt;&lt;br&gt;&amp;gt; [INFO] [compiler:testCompile]
&lt;br&gt;&amp;gt; [INFO] Compiling 4 source files to /home/a068071/Public/Development/eclipse3.5-workspace/ping.ws-saml/target/test-classes
&lt;br&gt;&amp;gt; url = &lt;a href=&quot;http://repo1.maven.org/maven2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2&lt;/a&gt;&lt;br&gt;&amp;gt; Downloading: &lt;a href=&quot;http://repo1.maven.org/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&lt;/a&gt;&lt;br&gt;&amp;gt; url = &lt;a href=&quot;http://static.appfuse.org/repository&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://static.appfuse.org/repository&lt;/a&gt;&lt;br&gt;&amp;gt; Downloading: &lt;a href=&quot;http://static.appfuse.org/repository/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://static.appfuse.org/repository/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&lt;/a&gt;&lt;br&gt;&amp;gt; url = &lt;a href=&quot;http://repository.jboss.com/maven2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.jboss.com/maven2&lt;/a&gt;&lt;br&gt;&amp;gt; Downloading: &lt;a href=&quot;http://repository.jboss.com/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.jboss.com/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom&lt;/a&gt;&lt;br&gt;&amp;gt; [INFO] [surefire:test]
&lt;br&gt;&amp;gt; [INFO] Surefire report directory: /home/a068071/Public/Development/eclipse3.5-workspace/ping.ws-saml/target/surefire-reports
&lt;br&gt;&amp;gt; DEBUG [security.util.Loader] Trying to find [crypto.properties] using sun.misc.Launcher$AppClassLoader@133056f class loader.
&lt;br&gt;&amp;gt; DEBUG [components.crypto.CryptoFactory] Using Crypto Engine [org.apache.ws.security.components.crypto.Merlin]
&lt;br&gt;&amp;gt; DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded
&lt;br&gt;&amp;gt; DEBUG [security.util.Loader] Trying to find [crypto.properties] using sun.misc.Launcher$AppClassLoader@133056f class loader.
&lt;br&gt;&amp;gt; DEBUG [components.crypto.CryptoFactory] Using Crypto Engine [org.apache.ws.security.components.crypto.Merlin]
&lt;br&gt;&amp;gt; DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded
&lt;br&gt;&amp;gt; DEBUG [security.util.Loader] Trying to find [crypto.properties] using sun.misc.Launcher$AppClassLoader@133056f class loader.
&lt;br&gt;&amp;gt; DEBUG [components.crypto.CryptoFactory] Using Crypto Engine [org.apache.ws.security.components.crypto.Merlin]
&lt;br&gt;&amp;gt; DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded
&lt;br&gt;&amp;gt; DEBUG [security.util.Loader] Trying to find [crypto.properties] using sun.misc.Launcher$AppClassLoader@133056f class loader.
&lt;br&gt;&amp;gt; DEBUG [components.crypto.CryptoFactory] Using Crypto Engine [org.apache.ws.security.components.crypto.Merlin]
&lt;br&gt;&amp;gt; DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded
&lt;br&gt;&amp;gt; -------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp;T E S T S
&lt;br&gt;&amp;gt; -------------------------------------------------------
&lt;br&gt;&amp;gt; Running wssec.TestWSSecurityNewST2
&lt;br&gt;&amp;gt; DEBUG [security.util.Loader] Trying to find [saml.properties] using sun.misc.Launcher$AppClassLoader@133056f class loader.
&lt;br&gt;&amp;gt; INFO [security.saml.SAMLIssuerFactory] Using Crypto Engine [org.apache.ws.security.saml.SAMLIssuerImpl]
&lt;br&gt;&amp;gt; DEBUG [security.util.Loader] Trying to find [crypto.properties] using sun.misc.Launcher$AppClassLoader@133056f class loader.
&lt;br&gt;&amp;gt; DEBUG [components.crypto.CryptoFactory] Using Crypto Engine [org.apache.ws.security.components.crypto.Merlin]
&lt;br&gt;&amp;gt; DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded
&lt;br&gt;&amp;gt; DEBUG [security.saml.SAMLIssuerImpl] Begin add SAMLAssertion token...
&lt;br&gt;&amp;gt; INFO [wssec.TestWSSecurityNewST2] Before SAMLSignedSenderVouches....
&lt;br&gt;&amp;gt; DEBUG [security.saml.WSSecSignatureSAML] Beginning ST signing...
&lt;br&gt;&amp;gt; DEBUG [security.util.Loader] Trying to find [saml.properties] using sun.misc.Launcher$AppClassLoader@133056f class loader.
&lt;br&gt;&amp;gt; INFO [security.saml.SAMLIssuerFactory] Using Crypto Engine [org.apache.ws.security.saml.SAMLIssuerImpl]
&lt;br&gt;&amp;gt; DEBUG [security.util.Loader] Trying to find [crypto.properties] using sun.misc.Launcher$AppClassLoader@133056f class loader.
&lt;br&gt;&amp;gt; DEBUG [components.crypto.CryptoFactory] Using Crypto Engine [org.apache.ws.security.components.crypto.Merlin]
&lt;br&gt;&amp;gt; DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded
&lt;br&gt;&amp;gt; DEBUG [security.saml.SAMLIssuerImpl] Begin add SAMLAssertion token...
&lt;br&gt;&amp;gt; INFO [wssec.TestWSSecurityNewST2] Before SAMLSignedSenderVouches....
&lt;br&gt;&amp;gt; DEBUG [security.saml.WSSecSignatureSAML] Beginning ST signing...
&lt;br&gt;&amp;gt; DEBUG [security.util.Loader] Trying to find [saml3.properties] using sun.misc.Launcher$AppClassLoader@133056f class loader.
&lt;br&gt;&amp;gt; INFO [security.saml.SAMLIssuerFactory] Using Crypto Engine [org.apache.ws.security.saml.SAMLIssuerImpl]
&lt;br&gt;&amp;gt; DEBUG [security.util.Loader] Trying to find [crypto.properties] using sun.misc.Launcher$AppClassLoader@133056f class loader.
&lt;br&gt;&amp;gt; DEBUG [components.crypto.CryptoFactory] Using Crypto Engine [org.apache.ws.security.components.crypto.Merlin]
&lt;br&gt;&amp;gt; DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded
&lt;br&gt;&amp;gt; DEBUG [security.saml.SAMLIssuerImpl] Begin add SAMLAssertion token...
&lt;br&gt;&amp;gt; INFO [wssec.TestWSSecurityNewST2] Before SAMLSignedSenderVouches....
&lt;br&gt;&amp;gt; DEBUG [security.saml.WSSecSignatureSAML] Beginning ST signing...
&lt;br&gt;&amp;gt; DEBUG [security.util.Loader] Trying to find [saml.properties] using sun.misc.Launcher$AppClassLoader@133056f class loader.
&lt;br&gt;&amp;gt; INFO [security.saml.SAMLIssuerFactory] Using Crypto Engine [org.apache.ws.security.saml.SAMLIssuerImpl]
&lt;br&gt;&amp;gt; DEBUG [security.util.Loader] Trying to find [crypto.properties] using sun.misc.Launcher$AppClassLoader@133056f class loader.
&lt;br&gt;&amp;gt; DEBUG [components.crypto.CryptoFactory] Using Crypto Engine [org.apache.ws.security.components.crypto.Merlin]
&lt;br&gt;&amp;gt; DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded
&lt;br&gt;&amp;gt; DEBUG [security.saml.SAMLIssuerImpl] Begin add SAMLAssertion token...
&lt;br&gt;&amp;gt; DEBUG [security.saml.WSSecSignatureSAML] Beginning ST signing...
&lt;br&gt;&amp;gt; Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.222 sec &amp;lt;&amp;lt;&amp;lt; FAILURE!
&lt;br&gt;&amp;gt; Results :
&lt;br&gt;&amp;gt; Tests in error:
&lt;br&gt;&amp;gt; &amp;nbsp; testSAMLSignedSenderVouches(wssec.TestWSSecurityNewST2)
&lt;br&gt;&amp;gt; &amp;nbsp; testSAMLSignedSenderVouchesKeyIdentifier(wssec.TestWSSecurityNewST2)
&lt;br&gt;&amp;gt; &amp;nbsp; testDefaultIssuerClass(wssec.TestWSSecurityNewST2)
&lt;br&gt;&amp;gt; &amp;nbsp; testWSS62(wssec.TestWSSecurityNewST2)
&lt;br&gt;&amp;gt; Tests run: 5, Failures: 0, Errors: 5, Skipped: 0
&lt;br&gt;&amp;gt; [ERROR]
&lt;br&gt;&amp;gt; Mojo:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test
&lt;br&gt;&amp;gt; FAILED for project:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; com.foo:ping.ws-saml:jar:0.0.1-SNAPSHOT
&lt;br&gt;&amp;gt; Reason:
&lt;br&gt;&amp;gt; There are test failures.
&lt;br&gt;&amp;gt; Please refer to /home/jay/Public/Development/eclipse3.5-workspace/ping.ws-saml/target/surefire-reports for the individual test results.
&lt;br&gt;&amp;gt; [INFO] ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; [INFO] For more information, run with the -e flag
&lt;br&gt;&amp;gt; [INFO] ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; [INFO] BUILD FAILED
&lt;br&gt;&amp;gt; [INFO] ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; [INFO] Total time: 16 seconds
&lt;br&gt;&amp;gt; [INFO] Finished at: Wed Oct 07 13:29:03 PDT 2009
&lt;br&gt;&amp;gt; [INFO] Final Memory: 4M/25M
&lt;br&gt;&amp;gt; [INFO] ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Here is the errors from the test report:
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Test set: wssec.TestWSSecurityNewST2
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.731 sec &amp;lt;&amp;lt;&amp;lt; FAILURE!
&lt;br&gt;&amp;gt; testSAMLSignedSenderVouches(wssec.TestWSSecurityNewST2) &amp;nbsp;Time elapsed: 0.486 sec &amp;nbsp;&amp;lt;&amp;lt;&amp;lt; ERROR!
&lt;br&gt;&amp;gt; org.apache.ws.security.WSSecurityException: General security error (No certificates were found for SAML signature)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at wssec.TestWSSecurityNewST2.testSAMLSignedSenderVouches(TestWSSecurityNewST2.java:114)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:585)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestCase.runTest(TestCase.java:168)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestCase.runBare(TestCase.java:134)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestResult$1.protect(TestResult.java:110)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestResult.runProtected(TestResult.java:128)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestResult.run(TestResult.java:113)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestCase.run(TestCase.java:124)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestSuite.runTest(TestSuite.java:232)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestSuite.run(TestSuite.java:227)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:585)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
&lt;br&gt;&amp;gt; testSAMLSignedSenderVouchesKeyIdentifier(wssec.TestWSSecurityNewST2) &amp;nbsp;Time elapsed: 0.064 sec &amp;nbsp;&amp;lt;&amp;lt;&amp;lt; ERROR!
&lt;br&gt;&amp;gt; org.apache.ws.security.WSSecurityException: General security error (No certificates were found for SAML signature)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at wssec.TestWSSecurityNewST2.testSAMLSignedSenderVouchesKeyIdentifier(TestWSSecurityNewST2.java:156)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:585)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestCase.runTest(TestCase.java:168)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestCase.runBare(TestCase.java:134)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestResult$1.protect(TestResult.java:110)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestResult.runProtected(TestResult.java:128)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestResult.run(TestResult.java:113)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestCase.run(TestCase.java:124)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestSuite.runTest(TestSuite.java:232)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestSuite.run(TestSuite.java:227)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:585)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
&lt;br&gt;&amp;gt; testDefaultIssuerClass(wssec.TestWSSecurityNewST2) &amp;nbsp;Time elapsed: 0.156 sec &amp;nbsp;&amp;lt;&amp;lt;&amp;lt; ERROR!
&lt;br&gt;&amp;gt; org.apache.ws.security.WSSecurityException: General security error (No certificates were found for SAML signature)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at wssec.TestWSSecurityNewST2.testDefaultIssuerClass(TestWSSecurityNewST2.java:200)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:585)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestCase.runTest(TestCase.java:168)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestCase.runBare(TestCase.java:134)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestResult$1.protect(TestResult.java:110)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestResult.runProtected(TestResult.java:128)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestResult.run(TestResult.java:113)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestCase.run(TestCase.java:124)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestSuite.runTest(TestSuite.java:232)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestSuite.run(TestSuite.java:227)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:585)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
&lt;br&gt;&amp;gt; testWSS62(wssec.TestWSSecurityNewST2) &amp;nbsp;Time elapsed: 0.011 sec &amp;nbsp;&amp;lt;&amp;lt;&amp;lt; ERROR!
&lt;br&gt;&amp;gt; org.apache.ws.security.WSSecurityException: General security error (No certificates were found for SAML signature)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at wssec.TestWSSecurityNewST2.testWSS62(TestWSSecurityNewST2.java:241)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:585)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestCase.runTest(TestCase.java:168)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestCase.runBare(TestCase.java:134)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestResult$1.protect(TestResult.java:110)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestResult.runProtected(TestResult.java:128)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestResult.run(TestResult.java:113)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestCase.run(TestCase.java:124)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestSuite.runTest(TestSuite.java:232)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at junit.framework.TestSuite.run(TestSuite.java:227)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:585)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) &amp;nbsp;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265926&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265926&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28WSS-213%29-Running-TestWSSecurityNewST2-Fails---General-security-error-%28No-certificates-were-found-for-SAML-signature%29-tp26000134p26265926.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26265842</id>
	<title>RE: help: directReference, senderVouches &amp; X509Certificate</title>
	<published>2009-11-09T04:44:27Z</published>
	<updated>2009-11-09T04:44:27Z</updated>
	<author>
		<name>Colm O hEigeartaigh</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;WSS4J does not currently support constructing a KeyInfo object that
&lt;br&gt;includes the X509 Cert in x509Data. According to the SOAP Message
&lt;br&gt;Security spec:
&lt;br&gt;&lt;br&gt;&amp;quot;However, in this specification, the use of &amp;lt;wsse:BinarySecurityToken&amp;gt;
&lt;br&gt;is the RECOMMENDED mechanism to carry key material if the key type
&lt;br&gt;contains binary data.&amp;quot;
&lt;br&gt;&lt;br&gt;You have a few other options to use for referring to a Key from a
&lt;br&gt;signature:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHand&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHand&lt;/a&gt;&lt;br&gt;lerConstants.html#SIG_KEY_ID
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHand&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHand&lt;/a&gt;&lt;br&gt;lerConstants.html#keyIdentifier
&lt;br&gt;&lt;br&gt;Colm.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: vroom [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265842&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vroom3@...&lt;/a&gt;] 
&lt;br&gt;Sent: 06 November 2009 23:25
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265842&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev@...&lt;/a&gt;
&lt;br&gt;Subject: help: directReference, senderVouches &amp; X509Certificate
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I have a integration test coming up and have been trying for a few days
&lt;br&gt;to
&lt;br&gt;figure out how to format a client-side SOAP message so it will be
&lt;br&gt;accepted
&lt;br&gt;by a service. &amp;nbsp;The example client message I've been shown requires
&lt;br&gt;senderVouches and has the clients' x509 certificate being transferred to
&lt;br&gt;the
&lt;br&gt;service in the KeyInfo like so:
&lt;br&gt;&lt;br&gt;keyInfo
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x509Data
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x509Certificate
&lt;br&gt;&lt;br&gt;The message I'm generating with senderVouches and directReference places
&lt;br&gt;provides:
&lt;br&gt;&lt;br&gt;&lt;br&gt;Wsse:securityTokenReference
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wsse:BinarySecurityToken in header
&lt;br&gt;&lt;br&gt;keyInfo
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SecurityTokenReference
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reference to BinarySecurityToken 
&lt;br&gt;&lt;br&gt;My requirement therefore is to remove the
&lt;br&gt;SecurityTokenReference/BinarySecurityToken from the header and add the
&lt;br&gt;x509certificate to the KeyInfo.
&lt;br&gt;&lt;br&gt;The software stack I'm using is:
&lt;br&gt;xFire 1.2.6
&lt;br&gt;Wss4j 1.5.1
&lt;br&gt;openSaml 1.0.1
&lt;br&gt;Xmlsecurity 1.3
&lt;br&gt;&lt;br&gt;I'm trying to get it upgraded but its a very long and tedious process.
&lt;br&gt;Will
&lt;br&gt;an upgrade supply this functionality?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;View this message in context:
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/help%3A-directReference%2C-senderVouches---X509Cer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/help%3A-directReference%2C-senderVouches---X509Cer&lt;/a&gt;&lt;br&gt;tificate-tp26230917p26230917.html
&lt;br&gt;Sent from the WSS4J mailing list archive at Nabble.com.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265842&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265842&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265842&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265842&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/help%3A-directReference%2C-senderVouches---X509Certificate-tp26230917p26265842.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26259101</id>
	<title>how to specify keyInfo content type?</title>
	<published>2009-11-08T15:13:49Z</published>
	<updated>2009-11-08T15:13:49Z</updated>
	<author>
		<name>vroom</name>
	</author>
	<content type="html">&lt;br&gt;How do you configure wss4j/opensaml to provide a keyInfo containing something other than the default BST? &amp;nbsp;In this case I'm looking for a x509certificate. &amp;nbsp;I'm currently stuck with wss4j 1.5.1 and opensaml 1.0.1 (hopefully not for much longer).
&lt;br&gt;&lt;br&gt;Thanks</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-specify-keyInfo-content-type--tp26259101p26259101.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26230917</id>
	<title>help: directReference, senderVouches &amp; X509Certificate</title>
	<published>2009-11-06T15:24:58Z</published>
	<updated>2009-11-06T15:24:58Z</updated>
	<author>
		<name>vroom</name>
	</author>
	<content type="html">&lt;br&gt;I have a integration test coming up and have been trying for a few days to figure out how to format a client-side SOAP message so it will be accepted by a service. &amp;nbsp;The example client message I've been shown requires senderVouches and has the clients' x509 certificate being transferred to the service in the KeyInfo like so:
&lt;br&gt;&lt;br&gt;keyInfo
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x509Data
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x509Certificate
&lt;br&gt;&lt;br&gt;The message I'm generating with senderVouches and directReference places provides:
&lt;br&gt;&lt;br&gt;&lt;br&gt;Wsse:securityTokenReference
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wsse:BinarySecurityToken in header
&lt;br&gt;&lt;br&gt;keyInfo
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SecurityTokenReference
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reference to BinarySecurityToken 
&lt;br&gt;&lt;br&gt;My requirement therefore is to remove the SecurityTokenReference/BinarySecurityToken from the header and add the x509certificate to the KeyInfo.
&lt;br&gt;&lt;br&gt;The software stack I'm using is:
&lt;br&gt;xFire 1.2.6
&lt;br&gt;Wss4j 1.5.1
&lt;br&gt;openSaml 1.0.1
&lt;br&gt;Xmlsecurity 1.3
&lt;br&gt;&lt;br&gt;I'm trying to get it upgraded but its a very long and tedious process. Will an upgrade supply this functionality?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/help%3A-directReference%2C-senderVouches---X509Certificate-tp26230917p26230917.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26230951</id>
	<title>[jira] Resolved: (WSS-217) Add ability to specify a reference to an absolute URI in the derived key functionality</title>
	<published>2009-11-06T03:57:32Z</published>
	<updated>2009-11-06T03:57:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Colm O hEigeartaigh resolved WSS-217.
&lt;br&gt;-------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Resolution: Fixed
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Add ability to specify a reference to an absolute URI in the derived key functionality
&lt;br&gt;&amp;gt; --------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: WSS-217
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/WSS-217&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/WSS-217&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: WSS4J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: WSS4J Core
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 1.5.8
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Colm O hEigeartaigh
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Colm O hEigeartaigh
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 1.5.9, 1.6
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Currently, WSSecDKSign and WSSecDKEncrypt only allow references using a relative URI. This is problematic for the case of refering to a SecurityContextToken via the wsc:Identifier, which must be an absolute reference.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26230951&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26230951&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wss4j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28WSS-217%29-Add-ability-to-specify-a-reference-to-an-absolute-URI-in-the-derived-key-functionality-tp26230345p26230951.html" />
</entry>

</feed>
