Lesson 5 (Glassfish Security) Flashcards

1
Q

What is the default-config in Glassfish? (glassfish admin)

A

Template config, which you can copy to create server configs.

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

What is a server-config in Glassfish? (glassfish admin)

A

Server configs are configurations that are used for the server.

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

What are http listeners?

A

For each server you can define HTTP listeners.

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

What can you do with http listeners?

A

Define security settings, port numbers etc.

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

What is a glassfish realm? (3)

A

A security policy domain.

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

What can glassfish realms do with user certificates?

A

A file with certificates of authenticated users

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

What is a glassfish filerealm?

A

An encrypted file with usernames and passwords (fileRealm)

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

What is a glassfish jdbc (database) realm?

A

database with usernames and passwords (jdbcRealm)

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

How can a web app be secured based on groups and roles?

A

Based on the glassfish groups/roles, mapped in the glassfish-web.xml per application.

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

How can glassfish ssl be enabled?

A

By enabling SSL in a http listener. Cipher suites can be added. The server certificates are always added in the keystore file (keystore.jks)

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

How can certificates be added to the glassfish keystore?

A

Through the command line tool (keytool) from jks you can add or change certificates in the keystore.jks file. (bin directory)

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

How does the server validate certificates?

A

It contains the cacerts file, that holds the CA-certificates.

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

Sample of role mapping in glassfish-web.xml

A

> security-role-mapping>
>role-name>expert >role-name>
>group-name>group1 >group-name>
security-role-mapping>

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