<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
    <channel>
        <title>JavaRanch Security </title>
        <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&amp;f=65</link>
        <description>A Friendly Place for Java Greenhorns</description>
        <image>
            <url>http://saloon.javaranch.com/ubb/moosefly.gif</url>
            <title>JavaRanch Big Moose Saloon</title>
            <link>http://saloon.javaranch.com/</link>
        </image>
        <language>en-us</language>
        <generator>JavaRanch RSS</generator>
        <copyright>Copyright 2007 Paul Wheaton. All Rights Reserved.</copyright>
        <item uniqueID="65-001607">
            <title>encrypt data in database</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001607</link>
            <description>Good evening,&lt;br /&gt;I'm developping an application to encrypt data with tripleDES before getting inserted in oracle database.&lt;br /&gt;Another application must consult the database, decrypt the data then show it in a jtable.&lt;br /&gt;I'm a biginner in the security field, i found a source implementing triple DES encryption.&lt;br /&gt;1-some byte from the encrypted data like the cote(') make some problem when executing the query, i'd like to change the type of the encryption bytes, i heard about UTF8 but i don't know how to use it.&lt;br /&gt;2-when I decrypt the data from the resultset and put it in the jtable the first culumn is empty and I receive this error:&lt;br /&gt;"javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001607</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001607amin amin</comments>
            <author/>
            <pubDate>Tue, 6 May 2008 19:10:51 MDT</pubDate>
        </item>
        <item uniqueID="65-001606">
            <title>LDAP - Authentication</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001606</link>
            <description>I am using Sun One directory server 5.2. I needed to extend the default schema to suit my application's needs.&lt;br /&gt;I would be creating a new structural object class(say ExampleUser) containing user id and password. As i understand, Sun One has a password policy.I was wondering if the password policy is meant for user id's that connect to the LDAP server or can it be applied to my object class ExampleUser which contains user id an password.&lt;br /&gt; &lt;br /&gt;From what i read, i guess the password policy is only meant for the user id's that connect to the LDAP server. But i am not sure though. Can someone please throw some light? Thanks.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001606</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001606karthik vijayarajan</comments>
            <author/>
            <pubDate>Fri, 2 May 2008 14:46:29 MDT</pubDate>
        </item>
        <item uniqueID="65-001605">
            <title>Why i need the file auth.conf?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001605</link>
            <description>I write login module for jboss and i need it for the client</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001605</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001605avihai marchiano</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 11:56:22 MDT</pubDate>
        </item>
        <item uniqueID="65-001604">
            <title>keyGenerator.init(int strength)</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001604</link>
            <description>In the places I have been reading, crypto strengths are given in bits. We usually work in bytes. In general, all caveats apply, does &lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;javax.crypto.KeyGenerator.init(int strength)&lt;/pre&gt;&lt;hr&gt;&lt;/blockquote&gt;&lt;br /&gt;expect number of bits?&lt;br /&gt; &lt;br /&gt;It would seem so.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001604</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001604Nicholas Jordan</comments>
            <author/>
            <pubDate>Mon, 28 Apr 2008 18:06:17 MDT</pubDate>
        </item>
        <item uniqueID="65-001603">
            <title>KeyGenerator Part II</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001603</link>
            <description>All,&lt;br /&gt; &lt;br /&gt;Okay, I decided to create a new post (rather than continuing the previous post, located here (http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001600)).&lt;br /&gt; &lt;br /&gt;Sometimes when new questions are introduced, I think people dislike having to read the same long posts with all the same comments.&lt;br /&gt; &lt;br /&gt; I figured out how to pass into my KeyGenerator, multiple input seeds! The java.util.UUID class only takes in byte[] so I decided to convert the sequence id and timestamp input seeds into strings and then in in turn convert the strings into a byte[]. The byte[] is then passed into the java.util.UUID.name.UUID() method and voila the magic happens! &lt;br /&gt; &lt;br /&gt;Here it is: &lt;br /&gt; &lt;br /&gt;&lt;blockq...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001603</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001603James Dekker</comments>
            <author/>
            <pubDate>Thu, 24 Apr 2008 16:04:04 MDT</pubDate>
        </item>
        <item uniqueID="65-001602">
            <title>How to implement security measures...</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001602</link>
            <description>Hello friends.......&lt;br /&gt;I am new in this field so please help me out..How can i implement SSL/STL in my shopping related website project.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001602</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001602Abhishek Purwar</comments>
            <author/>
            <pubDate>Wed, 23 Apr 2008 08:41:59 MDT</pubDate>
        </item>
        <item uniqueID="65-001601">
            <title>Bouncy Castle vs. Sun's JCE</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001601</link>
            <description>What's the difference between Bouncy Castle vs. Sun's JCE?&lt;br /&gt; &lt;br /&gt;What are their advantages vs. disadvantages?&lt;br /&gt; &lt;br /&gt;Thanks,&lt;br /&gt; &lt;br /&gt;James</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001601</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001601James Dekker</comments>
            <author/>
            <pubDate>Sat, 19 Apr 2008 23:22:26 MDT</pubDate>
        </item>
        <item uniqueID="65-001600">
            <title>KeyGenerator using JCE</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001600</link>
            <description>All,&lt;br /&gt; &lt;br /&gt;I built this simple KeyGenerator using the java.util.Random and the java.util.UUID classes.&lt;br /&gt; &lt;br /&gt;Am a newbie to security in general and need to use JCE to build something similar.&lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;import java.util.Random;&lt;br /&gt;import java.util.UUID;&lt;br /&gt; &lt;br /&gt;public class KeyGenerator {&lt;br /&gt;private static final long SEED = 42;&lt;br /&gt;private static final Random rand = new Random(SEED);&lt;br /&gt; &lt;br /&gt;public static UUID seededUUID(Random rand) {&lt;br /&gt;if (rand == null) {&lt;br /&gt;throw new IllegalArgumentException();&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;int size = rand.nextInt(128);&lt;br /&gt;byte[] seed = new byte[size];&lt;br /&gt;rand.nextBytes(seed);&lt;br /&gt; &lt;br /&gt;return UUID.nameUUIDFromBytes(seed);&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;publi...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001600</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001600James Dekker</comments>
            <author/>
            <pubDate>Sat, 19 Apr 2008 20:28:25 MDT</pubDate>
        </item>
        <item uniqueID="65-001599">
            <title>How to implement it with Acegi?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001599</link>
            <description>Our application has the next architecture: &lt;br /&gt;We have a big amount of users and services.&lt;br /&gt;Each user may has the next authorities for each service:&lt;br /&gt;view, edit, delete ... (custom).&lt;br /&gt; &lt;br /&gt;The task is to do it with Acegi (Spring Security) and with a big amount of users not to have application failure - because if for each logged in user application will store all authorities for all services and will store it in memory - it is not good idea.&lt;br /&gt; &lt;br /&gt;I have read the Acegi Reference to understand how to implement when the &lt;b&gt;concrete&lt;/b&gt; user accesses the &lt;b&gt;concrete&lt;/b&gt; service to check in database granted authorities (view, edit, delete ....).&lt;br /&gt; &lt;br /&gt;After investigation &lt;b&gt;Chapter 21. Secure Object Implementations&lt;/...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001599</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001599Geek Smiles</comments>
            <author/>
            <pubDate>Sat, 19 Apr 2008 10:12:24 MDT</pubDate>
        </item>
        <item uniqueID="65-001598">
            <title>Question about role-based security for web application.</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001598</link>
            <description>If I configure the web application security with &lt;br /&gt; &amp;lt;session-config&amp;gt;&lt;br /&gt; &amp;lt;session-timeout&amp;gt;120&amp;lt;/session-timeout&amp;gt;&lt;br /&gt; &amp;lt;/session-config&amp;gt;&lt;br /&gt; &lt;br /&gt;&amp;lt;security-constraint&amp;gt;&lt;br /&gt; &amp;lt;web-resource-collection&amp;gt;&lt;br /&gt; &amp;lt;web-resource-name&amp;gt;Page&amp;lt;/web-resource-name&amp;gt;&lt;br /&gt; &amp;lt;url-pattern&amp;gt;/jsp/*&amp;lt;/url-pattern&amp;gt;&lt;br /&gt; &amp;lt;url-pattern&amp;gt;/servlet/*&amp;lt;/url-pattern&amp;gt;&lt;br /&gt; &amp;lt;http-method&amp;gt;GET&amp;lt;/http-method&amp;gt;&lt;br /&gt; &amp;lt;http-method&amp;gt;POST&amp;lt;/http-method&amp;gt;&lt;br /&gt; &amp;lt;/web-resource-collection&amp;gt;&lt;br /&gt;&amp;lt;auth-constraint&amp;gt;&lt;br /&gt; &amp;lt;role-name&amp;gt;manager&amp;lt;/role-name&amp;gt;&lt;br /&gt;&amp;lt;/auth-constraint&amp;gt;&lt;br /&gt; &amp;lt;user-data-constraint&amp;gt;&lt;b...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001598</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001598Alex Sun</comments>
            <author/>
            <pubDate>Thu, 17 Apr 2008 03:33:26 MDT</pubDate>
        </item>
        <item uniqueID="65-001598">
            <title>Question about role-based security for web application.</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001598</link>
            <description>If I configure the web application security with &lt;br /&gt; &amp;lt;session-config&amp;gt;&lt;br /&gt; &amp;lt;session-timeout&amp;gt;120&amp;lt;/session-timeout&amp;gt;&lt;br /&gt; &amp;lt;/session-config&amp;gt;&lt;br /&gt; &lt;br /&gt;&amp;lt;security-constraint&amp;gt;&lt;br /&gt; &amp;lt;web-resource-collection&amp;gt;&lt;br /&gt; &amp;lt;web-resource-name&amp;gt;Page&amp;lt;/web-resource-name&amp;gt;&lt;br /&gt; &amp;lt;url-pattern&amp;gt;/jsp/*&amp;lt;/url-pattern&amp;gt;&lt;br /&gt; &amp;lt;url-pattern&amp;gt;/servlet/*&amp;lt;/url-pattern&amp;gt;&lt;br /&gt; &amp;lt;http-method&amp;gt;GET&amp;lt;/http-method&amp;gt;&lt;br /&gt; &amp;lt;http-method&amp;gt;POST&amp;lt;/http-method&amp;gt;&lt;br /&gt; &amp;lt;/web-resource-collection&amp;gt;&lt;br /&gt;&amp;lt;auth-constraint&amp;gt;&lt;br /&gt; &amp;lt;role-name&amp;gt;manager&amp;lt;/role-name&amp;gt;&lt;br /&gt;&amp;lt;/auth-constraint&amp;gt;&lt;br /&gt; &amp;lt;user-data-constraint&amp;gt;&lt;b...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001598</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001598Alex Sun</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 23:45:03 MDT</pubDate>
        </item>
        <item uniqueID="65-001597">
            <title>Best 3rd Party Libraries for Secure Key Generation?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001597</link>
            <description>What are the leading (preferably open source or very inexpensive) libraries for serial number / key generation?&lt;br /&gt; &lt;br /&gt;What I am looking for should have:&lt;br /&gt; &lt;br /&gt;1. Something that is secure, unique, and generates alphanumeric keys.&lt;br /&gt; &lt;br /&gt;2. Is something very fast and efficient.&lt;br /&gt; &lt;br /&gt;3. Has the capability to handle multiple input seeds.&lt;br /&gt; &lt;br /&gt;Thanks!</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001597</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001597James Dekker</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 18:49:03 MDT</pubDate>
        </item>
        <item uniqueID="65-001597">
            <title>Best 3rd Party Libraries for Secure Key Generation?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001597</link>
            <description>What are the leading (preferably open source or very inexpensive) libraries for serial number / key generation?&lt;br /&gt; &lt;br /&gt;What I am looking for should have:&lt;br /&gt; &lt;br /&gt;1. Something that is secure, unique, and generates alphanumeric keys.&lt;br /&gt; &lt;br /&gt;2. Is something very fast and efficient.&lt;br /&gt; &lt;br /&gt;3. Has the capability to handle multiple input seeds.&lt;br /&gt; &lt;br /&gt;Thanks!</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001597</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001597James Dekker</comments>
            <author/>
            <pubDate>Tue, 15 Apr 2008 22:57:00 MDT</pubDate>
        </item>
        <item uniqueID="65-001597">
            <title>Best 3rd Party Libraries for Secure Key Generation?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001597</link>
            <description>What are the leading (preferably open source or very inexpensive) libraries for serial number / key generation?&lt;br /&gt; &lt;br /&gt;What I am looking for should have:&lt;br /&gt; &lt;br /&gt;1. Something that is secure, unique, and generates alphanumeric keys.&lt;br /&gt; &lt;br /&gt;2. Is something very fast and efficient.&lt;br /&gt; &lt;br /&gt;3. Has the capability to handle multiple input seeds.&lt;br /&gt; &lt;br /&gt;Thanks!</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001597</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001597James Dekker</comments>
            <author/>
            <pubDate>Tue, 15 Apr 2008 18:12:59 MDT</pubDate>
        </item>
        <item uniqueID="65-001597">
            <title>Best 3rd Party Libraries for Secure Key Generation?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001597</link>
            <description>What are the leading (preferably open source or very inexpensive) libraries for serial number / key generation?&lt;br /&gt; &lt;br /&gt;What I am looking for should have:&lt;br /&gt; &lt;br /&gt;1. Something that is secure, unique, and generates alphanumeric keys.&lt;br /&gt; &lt;br /&gt;2. Is something very fast and efficient.&lt;br /&gt; &lt;br /&gt;3. Has the capability to handle multiple input seeds.&lt;br /&gt; &lt;br /&gt;Thanks!</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001597</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001597James Dekker</comments>
            <author/>
            <pubDate>Tue, 15 Apr 2008 17:10:59 MDT</pubDate>
        </item>
        <item uniqueID="65-001596">
            <title>where to start for x.509 pubkey and KeyStore</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001596</link>
            <description>I just got literally an hour ago RSA keys that are about 900 decimal digits long. I will soon need to figure out how to place private.getEncoded() in a KeyStore and public.getKeyMaterial in an X.509 format for compliance with existing practice. &lt;br /&gt; &lt;br /&gt;I intend the above to be psuedo nomenclature, it should be read purposefully loose as I am trying to save a few steps on where to start.&lt;br /&gt; &lt;br /&gt;IOW what to study first. Any suggestions welcome, informed or otherwise. </description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001596</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001596Nicholas Jordan</comments>
            <author/>
            <pubDate>Tue, 15 Apr 2008 17:04:59 MDT</pubDate>
        </item>
        <item uniqueID="65-001595">
            <title>Create SAML token, verify token and get user id from token</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001595</link>
            <description>I am using Weblogic 9.2 and I want to create a web service that will be able to do the following: (1) generate a SAML token with username/password, (2) validate that a SAML token is valid , and (3) get the user's id from a SAML token.&lt;br /&gt; &lt;br /&gt;Does anyone have experience with this and have some assistance for me?</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001595</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001595Adrian Enns</comments>
            <author/>
            <pubDate>Tue, 15 Apr 2008 16:00:59 MDT</pubDate>
        </item>
        <item uniqueID="65-001594">
            <title>More than one authentication per thread</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001594</link>
            <description>Hello friends,&lt;br /&gt; &lt;br /&gt;I have an application connecting to a jboss server and i am using JAAS.&lt;br /&gt;This application has a couple of modules and each of them should have different authentication (usernames) to access different services in the same jboss server.&lt;br /&gt; &lt;br /&gt;The problem is that when module A authenticates with server it is ok, then later in the thread lifecycle, module B authenticates with server, that is ok too. But even later when module A calls jboss server for second time, it is using the authentication used by module B.&lt;br /&gt; &lt;br /&gt;I don't want to do authentication for every call, so is there a way for me to know if a thread has a successfull authentication? And is it possible to change it? like having a cache of log...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001594</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001594Joel de Matos</comments>
            <author/>
            <pubDate>Tue, 15 Apr 2008 10:08:58 MDT</pubDate>
        </item>
        <item uniqueID="65-001594">
            <title>More than one authentication per thread</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001594</link>
            <description>Hello friends,&lt;br /&gt; &lt;br /&gt;I have an application connecting to a jboss server and i am using JAAS.&lt;br /&gt;This application has a couple of modules and each of them should have different authentication (usernames) to access different services in the same jboss server.&lt;br /&gt; &lt;br /&gt;The problem is that when module A authenticates with server it is ok, then later in the thread lifecycle, module B authenticates with server, that is ok too. But even later when module A calls jboss server for second time, it is using the authentication used by module B.&lt;br /&gt; &lt;br /&gt;I don't want to do authentication for every call, so is there a way for me to know if a thread has a successfull authentication? And is it possible to change it? like having a cache of log...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001594</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001594</comments>
            <pubDate>Tue, 15 Apr 2008 03:21:20 MDT</pubDate>
        </item>
        <item uniqueID="65-001593">
            <title>LDAP tutorial and server</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001593</link>
            <description>Hello Sir,&lt;br /&gt; &lt;br /&gt;I just want to use LDAP, can you please suggest me that from where should i start and which LDAP server i should use.&lt;br /&gt; &lt;br /&gt;Thanks&lt;br /&gt;Gaurav</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001593</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001593</comments>
            <pubDate>Sat, 12 Apr 2008 15:37:12 MDT</pubDate>
        </item>
        <item uniqueID="65-001592">
            <title>Implementing security in Struts 2</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001592</link>
            <description>Hi,&lt;br /&gt; I am writing a Web Application using Struts 2 and Hibernate. I need to implement security so that only authorised User can access the desired pages. The user names, passwords and their roles are stored in the database. &lt;br /&gt; &lt;br /&gt;Any one please guide whether to implement JAAS based security for my web application or any other.&lt;br /&gt; &lt;br /&gt;Thanks,&lt;br /&gt;Anmita</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001592</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001592</comments>
            <pubDate>Fri, 11 Apr 2008 16:13:09 MDT</pubDate>
        </item>
        <item uniqueID="65-001591">
            <title>login.jsp customized by original target url</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001591</link>
            <description>I have a web application that uses a form login page to protected web resources using Glassfish v2ur1.&lt;br /&gt; &lt;br /&gt;Pretty typical stuff and JAAS authentication works and all that, no complaints.&lt;br /&gt; &lt;br /&gt;But... I need to be able to customize my login.jsp to show a different login message depending on what resource the unauthenticated user was attempting to access before the redirect.&lt;br /&gt; &lt;br /&gt;I had read about request.getAttribute( "javax.servlet.forward.request_uri" ) which according to the 2.4 Servlet Specication and posts like &lt;br /&gt;this one (http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=000686) sounds like should tell me the original page that was requested.&lt;br /&gt; &lt;br /&gt;Unfortunately, it always returns...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001591</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001591</comments>
            <pubDate>Fri, 11 Apr 2008 09:27:08 MDT</pubDate>
        </item>
        <item uniqueID="65-001590">
            <title>Unable to Create a LoginContext</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001590</link>
            <description>I am trying to authenticate user by means of username and password using JAAS for which I have used NameCallback and PasswordCallback provided by JAVA.I have setup a configuration file and a policy file and trying to run my client application , yet it is failing to create a LoginContext.&lt;br /&gt;I am trying to implement this (http://java.sun.com/developer/technicalArticles/Security/jaasv2/) code and I did as instructed.Am I missing something here?</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001590</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001590</comments>
            <pubDate>Thu, 10 Apr 2008 05:49:05 MDT</pubDate>
        </item>
        <item uniqueID="65-001589">
            <title>New JavaRanch Journal article: Authentication using JAAS</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001589</link>
            <description>The latest issue of the JavaRanch Journal contains an article by Rahul Bhattacharjee on Authentication using JAAS (http://www.javaranch.com/journal/2008/04/Journal200804.jsp#a5). Go read it while it's fresh, and discuss it in this thread.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001589</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001589</comments>
            <pubDate>Thu, 10 Apr 2008 03:15:04 MDT</pubDate>
        </item>
        <item uniqueID="65-001588">
            <title>generating secure tokens</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001588</link>
            <description>Hi,&lt;br /&gt; &lt;br /&gt;I need to generate tokens that will be used to identify users between two systems. Ideally I'd like the tokens to be strings of a fixed length, containing only ASCII characters. Because the tokens will be used to uniquely identify users, each token generate must be unique (or the possibility of collisions should be very small).&lt;br /&gt; &lt;br /&gt;I've had a look in the Java libraries and found the following classes which may be useful:&lt;br /&gt; &lt;br /&gt;SecureRandom (http://java.sun.com/j2se/1.4.2/docs/api/java/security/SecureRandom.html)&lt;br /&gt;KeyGeneratory (http://java.sun.com/j2se/1.4.2/docs/api/javax/crypto/KeyGenerator.html)&lt;br /&gt; &lt;br /&gt;Can either of these classes be used to generate keys that fit my requirements defined above? If so...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001588</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001588</comments>
            <pubDate>Tue, 8 Apr 2008 18:11:00 MDT</pubDate>
        </item>
        <item uniqueID="65-001587">
            <title>Where did AES go?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001587</link>
            <description>I did as much reading and coding as I could absorb. Today in trying to get some useable routines produced I find DES, Triple DES, Blowfish, HMAC-MD5, and HMAC-SHA1 algorithms seem to be the only algorithm that SunJCE supports. Cryptix doesn't seem to have it either even though all the books I could absorb made it definite that AES is the only accepted contemporary practice. &lt;br /&gt; &lt;br /&gt;Is it BC wins again? Or am I missing something.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001587</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=65&amp;t=001587</comments>
            <pubDate>Mon, 7 Apr 2008 14:10:56 MDT</pubDate>
        </item>
    </channel>
</rss>
