邓华

BlogJava 联系 聚合 管理
  48 Posts :: 0 Stories :: 149 Comments :: 0 Trackbacks
最近项目中用到HESSIAN, 基于HTTP协议的传输协议,很方便, 但是基本没有安全验证.
想给加上最基本的安全认证, HTTP BASIC AUTH是最简单的协议了.
在RESIN中添加的方法:
    resin.conf:
   
<web-app id="/" root-directory="/home/project/leyicai/">
        
<authenticator type="com.caucho.server.security.XmlAuthenticator">
                 
<init>
                        
<user>leyicai:password:user</user>
                        
<password-digest>none</password-digest>
                
</init>
         
</authenticator>

        
<login-config auth-method='basic'/>

        
<security-constraint url-pattern='/remoting/*' role-name='user'/>
        
</web-app>

直接加在RESIN里,简单明了,不需要改程序配置.

还可以配置其它方式, 参见 http://www.caucho.com/resin-3.0/security/authentication.xtp#XmlAuthenticator


posted on 2011-11-11 04:47 邓华的碎碎念 阅读(2310) 评论(2)  编辑  收藏

Feedback

# re: hessian的http基本安全认证 2011-11-11 13:33 tbw
不错  回复  更多评论
  

# re: hessian的http基本安全认证 2011-11-12 00:08 tbw
恩 不错   回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: