<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Kathir&#039;s Blog</title>
	<atom:link href="http://bkathir.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bkathir.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 21 Jun 2010 12:55:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bkathir.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Kathir&#039;s Blog</title>
		<link>http://bkathir.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bkathir.wordpress.com/osd.xml" title="Kathir&#039;s Blog" />
	<atom:link rel='hub' href='http://bkathir.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Custom Policy Issue in Fusion 11g</title>
		<link>http://bkathir.wordpress.com/2010/06/21/custom-policy-issue-in-fusion-11g/</link>
		<comments>http://bkathir.wordpress.com/2010/06/21/custom-policy-issue-in-fusion-11g/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 12:55:43 +0000</pubDate>
		<dc:creator>kathir</dc:creator>
				<category><![CDATA[SOA]]></category>

		<guid isPermaLink="false">http://bkathir.wordpress.com/?p=68</guid>
		<description><![CDATA[In my SOA services 10g to 11g migration study I’ve struck in the custom policy part. I&#8217;ve followed all the steps what oracle explained in the below url Creating Custom Assertions but whenever I’m trying to import the polcy file(step 6) in enterprise manager, I’m getting error. Finally I found where the issue is. In their [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=68&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my SOA services 10g to 11g migration study I’ve struck in the custom policy part.<br />
I&#8217;ve followed all the steps what oracle explained in the below url</p>
<p><a href="http://download.oracle.com/docs/cd/E15523_01/web.1111/b32511/custom_assertions.htm#CIHFGJAG">Creating Custom Assertions</a></p>
<p>but whenever I’m trying to import the polcy file(step 6) in enterprise manager, I’m getting error.</p>
<p>Finally I found where the issue is. In their document (step 4) they simply mentioned to create jar file, but the structure of the jar should like below</p>
<pre class="brush: java;">
sampleassertion/IpAssertionExecutor.class
META-INF/MANIFEST.MF
META-INF/policies/
META-INF/policies/oracle/
META-INF/policies/oracle/ip_assertion_policy
META-INF/policy-config.xml
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bkathir.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bkathir.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bkathir.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bkathir.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bkathir.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bkathir.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bkathir.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bkathir.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bkathir.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bkathir.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bkathir.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bkathir.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bkathir.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bkathir.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=68&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bkathir.wordpress.com/2010/06/21/custom-policy-issue-in-fusion-11g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3b802d274f1dd4cfeb83c01bba7fe549?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kathir</media:title>
		</media:content>
	</item>
		<item>
		<title>Sweet Intro about WS-*</title>
		<link>http://bkathir.wordpress.com/2010/01/12/sweet-intro-about-ws/</link>
		<comments>http://bkathir.wordpress.com/2010/01/12/sweet-intro-about-ws/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 06:12:36 +0000</pubDate>
		<dc:creator>kathir</dc:creator>
				<category><![CDATA[SOA]]></category>

		<guid isPermaLink="false">http://bkathir.wordpress.com/?p=51</guid>
		<description><![CDATA[WS-Security WS-Security defines how to attach XML Signature and XML Encryption headers to SOAP messages WS-Security provides profiles for 5 security tokens          1) Username (with opt. pwd digest)          2) X.509 cert          3) Kerberos ticket          4) SAML assertion          5) REL (Rights Expression Language) document WS-Trust Defines a framework for         &#62; Issuing, renewing, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=51&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;">WS-Security</span></strong></p>
<li>WS-Security defines how to attach XML Signature and XML Encryption headers to SOAP messages</li>
<li>WS-Security provides profiles for 5 security tokens</li>
<p>         1) Username (with opt. pwd digest)<br />
         2) X.509 cert<br />
         3) Kerberos ticket<br />
         4) SAML assertion<br />
         5) REL (Rights Expression Language) document</p>
