org.apache.jackrabbit.core.security
Class SimpleLoginModule

java.lang.Object
  extended byorg.apache.jackrabbit.core.security.SimpleLoginModule
All Implemented Interfaces:
LoginModule

public class SimpleLoginModule
extends Object
implements LoginModule

A SimpleLoginModule ...


Constructor Summary
SimpleLoginModule()
          Constructor
 
Method Summary
 boolean abort()
          
 boolean commit()
          
 String getAnonymousId()
          Returns the anonymous user id.
 String getDefaultUserId()
          Returns the default user id.
 void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
          
 boolean login()
          
 boolean logout()
          
 void setAnonymousId(String anonymousId)
          Sets the default user id to be used when no login credentials are presented.
 void setDefaultUserId(String defaultUserId)
          Sets the default user id to be used when no login credentials are presented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLoginModule

public SimpleLoginModule()
Constructor

Method Detail

getAnonymousId

public String getAnonymousId()
Returns the anonymous user id.

Returns:
anonymous user id

setAnonymousId

public void setAnonymousId(String anonymousId)
Sets the default user id to be used when no login credentials are presented.


getDefaultUserId

public String getDefaultUserId()
Returns the default user id.

Returns:
default user id

setDefaultUserId

public void setDefaultUserId(String defaultUserId)
Sets the default user id to be used when no login credentials are presented.

Parameters:
defaultUserId - default user id

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

commit

public boolean commit()
               throws LoginException

Specified by:
commit in interface LoginModule
Throws:
LoginException

abort

public boolean abort()
              throws LoginException

Specified by:
abort in interface LoginModule
Throws:
LoginException

logout

public boolean logout()
               throws LoginException

Specified by:
logout in interface LoginModule
Throws:
LoginException


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.