org.mmbase.security.implementation.context
Class ContextLoginModule

Package class diagram package ContextLoginModule
java.lang.Object
  extended by org.mmbase.security.implementation.context.ContextLoginModule
Direct Known Subclasses:
AnonymousLogin, ClassLogin, PasswordLogin

public abstract class ContextLoginModule
extends Object

Class ContextLoginModule

Version:
$Id: ContextLoginModule.java 34900 2009-05-01 16:29:42Z michiel $
Author:
Eduard Witteveen
Javadoc:

Constructor Summary
ContextLoginModule()
           
 
Method Summary
protected  Element getAccount(String userName)
          Gets accounts for this authentication module
protected  Element getAccount(String userName, String identifyType, String rank)
          Search an account for a given user name and identify type (the 'module').
protected  String getModuleValue(String userName)
          Deprecated. Use getAccount(java.lang.String)
protected  Rank getRank(String username)
           
protected  Rank getRank(String username, String identifyType)
           
protected  ContextUserContext getValidUserContext(String username, Rank rank)
           
 void load(Document document, long validKey, String name, MMBaseCop manager)
           
abstract  ContextUserContext login(Map<String,?> userLoginInfo, Object[] userParameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextLoginModule

public ContextLoginModule()
Method Detail

load

public void load(Document document,
                 long validKey,
                 String name,
                 MMBaseCop manager)
          throws SecurityException
Throws:
SecurityException

login

public abstract ContextUserContext login(Map<String,?> userLoginInfo,
                                         Object[] userParameters)
                                  throws SecurityException
Throws:
SecurityException

getValidUserContext

protected ContextUserContext getValidUserContext(String username,
                                                 Rank rank)
                                          throws SecurityException
Throws:
SecurityException

getRank

protected Rank getRank(String username)
                throws SecurityException
Throws:
SecurityException

getRank

protected Rank getRank(String username,
                       String identifyType)
                throws SecurityException
Throws:
SecurityException
Since:
MMBase-1.8

getAccount

protected Element getAccount(String userName)
                      throws SecurityException
Gets accounts for this authentication module

Throws:
SecurityException
Since:
MMBase-1.8

getModuleValue

protected String getModuleValue(String userName)
                         throws SecurityException
Deprecated. Use getAccount(java.lang.String)

Throws:
SecurityException

getAccount

protected Element getAccount(String userName,
                             String identifyType,
                             String rank)
                      throws SecurityException
Search an account for a given user name and identify type (the 'module').

Returns:
The user Element.
Throws:
SecurityException
Since:
MMBase-1.8


MMBase2 Core 2.0-SNAPSHOT - 2013-03-30T06:36