public abstract class BasicLogin
extends java.lang.Object
implements javax.security.auth.spi.LoginModule
Modifier and Type | Field and Description |
---|---|
protected javax.security.auth.callback.CallbackHandler |
callbackHandler |
protected boolean |
debug |
protected java.util.Map |
options |
protected java.util.Map |
sharedState |
protected javax.security.auth.Subject |
subject |
Constructor and Description |
---|
BasicLogin() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
getOption(java.lang.String name,
boolean dflt)
Get a boolean option from the module's options.
|
protected int |
getOption(java.lang.String name,
int dflt)
Get a numeric option from the module's options.
|
protected java.lang.String |
getOption(java.lang.String name,
java.lang.String dflt)
Get a String option from the module's options.
|
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.Map options)
Module initialization.
|
protected javax.security.auth.Subject subject
protected javax.security.auth.callback.CallbackHandler callbackHandler
protected java.util.Map sharedState
protected java.util.Map options
protected boolean debug
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)
initialize
in interface javax.security.auth.spi.LoginModule
protected boolean getOption(java.lang.String name, boolean dflt)
name
- Name of the optiondflt
- Default value for the optionprotected int getOption(java.lang.String name, int dflt)
name
- Name of the optiondflt
- Default value for the optionprotected java.lang.String getOption(java.lang.String name, java.lang.String dflt)
name
- Name of the optiondflt
- Default value for the option