I have a Stateless bean where I want to allow access only to the client that I authorize.
The bean:
@Stateless public class LibraryBean implements LibraryIFace { @Override public void setName(String name){ sb.setName( name ); } @Override public String getName(){ return sb.getName(); } @EJB private SingIFace sb; }
I know that every one can access to this bean.
How can I block all connections not trusted?
I using wildfly.
Thanks in advance Andrea.
What your are looking for is the @SecurityDomain
See the documentation Securing EJBs - WildFly 8 - Project Documentation Editor
/Flemming