com.stratelia.webactiv.jaas
Class SilverpeasLoginModule

java.lang.Object
  extended by com.stratelia.webactiv.jaas.SilverpeasLoginModule
All Implemented Interfaces:
LoginModule

public class SilverpeasLoginModule
extends Object
implements LoginModule


Constructor Summary
SilverpeasLoginModule()
           
 
Method Summary
 boolean abort()
           
 boolean commit()
           
protected  void fillPrincipal(SilverpeasUserPrincipal principal)
           
 Subject getSubject()
           
 String getUserId()
           
 void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
           
 boolean login()
           
 boolean logout()
           
 void setAdministrator(Admin administrator)
           
 void setAuthenticator(AuthenticationService authenticator)
           
 void setController(OrganisationController controller)
           
 boolean validateDigestUser(SilverpeasUserPrincipal principal, DigestCredentials sc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilverpeasLoginModule

public SilverpeasLoginModule()
Method Detail

getUserId

public String getUserId()

getSubject

public Subject getSubject()

setAuthenticator

public void setAuthenticator(AuthenticationService authenticator)

setController

public void setController(OrganisationController controller)

setAdministrator

public void setAdministrator(Admin administrator)

abort

public boolean abort()
              throws LoginException
Specified by:
abort in interface LoginModule
Throws:
LoginException

commit

public boolean commit()
               throws LoginException
Specified by:
commit in interface LoginModule
Throws:
LoginException

initialize

public void initialize(Subject subject,
                       CallbackHandler callbackHandler,
                       Map sharedState,
                       Map options)
Specified by:
initialize in interface LoginModule

login

public boolean login()
              throws LoginException
Specified by:
login in interface LoginModule
Throws:
LoginException

logout

public boolean logout()
               throws LoginException
Specified by:
logout in interface LoginModule
Throws:
LoginException

fillPrincipal

protected void fillPrincipal(SilverpeasUserPrincipal principal)

validateDigestUser

public boolean validateDigestUser(SilverpeasUserPrincipal principal,
                                  DigestCredentials sc)
                           throws AdminException
Throws:
AdminException


Copyright © 2016 Silverpeas. All Rights Reserved.