Java Web Application: Using a custom realm

后端 未结 5 1770
迷失自我
迷失自我 2021-02-05 15:05

I\'m writing a java web application which need to perform login through a webservice. Of course, none of the realms supplied with the application server I\'m using (glassfish v2

5条回答
  •  别那么骄傲
    2021-02-05 15:36

    Having has a quick look at Suns documentation it looks like you will have to write a custom LoginModule which extends their app server specific class. This seems a little backwards to me and a limitation of Glassfish.

    If you want to make this more portable, I'd suggest putting the bulk of the implementation in a custom LoginModule developed against the standard JavaEE interface(s) and then having a thin implementation layer specific to Glassfish that delegates to the standard, portable implementation.

提交回复
热议问题