May 2001
Intermediate to advanced
618 pages
20h 50m
English
Class javax.security.auth.login.LoginContext
This class is used to authenticate a user. You create an instance of this class (perhaps supplying an appropriate callback handler and/or subject) and then invoke the login( ) method to authenticate the user. If that succeeds, the user may be retrieved with the getSubject( ) method; that subject is then generally passed to the Subject.doAs( ) method.
public class javax.security.auth.login.LoginContext
extends java.lang.Object {
// Constructors
public LoginContext(String, Subject, CallbackHandler);
public LoginContext(String);
public LoginContext(String, Subject);
public LoginContext(String, CallbackHandler);
// Instance Methods
public Subject getSubject( );
public void login( );
public void logout( );
}Read now
Unlock full access