Answer 1
<realm-name>
The name of the realm that is referenced to authenticate the user credentials
Answer 2
Authentication :-
is a process of identifying a person and validating their credentials.
In order to perform this we use Realm
Realm is a place where authentication information is stored.In
tomcat the �tomcat-users.xml� file is called memory realm, as tomcat reads this file into memory at startup time.
The tomcat-users.xml file
<tomcat-users>
<role rolename=�Guest�/>
<role rolename=�Member�/>
<user name=�Bill� password=�coder� roles=�Member,Guest� />
</tomcat-users>
map the roles in the vendor specific �users� file to roles established in DD.
<security-role>
<role-name>Admin</role-name>
<role-name>Member</role-name>
<role-name>Guest</role-name>
</security-role>