Login Configuration: alternative way

Hi,

I just started reading info about JAAS to integrate it into my current project. So to have an inside view of how it works, I decide to write my own Configuration class. Instead of using standard files, I want to use XML files. That will also allow me to learn about XML and JDOM.

But so far, I am not able to make the JRE understand that I don't want to use the ConfigFile class but mine.

I tried: java -Dlogin.configuration.provider=com.mainpass.security.auth.login.XMLConfiguration com.mainpass.security.auth.login.XMLConfigurationTest

I get an error threw by ConfigFile. That class should not be used.

I also modified the file java.security in C:\java\jdk\j2sdk1.4.0\jre\lib\security but no luck.

TIA

Jerome

[771 byte] By [jbaumgarten] at [2007-9-26 22:07:46]
# 1
Setting alternate configuration implementation in code:javax.security.auth.login.Configuration.setConfiguration(new com.mainpass.security.auth.login.XMLConfiguration ());worked for me.Cheers,Kullervo
kullervokala at 2007-7-4 1:24:03 > top of Java-index,Security,Other Security APIs, Tools, and Issues...