Oracle
1Z0-860 · Question #155
Given: 10.©Stateless 11. public void SecureBeanOl implements SecureOI { 23. @AllowRoles("ADMIN") 24. public void methodAO {} 10.©Stateless 11. public void SecureBean02 implements Secure02{ 23…
The correct answer is A. The deployer maps both role "ADMIN" and role "administrator" to user "John". See the full explanation below for the reasoning.
Question
Given: 10.©Stateless 11. public void SecureBeanOl implements SecureOI { 23. @AllowRoles("ADMIN") 24. public void methodAO {} 10.©Stateless 11. public void SecureBean02 implements Secure02{ 23. @AllowRoles("administrator") 24. public void methodB0 {} Which deployer action permits a user authenticated as "John" to call both methodA on SecureBeanOl and methodB on SecureBean02?
Options
- AThe deployer maps both role "ADMIN" and role "administrator" to user "John".
- BThe deployer replaces "administrator" by "ADMIN" in the source code of SecureBean02 and maps
- CThe deployer overrides the method permission of SecureBean02. methodB in the ejb-
- DThe deployer defines a common role and maps role "ADMIN" and role "administrator" using security-
How the community answered
(44 responses)- A73% (32)
- B16% (7)
- C7% (3)
- D5% (2)
Community Discussion
No community discussion yet for this question.