API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.security.auth.login. LoginContext View Source
Author(s)
Since
Version
1.100, 11/17/05
Serial
Hierarchy
 Object
      LoginContext
Implements
Subclasses
Description
public class LoginContext
  The LoginContext class describes the basic methods used to authenticate Subjects and provides a way to develop an application independent of the underlying authentication technology.
Constructors
public LoginContext (String name) throws LoginException
  Instantiate a new LoginContext object with a name.
public LoginContext (String name, CallbackHandler callbackHandler) throws LoginException
  Instantiate a new LoginContext object with a name and a CallbackHandler object.
public LoginContext (String name, Subject subject) throws LoginException
  Instantiate a new LoginContext object with a name and a Subject object.
public LoginContext (String name, Subject subject, CallbackHandler callbackHandler) throws LoginException
  Instantiate a new LoginContext object with a name, a Subject to be authenticated, and a CallbackHandler object.
public LoginContext (String name, Subject subject, CallbackHandler callbackHandler, Configuration config) throws LoginException
  Instantiate a new LoginContext object with a name, a Subject to be authenticated, a CallbackHandler object, and a login Configuration.
Methods
Hide/Show inherited methods
public Subject getSubject ()
  Return the authenticated Subject.
public void login () throws LoginException
  Perform the authentication.
public void logout () throws LoginException
  Logout the Subject.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar