You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by leesangboo <le...@gmail.com> on 2014/09/19 09:28:35 UTC

Custom Login Module in Embeded Java Broker

How to set Custom Login Module in in Embeded Java Broker?

is's my code.

help.

...

//
	        AuthenticationDTO authentication = new AuthenticationDTO();
	        authentication.domain = "apollo";
	        authentication.enabled = false;
	       
//authentication.user_principal_kinds.add("org.apache.activemq.jaas.UserPrincipal");
	       
//authentication.acl_principal_kinds.add("org.apache.activemq.jaas.GroupPrincipal");
	        broker.authentication = authentication;
	        
	        //
	        AccessRuleDTO rule = new AccessRuleDTO();
	        rule.id = context.getMessageServerProperties().getUser();
	        rule.allow = "*";
	        rule.action = "*";
	        broker.access_rules.add(rule);
	       

....




--
View this message in context: http://activemq.2283324.n4.nabble.com/Custom-Login-Module-in-Embeded-Java-Broker-tp4685716.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.