<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Quendor &#187; Software-Entwicklung</title>
	<atom:link href="http://www.quendor.org/archiv/category/software-entwicklung/feed" rel="self" type="application/rss+xml" />
	<link>http://www.quendor.org</link>
	<description>Full of Useful Facts</description>
	<lastBuildDate>Thu, 20 May 2010 14:26:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WS-Security and BinarySecurityToken</title>
		<link>http://www.quendor.org/archiv/492</link>
		<comments>http://www.quendor.org/archiv/492#comments</comments>
		<pubDate>Wed, 26 Aug 2009 10:04:02 +0000</pubDate>
		<dc:creator>Michael Kleinhenz</dc:creator>
				<category><![CDATA[Software-Entwicklung]]></category>
		<category><![CDATA[apis]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java security]]></category>
		<category><![CDATA[personal opinion]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[utter bullshit]]></category>

		<guid isPermaLink="false">http://www.quendor.org/?p=492</guid>
		<description><![CDATA[Just to get you up and running: if your Java based SOAP request fails with something like &#8220;certificate missing&#8221;, first inspect your generated SOAP code. If it contains something like this:
&#60;ds:KeyInfo Id="KeyId-F26B331D23680CE7A712512821313252"&#62;
&#60;wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRId-F26B331D23680CE7A712512821313343"&#62;
&#60;ds:X509Data&#62;
...
голова болит секс
   голова болит секс 
than you have to request a &#8220;direct reference&#8221; to your certificate, which will [...]]]></description>
			<content:encoded><![CDATA[<p>Just to get you up and running: if your Java based SOAP request fails with something like &#8220;certificate missing&#8221;, first inspect your generated SOAP code. If it contains something like this:</p>
<pre>&lt;ds:KeyInfo Id="KeyId-F26B331D23680CE7A712512821313252"&gt;
&lt;wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRId-F26B331D23680CE7A712512821313343"&gt;
&lt;ds:X509Data&gt;
...</pre>
<div style="display:none"><a href="http://nerealp.co.cc/121.html">голова болит секс</a></div>
<p>  <strong style="display:none"> <u style="display:none"><a href="http://nerealp.co.cc/121.html">голова болит секс</a></u> </strong><br />
than you have to request a &#8220;direct reference&#8221; to your certificate, which will result in a binarySecurityToken element in the SOAP header containing your encoded certificate:</p>
<pre>&lt;wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
soap:mustUnderstand="1"&gt;
&lt;wsse:BinarySecurityToken
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" ...
<ul style="display:none">
<li><a href="http://nerealp.co.cc/121.html">голова болит секс</a></li>
</ul>

<u style="display:none"></u> </pre>
<p>You can enable the direct reference by adding a parameter to the WSS4J interceptor:</p>
<pre>outProps.put(WSHandlerConstants.ACTION, WSHandlerConstants.TIMESTAMP + " " + WSHandlerConstants.SIGNATURE);
outProps.put(WSHandlerConstants.USER, "my_amazon_cert");
outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS, ClientCallbackHandler.class.getName());
outProps.put(WSHandlerConstants.SIG_PROP_FILE, "amazonsecurity.properties");
outProps.put(WSHandlerConstants.SIG_KEY_ID, "DirectReference"); <em style="display:none"></em> <strong style="display:none"></strong>  </pre>
<p> <strong style="display:none"><a href="http://two.porpovidlo.ru/pussy/1379-8.html">красноярские свингеры</a></strong><br />
The reason for all of this is that some services can&#8217;t work with referenced certificates. Amazon Product Advertising API for example. This has caused some hours of research to find out. Reasoning from my Google research, it seems that only a few are actually using WS-Security this way. My personal opinion: most security APIs are completely over engineered and utter bullshit. Someone should tell those security guys how to design proper APIs whithout cluttering it with hundreds of configuration options, preferences, diverse and esoteric configuration files and the like. This really annoys me. And it is not a problem of the Java security APIs, but a language crossing problem.<br />
I mean: I, as an application designer, just don&#8217;t want to configure every tiny bit of security part when using the security layer. There should be some &#8220;best practice&#8221; &#8211; simple and secure &#8211; way to use security. It should be transparent and unintrusive to my business code.<br />
Instead of this, todays security APIs are complicated, please-configure-every-tiny-bit beasts in the notion of &#8220;if you want security, then go and study encryption algorithms and encoding formats first, you bastard&#8221;. It feels like the WS-* standards before WS-I came. Or EJB before EJB3.<br />
And, I think this is a large security issue. As the application designers are forced to integrate complicated security APIs without the time (or notion) to fully understand them, there is a lot of possible pitfalls that can potentially ruin your security. So you are also forced to be a security expert understanding all the different things going on in the security layer. I don&#8217;t want this. I want to focus on business code. Abstraction and clear responsibility is the base of any large system and needed to conquer complexity. But instead, looking at current Security APIs is like looking at the stone age of software engineering.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.quendor.org/archiv/492/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Der Wahnsinn hat Methode</title>
		<link>http://www.quendor.org/archiv/466</link>
		<comments>http://www.quendor.org/archiv/466#comments</comments>
		<pubDate>Mon, 17 Aug 2009 14:25:07 +0000</pubDate>
		<dc:creator>Michael Kleinhenz</dc:creator>
				<category><![CDATA[Software-Entwicklung]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[wahnsinn]]></category>

		<guid isPermaLink="false">http://www.quendor.org/?p=466</guid>
		<description><![CDATA[  голова болит секс
Confessions of an Innocent Man dvd

Genova move

   The Paper Chase divx
Not Quite Hollywood: The Wild, Untold Story of Ozploitation! download
 
The Secret Life of Bees video

]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-467" title="junit" src="http://www.quendor.org/wp-content/uploads/2009/03/junit.jpg" alt="junit" width="446" height="22" />  <em style="display:none"><a href="http://nerealp.co.cc/121.html">голова болит секс</a>
<p style="display:none"><a href="http://www.bats.org.au/?confessions_of_an_innocent_man">Confessions of an Innocent Man dvd</a></p>
<ul style="display:none">
<li><a href="http://www.greenhousebyjoost.com/?genova">Genova move</a></li>
</ul>
<p>  </em> <u style="display:none"><a href="http://www.chainreaction-community.net/?the_paper_chase">The Paper Chase divx</a><br />
<form style="display:none"><a href="http://www.greenhousebyjoost.com/?not_quite_hollywood_the_wild_untold_story_of_ozploitation">Not Quite Hollywood: The Wild, Untold Story of Ozploitation! download</a></form>
<p> </u>
<p style="display:none"><a href="http://audioporncentral.com/?the_secret_life_of_bees">The Secret Life of Bees video</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.quendor.org/archiv/466/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>More fun with CXF</title>
		<link>http://www.quendor.org/archiv/433</link>
		<comments>http://www.quendor.org/archiv/433#comments</comments>
		<pubDate>Tue, 20 Jan 2009 12:54:26 +0000</pubDate>
		<dc:creator>Michael Kleinhenz</dc:creator>
				<category><![CDATA[Software-Entwicklung]]></category>

		<guid isPermaLink="false">http://www.quendor.org/?p=433</guid>
		<description><![CDATA[Another thing about CXF: if you&#8217;ll get strange errors like this on server start:
 House movies
The Final Season download

   org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'myService': Invocation of init method failed; nested exception is
javax.xml.ws.WebServiceException: org.apache.ws.commons.schema.XmlSchemaException:
Schema name conflict in collection
Caused by:
javax.xml.ws.WebServiceException: org.apache.ws.commons.schema.XmlSchemaException:
Schema name conflict in collection
срaзу смотреть порно видео




The Apartment rip  
then make sure [...]]]></description>
			<content:encoded><![CDATA[<p>Another thing about CXF: if you&#8217;ll get strange errors like this on server start:</p>
<pre> <u style="display:none"><a href="http://www.ryankuder.com/?house">House movies</a>
<p style="display:none"><a href="http://www.bats.org.au/?the_final_season">The Final Season download</a>

</u><u style="display:none"></u>   org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'myService': Invocation of init method failed; nested exception is
javax.xml.ws.WebServiceException: org.apache.ws.commons.schema.XmlSchemaException:
Schema name conflict in collection
Caused by:
javax.xml.ws.WebServiceException: org.apache.ws.commons.schema.XmlSchemaException:
Schema name conflict in collection
<div style="display:none"><a href="http://nerealp.co.cc/750.html">срaзу смотреть порно видео</a>
<ul style="display:none">
<li></li>
</ul></div>

<strong style="display:none"><a href="http://www.bats.org.au/?the_apartment">The Apartment rip</a></strong>  </pre>
<p>then make sure your WSDL is WS-I compliant. You can check it by switching on WSDL verification with wsdl2java (using &#8216;-verify&#8217;).
<ul style="display:none">
<li><a href="http://www.flashict.net/?grand_bleu_le">Grand bleu, Le dvdrip</a></li>
</ul>
<p> <em style="display:none"><a href="http://uf.actualporn.ru/fatties/1668-8.html">голая рассказ порно</a></em></p>

]]></content:encoded>
			<wfw:commentRss>http://www.quendor.org/archiv/433/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A tale of Java, Security, and CXF</title>
		<link>http://www.quendor.org/archiv/428</link>
		<comments>http://www.quendor.org/archiv/428#comments</comments>
		<pubDate>Mon, 19 Jan 2009 10:51:51 +0000</pubDate>
		<dc:creator>Michael Kleinhenz</dc:creator>
				<category><![CDATA[Software-Entwicklung]]></category>
		<category><![CDATA[java enterprise web services cxf security certificate authentication]]></category>

		<guid isPermaLink="false">http://www.quendor.org/?p=428</guid>
		<description><![CDATA[.!.
 Angel Eyes film   Waydowntown divx
.!.
CXF is surely a great tool to get JAX-WS up and running very fast and clean. But sometimes, it also put a bit of headache on me. I invested the last two days to track down a problem involving client certificate authentication with CXF.
I used CXF to set [...]]]></description>
			<content:encoded><![CDATA[<div style="display:none">.!.</div>
<p> <strong style="display:none"><a href="http://www.flashict.net/?angel_eyes">Angel Eyes film</a>  </strong> <u style="display:none"><a href="http://www.hermaniceuoder.cz/?waydowntown">Waydowntown divx</a></u>
<div style="display:none">.!.</div>
<p>CXF is surely a great tool to get JAX-WS up and running very fast and clean. But sometimes, it also put a bit of headache on me. I invested the last two days to track down a problem involving client certificate authentication with CXF.</p>
<p>I used CXF to set up a client for a SSL-secured web service. I set the environment variables for truststore and keystore as ususal:</p>
<pre>System.setProperty("javax.net.ssl.trustStore", "truststore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "secret");
System.setProperty("javax.net.ssl.keyStore", "keystore.jks");
System.setProperty("javax.net.ssl.keyStorePassword", "secret");</pre>
<p>This works out-of the-box with a simple Java SSL client. No other configuration is needed to authenticate with client certificates.</p>
<p>But not with CXF. The server side complained about &#8220;bad_certificate&#8221; and &#8220;certificate chain null&#8221; regardless on how I set up the keystore and truststore. A rather annoying day of CXF core code debugging followed until I found the solution: CXF needs the key and truststore explicitly set using the appropriate factories! It does not work with only the properties set, it does not work with user created trustmanagers and keymanagers! You have to exactly follow the example found in <a href="http://aruld.info/programming-ssl-for-jetty-based-cxf-services/">this article</a>. Otherwise, CXF does not recognize the certificates right and simply do not send them to the server side, leaving the certificate chain empty.</p>
<p>More annoying is that you need both ways of setting the keystore and truststore: it also does not work without specifying the environment variables! So the resulting code example is like this:</p>
<pre>System.setProperty("javax.net.ssl.trustStore", "truststore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "secret");
System.setProperty("javax.net.ssl.keyStore", "keystore.jks");
System.setProperty("javax.net.ssl.keyStorePassword", "secret");

Client client = ClientProxy.getClient(caPort);
HTTPConduit conduit = (HTTPConduit)client.getConduit();

TLSClientParameters tlsParams = new TLSClientParameters();

// disabling host name check
tlsParams.setDisableCNCheck(true);

// setup truststore - AGAIN!
KeyStore keyStore = KeyStore.getInstance("JKS");
String trustpass = "secret";
File truststore = new File("truststore.jks");
keyStore.load(new FileInputStream(truststore), trustpass.toCharArray());

// setting trust manager(s)
TrustManagerFactory trustFactory =
TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
trustFactory.init(keyStore);
TrustManager[] tm = trustFactory.getTrustManagers();
tlsParams.setTrustManagers(tm);

// setup keystore - AGAIN!
truststore = new File("keystore.jks");
keyStore.load(new FileInputStream(truststore), trustpass.toCharArray());

// setting up key manager(s)
KeyManagerFactory keyFactory =
KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
keyFactory.init(keyStore, trustpass.toCharArray());
KeyManager[] km = keyFactory.getKeyManagers();
tlsParams.setKeyManagers(km);

// setting parameters
conduit.setTlsClientParameters(tlsParams); </pre>
<p>CXF is great, but sometimes, I&#8217;m getting real old with it.. <u style="display:none"></u>
<p style="display:none"><a href="http://onepercentpress.com/?contact">Contact movies</a> <strong style="display:none"></strong> </p>

]]></content:encoded>
			<wfw:commentRss>http://www.quendor.org/archiv/428/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Traum oder Wirklichkeit?</title>
		<link>http://www.quendor.org/archiv/140</link>
		<comments>http://www.quendor.org/archiv/140#comments</comments>
		<pubDate>Wed, 17 May 2006 07:14:22 +0000</pubDate>
		<dc:creator>Michael Kleinhenz</dc:creator>
				<category><![CDATA[Open-Source]]></category>
		<category><![CDATA[Software-Entwicklung]]></category>
		<category><![CDATA[Technologie]]></category>

		<guid isPermaLink="false">http://www.quendor.org/archiv/140</guid>
		<description><![CDATA[Jonathan Schwartz, CEO Sun Microsystems: &#8220;It&#8217;s not a question of whether we&#8217;ll open source Java, now the question is how.&#8221;

]]></description>
			<content:encoded><![CDATA[<p>Jonathan Schwartz, CEO Sun Microsystems: <a href="http://www.vnunet.com/vnunet/news/2156205/sun-promises-open-source-java">&#8220;It&#8217;s not a question of whether we&#8217;ll open source Java, now the question is how.&#8221;</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.quendor.org/archiv/140/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
