Class BasicLogin

java.lang.Object
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 Details

    • subject

      protected Subject subject
    • callbackHandler

      protected CallbackHandler callbackHandler
    • sharedState

      protected Map sharedState
    • options

      protected Map options
    • debug

      protected boolean debug
  • Constructor Details

    • BasicLogin

      public BasicLogin()
  • Method Details

    • 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.