if(!isSecurityEnabled()) return; Subject subject = SecurityContext.getCurrent().getSubject(); NormalizedMessage msg = meTransport.getMessage(); if(msg == null) return; msg.setProperty(SECURITY_PROPERTY, subject);
if(!isSecurityEnabled()) return; NormalizedMessage msg = meTransport.getMessage(); if(msg == null) return; Subject subject = (Subject)msg.getProperty(SECURITY_PROPERTY); if(subject != null) { SecurityContext sc = new SecurityContext(subject); SecurityContext.setCurrent(sc); }
This method can be overridden to control the security propagation return (sc_enable==null || sc_enable.equalsIgnoreCase("true"));
return (sc_enable==null || sc_enable.equalsIgnoreCase("true"));