Given the resource class fragment: Choose the code fragment below that would secure access only to the Resource update() method (Choose one):

Given the resource class fragment:

Choose the code fragment below that would secure access only to the Resource update() method
(Choose one):

Given the resource class fragment:

Choose the code fragment below that would secure access only to the Resource update() method
(Choose one):

A.
<security-constraint>
<web-resource-collection>
<url-pattern>/rest</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>

B.
<security-constraint>
<web-resource-collection>
<url-pattern>/rest</url-pattern>
<http-method>POST</http-method>
</web-resource-collection>

C.
<security-constraint>
<web-resource-collection>
<url-pattern>/rest/id</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>

D.
<security-constraint>D.<security-constraint>
<web-resource-collection>
<url-pattern>/id</url-pattern>
<http-method>POST</http-method>
</web-resource-collection>

Explanation:



Leave a Reply 0

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