Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the point of JAAS

What's the point of JAAS if I have to write my own {whatever}LoginModule and everything else?

like image 993
pitr Avatar asked Mar 23 '09 13:03

pitr


People also ask

What is JAAS conf used for?

The Java Authentication and Authorization Service (JAAS) API supplies user authentication and authorization services for Java applications. Ambari adds the following settings to the file. (Note: serviceName="kafka" is required for connections from other brokers.)

Where is JAAS used?

We can use JAAS for two purposes: Authentication: Identifying the entity that is currently running the code. Authorization: Once authenticated, ensure that this entity has the required access control rights or permissions to execute sensitive code.

How does JAAS authentication work?

JAAS authentication is performed in a pluggable fashion, so applications can remain independent from underlying authentication technologies. A system administrator determines the authentication technologies, or LoginModules, to be used for each application and configures them in a login Configuration.

What does JAAS mean?

The Java Authentication and Authorization Service (JAAS) is a set of application program interfaces (APIs) that can determine the identity of a user or computer attempting to run Java code and ensure that the entity has the right to execute the functions requested.


3 Answers

JAAS provides an abstraction layer between your application and the underlying authentication mechanism. Therefore, you could change the authentication mechanism used by your application without having to change any of your application code.

like image 54
Mark Avatar answered Oct 11 '22 21:10

Mark


Well that is the beauty of it really..

We used JAAS in a big mortgage application system, and while we used a LoginModule based on properties, the big mortage bank used an own implemented LoginModule based on active directory, without we ever having to change something in code.

like image 25
Arcturus Avatar answered Oct 11 '22 19:10

Arcturus


Just like with any other standard you get portability, plugability, and extensibility for free (or almost for free).

like image 3
topchef Avatar answered Oct 11 '22 20:10

topchef