· 1 min read
Authenticating Java users using underlying operating system
We all need the ability to have our Java programs talk to the underlying operating system for many aspects just as file system management and user interface population. Java abstracts those pretty well but one thing that’s been missing is the ability to authenticate a Java application’s user/group with the underlying Win32 or UNIX/Linux users database (like /etc/passwd). Cenqua’s Shaj (Simple Host Authentication for Java) is a JNI library with a simple interface that allows your Java app to verify users and check group membership with the underlying operating system. According to the author, “Shaj is not a competitor for full featured authentication API’s but rather a complimentary way to piggyback on system accounts on any platforms.”