Class BasicLogin
java.lang.Object
org.dlese.dpc.schemedit.security.login.BasicLogin
- All Implemented Interfaces:
LoginModule
- Direct Known Subclasses:
SimpleLogin
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
FieldsModifier and TypeFieldDescriptionprotected CallbackHandlerprotected booleanprotected Mapprotected Mapprotected Subject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanGet a boolean option from the module's options.protected intGet a numeric option from the module's options.protected StringGet a String option from the module's options.voidinitialize(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, waitMethods inherited from interface javax.security.auth.spi.LoginModule
abort, commit, login, logout
-
Field Details
-
subject
-
callbackHandler
-
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:
initializein interfaceLoginModule
-
getOption
Get a boolean option from the module's options.- Parameters:
name- Name of the optiondflt- Default value for the option- Returns:
- The boolean value of the options object.
-
getOption
Get a numeric option from the module's options.- Parameters:
name- Name of the optiondflt- Default value for the option- Returns:
- The boolean value of the options object.
-
getOption
Get a String option from the module's options.- Parameters:
name- Name of the optiondflt- Default value for the option- Returns:
- The String value of the options object.
-