<p><strong><span style="text-decoration:underline;">WS-Trust</span></strong></p>
<li>Defines a framework for</li>
<p>        &gt; Issuing, renewing, and validating security tokens<br />
                   &gt;STS (Security Token Service)<br />
                   &gt;Tokens are used by WS-Security<br />
        &gt; Brokering trust relationships within different trust domains</p>
<li>An application may span multiple security domains where each domain has its own Security Token Service (STS)</li>
<li>These multiple STSs can be chained with each other to broker trust among multiple security domains</li>
<li>This pattern is called “brokered trust”</li>
<p> </p>
<p><strong><span style="text-decoration:underline;">WS-SecureConversation</span></strong></p>
<li>WS-SecureConversation plays the same role in messagelevel security that SSL plays at the transport level</li>
<li>WS-SecureConversation defines the creation and sharing of security contexts between communicating parties</li>
<p>         &gt; The (SCT) element supports the requirements of security contexts</p>
<li>An SCT involves a shared secret used to sign and/or encrypt messages</li>
<p>         &gt; Derived keys are used for signing and encrypting messages associated with the security context<br />
         &gt; WS-SecureConversation defines how derived keys are computed and passed</p>
<p><strong><span style="text-decoration:underline;">WS-Policy</span></strong></p>
<li>WS-Policy enables one to specify policy information that can be used to access web services applications</li>
<li>A policy is expressed as one or more policy assertions</li>
<li>A policy assertion represents a capability or a requirement</li>
<li>For example, a policy assertion may stipulate that a request to a web service be encrypted, or a policy assertion can define the maximum message size that a web service can accept</li>
<li>The meaning of each assertion is specific to a particular domain, for example, security, reliability, or privacy</li>
<p> </p>
<p><strong><span style="text-decoration:underline;">WS-PolicyAttachment</span></strong></p>
<li>WS-PolicyAttachment defines how (WS-Policy) policies are attached to web services</li>
<li>Policies can be bound to WSDL or UDDI</li>
<pre class="brush: xml;">
&lt;definitions&gt;
...
&lt;binding name=&quot;StockQuoteWebServiceSoapBinding&quot; ...&gt;
 &lt;wsp:PolicyReference xmlns:… URI=&quot;#SecureMessagePolicy&quot;/&gt;
&lt;/binding&gt;

&lt;wsp:Policy wsu:Id=&quot;SecureMessagePolicy&quot;... &gt;
  &lt;sp:SignedParts&gt;
     &lt;sp:Body/&gt;
  &lt;/sp:SignedParts&gt;
  &lt;sp:EncryptedParts&gt;
    &lt;sp:Body/&gt;
  &lt;/sp:EncryptedParts&gt;
