May 2001
Intermediate to advanced
618 pages
20h 50m
English
Interface javax.security.auth.spi.LoginModule
If you want to write your
own login module, you implement this
interface and then list the appropriate class in the login
configuration file. The login( ) method should
authenticate the user (perhaps requiring a callback). However, since
other modules may be in use, the user is not fully authenticated until
all modules pass. When that happens, the commit( ) method is called, at which point the module should add
the appropriate Subject object to the set of
principals. If one or more modules failed, then the abort( ) method is called instead, at which point the module
should clean up its internal state.
public abstract interface javax.security.auth.spi.LoginModule {
// Instance Methods
public abstract boolean abort( );
public abstract boolean commit( );
public abstract void initialize(Subject, CallbackHandler,
Map, Map);
public abstract boolean login( );
public abstract boolean logout( );
}Read now
Unlock full access