Q&A
Q1: | What are six different aspects of security? |
A1: | Six aspects of security are
|
Q2: | What are the three participants of the J2EE security domain? |
A2: | Principal represents an entity (typically a user) in the authentication system of the target environment. Role represents a security role within the application. Role Reference is used to map a coded role name onto an actual role. |
Q3: | What are the two methods of defining J2EE security? |
A3: | Declarative and programmatic. |
Q4: | What are the two EJB context methods and three HTTP Request methods used in programmatic security? |
A4: |
EJBContext.isCallerInRole() EJBContext.getCallerPrincipal() HttpServletRequest.isUserInRole() HttpServletRequest.getUserPrincipal() ... |
Get Sams Teach Yourself J2EE™ in 21 Days now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.