Home > Articles > Security > General Security and Privacy

  • Print
  • + Share This
Like this article? We recommend

Logging Out

Logging out of a JAAS Context is as simple as calling the logout() method on the LoginContext. Once the logout() method is called, additional calls to the server are unauthenticated and throw AccessExceptions.

As you can see, the client side code for utilizing JAAS authentication is extremely simple and straightforward. By utilizing a simple client login module, you can add JAAS authentication to your client application with only a few lines of code. If you end up needing more complex authentication, such as NT Login or Kerberos, it is a simple matter of updating the jaas.config file with the appropriate modules.

  • + Share This
  • 🔖 Save To Your Account