Interface AuthContext

  • All Known Implementing Classes:
    JAASAuthContext, LocalAuthContext

    public interface AuthContext
    An authentication context used to authenticate users. It is similar to JAAS' LoginContext but can work in a non-JAAS environment.

    This class is abstract and has two implementations:

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Subject getSubject()
      Return the authenticated Subject.
      void login()
      Perform the authentication and, if successful, associate Principals and Credentials with the authenticatedSubject.
      void logout()
      Logout the Subject.