Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the meaning of Realm in spring security

In my application, I use spring security, and I just want to know what's the meaning of "realm" in HTTP config.

like image 315
Mavlarn Avatar asked Apr 24 '13 08:04

Mavlarn


People also ask

What is a security realm?

A security realm comprises mechanisms for protecting WebLogic resources. Each security realm consists of a set of configured security providers, users, groups, security roles, and security policies (see Figure 4-1).

What is a realm in Internet?

A realm is an internet domain whose Fully-Qualified Domain Names (FQDNs) typically all share a domain designation. For example, example.com could be a Realm name, and the addressable hosts in the Realm would have names like host1.example.com, host2.subdomain1.example.com, and so on.

What are the level of security in spring?

Apart from authentication, spring security also check authorization of the logged in user. After login which user is authorize to access the resource is done on the bases of user's ROLE. At the time of creating user in WebSecurityConfig class, we can specify user?


2 Answers

A realm is a credential store that enables identity or role based access control.

Java Documentation

What is a realm?

For a web application, a realm is a complete database of users and groups that identify valid users of a web application (or a set of web applications) and are controlled by the same authentication policy.

The Java EE server authentication service can govern users in multiple realms. In this release of the Application Server, the file, admin-realm, and certificate realms come preconfigured for the Application Server.

In the file realm, the server stores user credentials locally in a file named keyfile. You can use the Admin Console to manage users in the file realm.

When using the file realm, the server authentication service verifies user identity by checking the file realm. This realm is used for the authentication of all clients except for web browser clients that use the HTTPS protocol and certificates.

In the certificate realm, the server stores user credentials in a certificate database. When using the certificate realm, the server uses certificates with the HTTPS protocol to authenticate web clients. To verify the identity of a user in the certificate realm, the authentication service verifies an X.509 certificate. For step-by-step instructions for creating this type of certificate, see Working with Digital Certificates. The common name field of the X.509 certificate is used as the principal name.

The admin-realm is also a FileRealm and stores administrator user credentials locally in a file named admin-keyfile. You can use the Admin Console to manage users in this realm in the same way you manage users in the file realm. For more information, see Managing Users and Groups on the Application Server.

like image 171
Arjun Rao Avatar answered Oct 26 '22 04:10

Arjun Rao


A realm is a security policy domain defined for a web or application server. A realm contains a collection of users, who may or may not be assigned to a group.

A realm is a security policy domain defined for a web or application server. The protected resources on a server can be partitioned into a set of protection spaces, each with its own authentication scheme and/or authorization database containing a collection of users and groups. For a web application, a realm is a complete database of users and groups identified as valid users of a web application or a set of web applications and controlled by the same authentication policy. The Java EE server authentication service can govern users in multiple realms.

https://docs.oracle.com/cd/E19798-01/821-1841/bnbxk/index.html

like image 35
nsv Avatar answered Oct 26 '22 06:10

nsv