com.silverpeas.wiki.security
Class SilverpeasWikiLoginModule

java.lang.Object
  extended by com.ecyrd.jspwiki.auth.login.AbstractLoginModule
      extended by com.silverpeas.wiki.security.SilverpeasWikiLoginModule
All Implemented Interfaces:
LoginModule

public class SilverpeasWikiLoginModule
extends com.ecyrd.jspwiki.auth.login.AbstractLoginModule


Field Summary
 
Fields inherited from class com.ecyrd.jspwiki.auth.login.AbstractLoginModule
m_handler, m_options, m_previousWikiPrincipals, m_principals, m_principalsToOverwrite, m_principalsToRemove, m_state, m_subject, NULL
 
Constructor Summary
SilverpeasWikiLoginModule()
           
 
Method Summary
protected  com.ecyrd.jspwiki.auth.authorize.Role convertSilverpeasRole(String userRole)
          Maps a classic Silverpeas role to a JSPWiki role.
 boolean login()
          Logs in the user.
 
Methods inherited from class com.ecyrd.jspwiki.auth.login.AbstractLoginModule
abort, commit, initialize, logout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilverpeasWikiLoginModule

public SilverpeasWikiLoginModule()
Method Detail

login

public boolean login()
              throws LoginException
Logs in the user.

Specified by:
login in interface LoginModule
Specified by:
login in class com.ecyrd.jspwiki.auth.login.AbstractLoginModule
Throws:
LoginException
See Also:
LoginModule.login()

convertSilverpeasRole

protected com.ecyrd.jspwiki.auth.authorize.Role convertSilverpeasRole(String userRole)
Maps a classic Silverpeas role to a JSPWiki role. JSPWiki roles are defined in jspwiki.policy with their permissions.

Parameters:
userRole - the silverpeas role.
Returns:
the JSPWiki corresponding Role.


Copyright © 2016 Silverpeas. All Rights Reserved.