&lt;/wsp:Policy&gt;
...
&lt;/definitions&gt;
</pre>
<p><strong></strong></p>
<p><strong></strong></p>
<p><strong><span style="text-decoration:underline;">WS-MetadataExchange</span></strong></p>
<li>Defines how a client can request the metadata it needs to access and communicate with a web service endpoint</li>
<li>Metadata can be WSDL, WS-Policy, schema</li>
<li>Uses WS-Addressing to identify endpoints</li>
<li>WS-MetadaExchange works as follows:</li>
<p>      &gt; A requester sends a GetMetadata request message to an endpoint<br />
      &gt; The endpoint replies with a GetMetadata response message including a reference to the metadata section requested</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bkathir.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bkathir.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bkathir.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bkathir.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bkathir.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bkathir.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bkathir.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bkathir.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bkathir.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bkathir.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bkathir.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bkathir.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bkathir.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bkathir.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=51&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bkathir.wordpress.com/2010/01/12/sweet-intro-about-ws/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3b802d274f1dd4cfeb83c01bba7fe549?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kathir</media:title>
		</media:content>
	</item>
		<item>
		<title>Enterprise Integeration Pattern related Frameworks</title>
		<link>http://bkathir.wordpress.com/2009/12/30/enterprise-integeration-pattern-related-frameworks/</link>
		<comments>http://bkathir.wordpress.com/2009/12/30/enterprise-integeration-pattern-related-frameworks/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 11:25:47 +0000</pubDate>
		<dc:creator>kathir</dc:creator>
				<category><![CDATA[SOA]]></category>

		<guid isPermaLink="false">http://bkathir.wordpress.com/?p=46</guid>
		<description><![CDATA[Apache Camel is a powerful open source integration framework based on known Enterprise Integration Patterns with powerful Bean Integration. Apache camel home page:http://camel.apache.org/ EIS Notations Apache Camel can be used as a routing and mediation engine for the following projects: Apache ServiceMix which is the most popular and powerful distributed open source ESB and JBI [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=46&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Apache Camel</strong> is a powerful open source integration framework based on known Enterprise Integration Patterns with powerful Bean Integration.</p>
<p>Apache camel home page<strong>:<a href="http://camel.apache.org/">http://camel.apache.org/</a></strong></p>
<p><a href="http://camel.apache.org/enterprise-integration-patterns.html"><strong>EIS Notations</strong></a></p>
<p>Apache Camel can be used as a routing and mediation engine for the following projects:</p>
<p><a href="http://servicemix.apache.org/home.html"><strong>Apache ServiceMix</strong></a> which is the most popular and powerful distributed open source ESB and JBI container<br />
<a href="http://activemq.apache.org/"><strong>Apache ActiveMQ</strong></a> which is the most popular and powerful open source message broker<br />
<a href="http://cxf.apache.org/"><strong>Apache CXF</strong></a> which is a smart web services suite (JAX-WS)<br />
<a href="http://mina.apache.org/"><strong>Apache MINA</strong></a> a networking framework</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bkathir.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bkathir.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bkathir.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bkathir.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bkathir.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bkathir.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bkathir.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bkathir.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bkathir.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bkathir.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bkathir.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bkathir.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bkathir.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bkathir.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=46&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bkathir.wordpress.com/2009/12/30/enterprise-integeration-pattern-related-frameworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3b802d274f1dd4cfeb83c01bba7fe549?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kathir</media:title>
		</media:content>
	</item>
		<item>
		<title>Introduction to OpenSSO</title>
		<link>http://bkathir.wordpress.com/2009/12/22/introduction-to-opensso/</link>
		<comments>http://bkathir.wordpress.com/2009/12/22/introduction-to-opensso/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 11:29:49 +0000</pubDate>
		<dc:creator>kathir</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://bkathir.wordpress.com/?p=43</guid>
		<description><![CDATA[I&#8217;ve been searching for a good introduction or article for OpenSSO latest one month. Finally I got a good article which explains OpenSSO step by step in both technically also theoretically. Introduction<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=43&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been searching for a good introduction or article for OpenSSO latest one month.<br />
Finally I got a good article which explains OpenSSO step by step in both technically also theoretically.</p>
<p><a href="http://developers.sun.com/identity/reference/techart/id-svcs.html"> Introduction</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bkathir.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bkathir.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bkathir.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bkathir.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bkathir.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bkathir.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bkathir.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bkathir.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bkathir.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bkathir.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bkathir.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bkathir.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bkathir.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bkathir.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=43&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bkathir.wordpress.com/2009/12/22/introduction-to-opensso/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3b802d274f1dd4cfeb83c01bba7fe549?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kathir</media:title>
		</media:content>
	</item>
		<item>
		<title>Different between OAUth and OpenID</title>
		<link>http://bkathir.wordpress.com/2009/12/15/different-between-oauth-and-openid/</link>
		<comments>http://bkathir.wordpress.com/2009/12/15/different-between-oauth-and-openid/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 15:08:01 +0000</pubDate>
		<dc:creator>kathir</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[OpenID]]></category>

		<guid isPermaLink="false">http://bkathir.wordpress.com/?p=39</guid>
		<description><![CDATA[Initially I had confusion between OAuth and OpenID, so start using our search giant Google to find the solution. Now I’m clear what is what. OpenID: It is only for Identification / Authentication. Here we need to prove oneself to the OpenID providers like who am I. OAuth: It is only Authorization; we are authorizing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=39&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Initially I had confusion between OAuth and OpenID, so start using our search giant Google to find the solution.</p>
<p>Now I’m clear what is what.</p>
<p><strong>OpenID:</strong><br />
It is only for Identification / Authentication. Here we need to prove oneself to the OpenID providers like who am I.</p>
<p><strong>OAuth:</strong><br />
It is only Authorization; we are authorizing a third party service to access our personal information without providing our password.</p>
<p><strong>Some interesting links:</strong><br />
<a href="http://cakebaker.42dh.com/2008/04/01/openid-versus-oauth-from-the-users-perspective/">Link1<br />
</a><br />
<a href="http://stackoverflow.com/questions/1087031/whats-the-difference-between-openid-and-oauth">Link2</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bkathir.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bkathir.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bkathir.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bkathir.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bkathir.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bkathir.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bkathir.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bkathir.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bkathir.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bkathir.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bkathir.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bkathir.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bkathir.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bkathir.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=39&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bkathir.wordpress.com/2009/12/15/different-between-oauth-and-openid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3b802d274f1dd4cfeb83c01bba7fe549?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kathir</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting Started with JPA</title>
		<link>http://bkathir.wordpress.com/2009/12/15/getting-started-with-jpa/</link>
		<comments>http://bkathir.wordpress.com/2009/12/15/getting-started-with-jpa/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 12:44:10 +0000</pubDate>
		<dc:creator>kathir</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[JPA]]></category>

		<guid isPermaLink="false">http://bkathir.wordpress.com/?p=31</guid>
		<description><![CDATA[I got a newsletter from DZone regarding JPA. I feel it’s good for reference purpose also for learners. Getting Started with JPA<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=31&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I got a newsletter from DZone regarding JPA.<br />
I feel it’s good for reference purpose also for learners.</p>
<p><a href="http://library.dzone.com/sites/all/files/refcardz/rc022-JPA_Online.pdf">Getting Started with JPA</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bkathir.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bkathir.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bkathir.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bkathir.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bkathir.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bkathir.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bkathir.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bkathir.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bkathir.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bkathir.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bkathir.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bkathir.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bkathir.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bkathir.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=31&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bkathir.wordpress.com/2009/12/15/getting-started-with-jpa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3b802d274f1dd4cfeb83c01bba7fe549?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kathir</media:title>
		</media:content>
	</item>
		<item>
		<title>How to accelerate user registration and login operation of our Web Application through OpenID Solution</title>
		<link>http://bkathir.wordpress.com/2009/12/10/how-to-accelerate-user-registration-and-login-operation-of-our-web-application-through-openid-solution/</link>
		<comments>http://bkathir.wordpress.com/2009/12/10/how-to-accelerate-user-registration-and-login-operation-of-our-web-application-through-openid-solution/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 12:00:44 +0000</pubDate>
		<dc:creator>kathir</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[OpenID]]></category>

		<guid isPermaLink="false">http://bkathir.wordpress.com/?p=24</guid>
		<description><![CDATA[JanRain releases a free version of its industry-leading OpenID solution. RPX Basic enables websites to accelerate user registration and login success by allowing visitors to easily sign in with one of their existing third party accounts from AOL, Facebook, Google, MySpace, or Yahoo!. Home: http://rpxnow.com/ Steps: * First we need to be a member of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=24&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>JanRain releases a free version of its industry-leading OpenID solution.</p>
<p>RPX Basic enables websites to accelerate user registration and login success by allowing visitors to easily sign in with one of their existing third party accounts from AOL, Facebook, Google, MySpace, or Yahoo!.</p>
<p><strong>Home:</strong></p>
<p><a href="http://rpxnow.com/">http://rpxnow.com/</a></p>
<p><strong>Steps:</strong></p>
<p>* First we need to be a member of rpxbasic, for that we need to login using any one of our OpenIDs.</p>
<p>* Once we&#8217;ve logged in we can create a new application, it acts like a web application.</p>
<p>* Once we’ve created a application go it’s dashboard.</p>
<p>* Click “Quick Start Guide”, there you can get the details related to how to embed the scripts to enable login/signin operation in our web application.</p>
<p><strong>The scripts are like</strong>:</p>
<p><strong>Add the following javascript code to the <a href="https://rpxnow.com/docs/faq#js_bottom">bottom</a> of each page where you&#8217;d like users to sign in</strong>:</p>
<pre class="brush: java;">
&lt;script src=&quot;https://rpxnow.com/openid/v2/widget&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
  RPXNOW.overlay = true;
  RPXNOW.language_preference = 'en';
&lt;/script&gt;
</pre>
<p><strong>Copy the following signin/signup link to your pages</strong>:</p>
<pre class="brush: java;">
&lt;a class=&quot;rpxnow&quot; onclick=&quot;return false;&quot;
   href=&quot;https://kathiropenidtest.rpxnow.com/openid/v2/signin?token_url=http://localhost:8080/OpenIDTest/Response.html&quot;&gt;
  Sign In
&lt;/a&gt;
</pre>
<p>* Embed the above scripts in our index page; this will create a sign In link in the index page. This link will open a small window which asks the user to select a OpenID provider from a list.</p>
<p>* After successful login the total no of user are listed in rpxnow’s application dashboard.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bkathir.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bkathir.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bkathir.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bkathir.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bkathir.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bkathir.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bkathir.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bkathir.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bkathir.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bkathir.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bkathir.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bkathir.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bkathir.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bkathir.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=24&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bkathir.wordpress.com/2009/12/10/how-to-accelerate-user-registration-and-login-operation-of-our-web-application-through-openid-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3b802d274f1dd4cfeb83c01bba7fe549?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kathir</media:title>
		</media:content>
	</item>
		<item>
		<title>How to use OpenID Technology in our Web Application</title>
		<link>http://bkathir.wordpress.com/2009/12/10/how-to-use-openid-technology-in-our-web-application/</link>
		<comments>http://bkathir.wordpress.com/2009/12/10/how-to-use-openid-technology-in-our-web-application/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 08:54:54 +0000</pubDate>
		<dc:creator>kathir</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[OpenID]]></category>

		<guid isPermaLink="false">http://bkathir.wordpress.com/?p=5</guid>
		<description><![CDATA[What is OpenID?   OpenID is an open, decentralized standard for authenticating users which can be used for access control, allowing users to log on to different services with the same digital identity where these services trust the authentication body.  Site: http://openid.net/  Getting Started: http://openid.net/add-openid/add-getting-started/   Java Library: I’ve tried out the &#8220;JOpenID&#8221; library.   JOpenID Project Home: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=5&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>What is OpenID?</strong>  </p>
<p>OpenID is an open, decentralized standard for authenticating users which can be used for access control, allowing users to log on to different services with the same digital identity where these services trust the authentication body. </p>
<p><strong>Site:</strong><br />
<a href="http://openid.net/">http://openid.net/</a> </p>
<p><strong>Getting Started:<br />
</strong><a href="http://openid.net/add-openid/add-getting-started/">http://openid.net/add-openid/add-getting-started/</a>  </p>
<p><strong>Java Library:<br />
</strong>I’ve tried out the &#8220;JOpenID&#8221; library.  </p>
<p><strong>JOpenID Project Home:</strong><br />
<a href="http://code.google.com/p/jopenid/">http://code.google.com/p/jopenid/</a>  </p>
<p><strong>Requirements: </strong><br />
JDK 1.6 , Tomcat6  </p>
<p><strong>Sample Servlet code:</strong><br />
I&#8217;ve changed the sample servlet which present in the JOpenID site</p>
<pre class="brush: java;">
package openidtest;

import java.io.IOException;
import java.io.PrintWriter;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.expressme.openid.Association;
import org.expressme.openid.Authentication;
import org.expressme.openid.Endpoint;
import org.expressme.openid.OpenIdException;
import org.expressme.openid.OpenIdManager;
 

public class MainServlet extends HttpServlet {
 

    static final long ONE_HOUR = 3600000L;
    static final long TWO_HOUR = ONE_HOUR * 2L;
    static final String ATTR_MAC = &quot;openid_mac&quot;;
    static final String ATTR_ALIAS = &quot;openid_alias&quot;;
 

    OpenIdManager manager;
 

    @Override
    public void init(ServletConfig config) throws ServletException {
        super.init(config);
 

        //IF proxy
        java.util.Properties props = System.getProperties();
        props.put(&quot;proxySet&quot;, &quot;true&quot;);
        props.put(&quot;proxyHost&quot;, &quot;PROXY_IPADDRESS&quot;);
        props.put(&quot;proxyPort&quot;, &quot;PROXY_PORT&quot;);
 

        manager = new OpenIdManager();
    }
 

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {   
     String op = request.getParameter(&quot;op&quot;);   
     if (op==null) {       
      // check nonce:
      System.out.println(&quot;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; openid.response_nonce==&gt;&quot;+request.getParameter(&quot;openid.response_nonce&quot;));
      checkNonce(request.getParameter(&quot;openid.response_nonce&quot;));       
      // get authentication:       
      HttpSession session = request.getSession();       
      byte[] mac_key = (byte[]) session.getAttribute(ATTR_MAC);       
      String alias = (String) session.getAttribute(ATTR_ALIAS);       
      Authentication authentication = manager.getAuthentication(request, mac_key, alias);       
      String identity = authentication.getIdentity();       
      String email = authentication.getEmail();       
      // TODO: create user if not exist in database:       
       showAuthentication(response.getWriter(), authentication);   
     }   
     else if (&quot;Google&quot;.equals(op) || &quot;Yahoo&quot;.equals(op)) {
      manager.setReturnTo(&quot;http://&quot;+request.getServerName()+&quot;:&quot;+request.getServerPort()+&quot;/OpenIDTest/openidtester&quot;);
      
      // redirect to Google/Yahoo sign on page:       
      String alias = manager.lookupExtNsAlias(op);      
      Endpoint endpoint = manager.lookupEndpoint(op);
      System.out.println(&quot;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; endpoint.getUrl()==&gt;&quot;+endpoint.getUrl());
      Association association = manager.lookupAssociation(endpoint);       
      HttpSession session = request.getSession();       
      session.setAttribute(ATTR_MAC, association.getRawMacKey());       
      session.setAttribute(ATTR_ALIAS, alias);       
      String url = manager.getAuthenticationUrl(endpoint, association);       
      response.sendRedirect(url);   
     }   
     else {       
      throw new ServletException(&quot;Bad parameter op=&quot; + op);   
     }
    }
 

    void showAuthentication(PrintWriter pw, Authentication user) {   
     pw.print(&quot;&lt;html&gt;&lt;body&gt;&quot;);   
     pw.print(&quot; &lt;h2&gt;Hi &quot;+user.getFullname()+&quot;!&lt;/h2&gt;&lt;p&gt;Congratulations, you have successfully logged-in!&lt;/p&gt;&quot;);   
     pw.print(&quot;&lt;p&gt;&lt;b&gt;Indentity:&lt;/b&gt; &quot;+user.getIdentity()+&quot;&lt;br&gt;&quot;);   
     pw.print(&quot;&lt;b&gt;Email:&lt;/b&gt; &quot;+user.getEmail()+&quot;&lt;br&gt;&quot;);   
     pw.print(&quot;&lt;b&gt;Gender:&lt;/b&gt; &quot;+user.getGender()+&quot;&lt;br&gt;&quot;);   
     pw.print(&quot;&lt;b&gt;Firstname:&lt;/b&gt; &quot;+user.getFirstname()+&quot;&lt;br&gt;&quot;);   
     pw.print(&quot;&lt;b&gt;Lastname:&lt;/b&gt; &quot;+user.getLastname()+&quot;&lt;br&gt;&quot;);   
     pw.print(&quot;&lt;b&gt;Language:&lt;/b&gt; &quot;+user.getLanguage()+&quot;&lt;/p&gt;&quot;);   
     pw.print(&quot;&lt;/body&gt;&lt;/html&gt;&quot;);   
     pw.flush();
    }
 

    void checkNonce(String nonce) {
        // check response_nonce to prevent replay-attack:
        if (nonce==null || nonce.length()&lt;20)
            throw new OpenIdException(&quot;Verify failed.&quot;);
        long nonceTime = getNonceTime(nonce);
        long diff = System.currentTimeMillis() - nonceTime;
        if (diff &lt; 0)
            diff = (-diff);
        if (diff &gt; ONE_HOUR)
            throw new OpenIdException(&quot;Bad nonce time.&quot;);
        if (isNonceExist(nonce))
            throw new OpenIdException(&quot;Verify nonce failed.&quot;);
        storeNonce(nonce, nonceTime + TWO_HOUR);
    }
 

    boolean isNonceExist(String nonce) {
        // TODO: check if nonce is exist in database:
        return false;
    }
 

    void storeNonce(String nonce, long expires) {
        // TODO: store nonce in database:
    }
 

    long getNonceTime(String nonce) {
        try {
            return new SimpleDateFormat(&quot;yyyy-MM-dd'T'HH:mm:ssZ&quot;)
                    .parse(nonce.substring(0, 19) + &quot;+0000&quot;)
                    .getTime();
        }
        catch(ParseException e) {
            throw new OpenIdException(&quot;Bad nonce time.&quot;);
        }
    }
}
</pre>
<p><strong>Web.xml</strong></p>
<pre class="brush: xml;">&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;

&lt;web-app xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot;
       version=&quot;2.5&quot;
       xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
       xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;&gt;

	&lt;servlet&gt;
		&lt;servlet-name&gt;MainServlet&lt;/servlet-name&gt;
		&lt;servlet-class&gt;openidtest.MainServlet&lt;/servlet-class&gt;
	&lt;/servlet&gt;

	&lt;servlet-mapping&gt;
		&lt;servlet-name&gt;MainServlet&lt;/servlet-name&gt;
		&lt;url-pattern&gt;/openidtester&lt;/url-pattern&gt;
	&lt;/servlet-mapping&gt;

&lt;/web-app&gt;
</pre>
<p><strong>How to call:-</strong> </p>
<p>http://&lt;HOSTNAME&gt;:&lt;PORT&gt;/OpenIDTest/openidtester?op=Yahoo</p>
<p>http://&lt;HOSTNAME&gt;:&lt;PORT&gt;/OpenIDTest/openidtester?op=Google </p>
<p><strong>For Additional OpenID Provider:</strong><br />
 As of now the sample servlet allows Google and yahoo as a OpenID Provider (OP), if we need more extract the &#8220;openid-providers.properties&#8221; from &#8220;jopenid-1.05.jar&#8221; file and add additional OP and its url. The file looks like </p>
<pre class="brush: java;"> 
Google = https://www.google.com/accounts/o8/id
Yahoo = http://open.login.yahooapis.com/openid20/www.yahoo.com/xrds 
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bkathir.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bkathir.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bkathir.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bkathir.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bkathir.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bkathir.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bkathir.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bkathir.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bkathir.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bkathir.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bkathir.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bkathir.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bkathir.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bkathir.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bkathir.wordpress.com&amp;blog=10892174&amp;post=5&amp;subd=bkathir&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bkathir.wordpress.com/2009/12/10/how-to-use-openid-technology-in-our-web-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3b802d274f1dd4cfeb83c01bba7fe549?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kathir</media:title>
		</media:content>
	</item>
	</channel>
</rss>
