Choose two methods to select role based access control for the business logic ? (Choose two)

A developer is creating a web service endpoint using a stateless session EJB for the business logic of an application. Choose two methods to select role based access control for the business logic ? (Choose two)

A developer is creating a web service endpoint using a stateless session EJB for the business logic of an application. Choose two methods to select role based access control for the business logic ? (Choose two)

A.
Using method-permission element in ejb-jar.xml

B.
Using .htaccess file in the application’s ear

C.
Using <security-role> element in web.xml

D.
By specifying security annotations like @RolesAllowed in the EJB class



Leave a Reply 1

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


VijayVarma

VijayVarma

Answer: A, D

Using method-permission element in ejb-jar.xml
By specifying security annotations like @RolesAllowed in the EJB class