Which is a valid value for the enum EmptyRoleSemantic in Javax.servlet.annotation.ServletSecurity?

Which is a valid value for the enum EmptyRoleSemantic in
Javax.servlet.annotation.ServletSecurity?

Which is a valid value for the enum EmptyRoleSemantic in
Javax.servlet.annotation.ServletSecurity?

A.
ADMIT

B.
PERMIT

C.
EXCLUDE

D.
DENYALL

E.
ALLOWALL

Explanation:
http://tomcat.apache.org/tomcat-7.0-doc/servletapi/javax/servlet/annotation/ServletSecurity.EmptyRoleSemantic.html



Leave a Reply 3

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


giuseppe

giuseppe

B: Permit|Deny

LeoCode

LeoCode

The following example is for all HTTP methods except TRACE, the element requires membership in ALL ROLE, and for TRACE, all access is denied.

@WebServlet (name=”Example”, urlPatterns={“/Example”})
@ServletSecurity(value = @HttpConstraint(rolesAllowed = “ALL ROLE”),
httpMethodConstraints = @HttpMethodConstraint(value=”TRACE”,
emptyRoleSemantic = EmptyRoleSemantic.DENY))
public class Example extends HttpServlet {
……
}

http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/csec_annotations.html

Allan Santos

Allan Santos

B.

In EmptyRoleSemantic there is one DENY and PERMIT.