相关文章  
  • 光纤纵差保护中数据同步的误差分析
  • 企业如何通过代理服务器控制上网权限
  • 实现运营商级的VoIP安全的核心通信技术
  • 传统语音向IP电话迁移所存在的安全问题
  • 多级分布式网络系统安全建设经典案例
  • Ethernet-PON安全技术分析
  • 关于TETRA系统安全技术的研究报告
  • 远程移动办公安全解决方案
  • 确保软交换的安全 软交换中的安全机制
  • IPSec穿越NAT兼容性问题及技术要求
  •   推荐  
      科普之友首页   专利     科普      动物      植物        天文   考古   前沿科技
     您现在的位置在:  首页 >>文献 >>培训

    用GlobusToolkit编写安全网格服务7

    s" value="[CA certificate locations]"/>
      
      您可以按照一般网格服务的方式,根据 GWSDL 和 WSDL 生成服务的存根。在清单 4 中,我们展示了如何从服务的上下文中获取调用者的身份标识。清单中还阐明了其他一些可能的配置,服务端可能要求用这些配置设置安全通知回调。
      
      清单 4. HelloWorldImpl.java 服务的实现
      
      public class HelloWorldImpl extends GridServiceImpl implements
               HelloWorldPortType, CredentialRefreshListener {
        public helloWorldImpl() {
         super("HelloWorld");
        }
      
        public String sayHello(String in0) throws java.rmi.RemoteException {
        
         String identity = SecurityManager.getManager().getCaller();
         System.out.println("The identity is "+identity);
         Subject subject = JaasSubject.getCurrentSubject();
         System.out.println("Jaas Subject is "+ subject); 数据载入中...

    页码:[1] [2] [3] [4] [5] [6] [7]7页、共7页

         

          设为首页       |       加入收藏       |       广告服务       |       友情链接       |       版权申明      

    Copyriht 2007 - 2008 ©  科普之友 All right reserved