1 26 27 package org.objectweb.jonas.security.interceptors.jeremie; 28 29 import org.objectweb.security.propagation.SecuritySender; 30 import org.objectweb.security.context.SecurityCurrent; 31 import org.objectweb.security.context.SecurityContext; 32 33 37 public class JonasSecuritySender implements SecuritySender { 38 39 42 public JonasSecuritySender() { 43 } 44 45 49 public void received_reply(int request_id, SecurityContext ctx) { 50 } 51 52 public SecurityContext sending_request(int request_id) { 53 54 SecurityCurrent current = SecurityCurrent.getCurrent(); 56 if (current == null) { 57 return null; 58 } 59 SecurityContext ctx = current.getSecurityContext(); 61 return ctx; 62 } 63 } | Popular Tags |