An Application Assembler is given the following stateless session bean:
10.©Stateless public class MyBean implements Mylnt {
11. @RolesAllowed(“SECRET”)
12. public void methodA(int x) {}
13. public void methodA(String y) {}
14. public void methodB(String z) {}
15. }
A deployment descriptor is also supplied, a portion of which reads as follows:
20. <method-permission>
21. <role-name>AGENT</role-name>
22. <method>
23. <ejb-name>MyBean</ejb-name>
24. <method-name>methodA</method-name>
25. </method>
26. </method-permission>
Which statement is true?
A.
A client in any rolewill beabletoaccess anyof themethods.
B.
Aclient inthe role “AGENT” willbeable to access any ofthemethods.
C.
A client in therole”SECRET” will be able to access any of the methods.
D.
A client in the role “AGENT” will be abletoaccess methodB and methodA(String), but not
methodA(int).
E.
Aclient in the role “SECRET” will beableto access methodA(int) and methodB, but NOT
methodA(String).