Which deployer action permits a user authenticated as "John" to call both methodA on SecureBeanOl and methodB on SecureBean02?

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?

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?

A.
The deployer maps both role “ADMIN”androle “administrator” to user “John”.

B.
Thedeployerreplaces”administrator”by “ADMIN” in thesource code of SecureBean02and
maps”ADMIN” to user “John”.

C.
The deployer overrides the method permission of SecureBean02. methodBintheejbjar.xmldeployment descriptor and maps”ADMIN”to user “John”.

D.
The deployer defines a common role and maps role “ADMIN” and role “administrator” using
security-role-ref entries to this role. This common role is mapped to user “John1

Explanation:



Leave a Reply 0

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