DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.security.login
Class BasicLogin

java.lang.Object
  extended by org.dlese.dpc.schemedit.security.login.BasicLogin
All Implemented Interfaces:
LoginModule
Direct Known Subclasses:
SimpleLogin

public abstract class BasicLogin
extends Object
implements LoginModule

Superclass for all the com.myjaas.auth.* authorisation modules. Provides utility methods for reading the module's configuration options and a default implementation of initialize() that fetches the value of a boolean option called 'debug'.

Version:
1.0.3
Author:
Andy Armstrong, andy@tagish.com

Field Summary
protected  CallbackHandler callbackHandler
           
protected  boolean debug
           
protected  Map options
           
protected  Map sharedState
           
protected  Subject subject
           
 
Constructor Summary
BasicLogin()
           
 
Method Summary
protected  boolean getOption(String name, boolean dflt)
          Get a boolean option from the module's options.
protected  int getOption(String name, int dflt)
          Get a numeric option from the module's options.
protected  String getOption(String name, String dflt)
          Get a String option from the module's options.
 void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
          Module initialization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.security.auth.spi.LoginModule
abort, commit, login, logout
 

Field Detail

subject

protected Subject subject

callbackHandler

protected CallbackHandler callbackHandler

sharedState

protected Map sharedState

options

protected Map options

debug

protected boolean debug
Constructor Detail

BasicLogin

public BasicLogin()
Method Detail

initialize

public void initialize(Subject subject,
                       CallbackHandler callbackHandler,
                       Map sharedState,
                       Map options)
Module initialization.

Specified by:
initialize in interface LoginModule

getOption

protected boolean getOption(String name,
                            boolean dflt)
Get a boolean option from the module's options.

Parameters:
name - Name of the option
dflt - Default value for the option
Returns:
The boolean value of the options object.

getOption

protected int getOption(String name,
                        int dflt)
Get a numeric option from the module's options.

Parameters:
name - Name of the option
dflt - Default value for the option
Returns:
The boolean value of the options object.

getOption

protected String getOption(String name,
                           String dflt)
Get a String option from the module's options.

Parameters:
name - Name of the option
dflt - Default value for the option
Returns:
The String value of the options object.

DLESE Tools
v1.6.0