Lecture 6 Flashcards

1
Q

Enterprise software requires security to:

A

Authentication, authorization/access control, non-repudiation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

JavaEE security mostly proudes by respective containers which are:

A

Web container for servlets, EJB container for EJBs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What Java SE security is relevant to enterprise?

A

Java Secure Sockets Extension

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Most Java EE security tools work on…

A

The application level, they affect an individual application only.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Securing apps using web or EJB container is done by:

A

Editing configuration files, securing individual components by @annotations, and adding security programmatically (not recommended)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How’s repair securing web container:

A

Specify legitimate users and their passwords, specify roles and rights, specify which resources should be protected and how.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the deployment descriptor?

A

It is the web.xml file i directory WEB-INF of the dynamic web project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are added to the deployment descriptor?

A

Security constraints: web resource collection, authorization constraint, user data constraint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is declarative security?

A

Use of @annotations and a deployment descriptor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Give three security annotations:

A

@ServletSecurity, @HttpConstraint and @HttpMethodConstraint,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What port is standard for SSL connections?

A

8443

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

To add annotations to EJB you need to create what kind of file?

A

An app.xml file added to the META-INF directory. Also an ejb3.xml. Also a users.properties and roles.properties. Finally modify standalone.xml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you call a protected EJB method from an EJB client?

A

Usual way: Use a secure servlet. The user authenticates when calling Servlet. Alternate way: pass username and password programmatically to EJB.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Why is enterprisesoftware prone to security risks?

A

Java itself is prone with Oracle often closing 50+ security issues in an update, apps are used by multiple users (most of which are not trusted), apps are distribute and accessible via Internet, complex and large,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly