Which two statements are true?

A developer creates the following session bean:
10.©Stateless
11. @RolesAllowed(“SECRET”)

12. public class MyBean implements Mylnterface
13. public void methodAOJ}
14. @PermitAII
15. public void methodB0 {}
16. @DenyAII
17. public void methodC0 {}
18.}
No deployment descriptor is supplied. Which two statements are true? (Choose two.)

A developer creates the following session bean:
10.©Stateless
11. @RolesAllowed(“SECRET”)

12. public class MyBean implements Mylnterface
13. public void methodAOJ}
14. @PermitAII
15. public void methodB0 {}
16. @DenyAII
17. public void methodC0 {}
18.}
No deployment descriptor is supplied. Which two statements are true? (Choose two.)

A.
A user in the role “SECRET” will be able to access all of the methods.

B.
A user in the role “FOO” will be able to access methodA and methodB.

C.
A user without any role will be able to access methodB but NOT methodA.

D.
A user in the role “SECRET” will be able to access methodA and methodB.

E.
A user in the role “SYSADM” will be able to access methodA, methodB, and methodC.



Leave a Reply 0

Your email address will not be published. Required fields are marked *