I use AOP Security Service and it works. But when I use AOP Remoting with the security service I got a lot of problems.
Always when I want to execute a secured method of an object, which is called by the remote proxy object I get an Authentication exception.
Example:
jboss-aop.xml
<annotation tag="security" class="de.fhzw.portal.util.classes.UserSession"> <security-domain>java:/jaas/RoomAdministration</security-domain> <method-permission> <role-name>Internal</role-name> <method> <method-name>*</method-name> </method> </method-permission> </annotation>
public class UserSession{ ... public String getUserName(String principal) { return getUserReader().getUserName(principal); } ... }
UserSession user = (UserSession) Remoting.createRemoteProxy("UserSession",UserSession.class,"socket://localhost:5150"); user.getUserName("someName");