[jboss-user] [Security & JAAS/JBoss] - JaasSecurityManager

jej2003 do-not-reply at jboss.com
Wed Oct 22 16:53:14 EDT 2008

Currently I am accessing the JaasSecurityManager in an EJB to authenticate flex clients.  This seems to be working well but I have tied myself to JBoss with my current implementation.  Is there any generic mechanism to obtain the security manager in an Application Server?  Do other application servers provide similar mechanisms to get a handle on the security manager?

Currently doing:

  | private void function(){
  | String securityManagerObjectName ="jboss.security:service=JaasSecurityManager";
  |         String mbeanServerJndiName = "jmx/rmi/RMIAdaptor";
  |         MBeanServerConnection server = this.getMbeanServerConnection(mbeanServerJndiName);
  |         ObjectName jaasMgr = new ObjectName(securityManagerObjectName);
  | }
  | 	private MBeanServerConnection getMbeanServerConnection(String jndiName){
  | 		return (MBeanServerConnection)sessionContext.lookup(jndiName);	
  | 	}

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183986#4183986

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183986

More information about the jboss-user mailing list