org.eclipse.emf.cdo.spi.server
Class RepositoryUserManager

java.lang.Object
  extended by org.eclipse.net4j.util.event.Notifier
      extended by org.eclipse.net4j.util.lifecycle.Lifecycle
          extended by org.eclipse.emf.cdo.spi.server.RepositoryUserManager
All Implemented Interfaces:
INotifier, ILifecycle, ILifecycle.DeferrableActivation, IUserManager

public abstract class RepositoryUserManager
extends Lifecycle
implements IUserManager

Since:
4.0

Nested Class Summary
static class RepositoryUserManager.RepositoryInjector
           
static class RepositoryUserManager.RepositoryUserManagerFactory
           
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
 
Field Summary
 
Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
 
Constructor Summary
protected RepositoryUserManager()
           
 
Method Summary
 void addUser(String userID, char[] password)
           
 byte[] encrypt(String userID, byte[] data, String algorithmName, byte[] salt, int count)
           
protected abstract  char[] getPassword(IRepository repository, String userID)
           
protected  IRepository getRepository(IManagedContainer container, String repositoryName)
           
static void prepareContainer(IManagedContainer container, RepositoryUserManager.RepositoryUserManagerFactory factory)
           
 void removeUser(String userID)
           
 
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
 
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, fireEvent, fireEvent, fireEvent, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
 

Constructor Detail

RepositoryUserManager

protected RepositoryUserManager()
Method Detail

addUser

public void addUser(String userID,
                    char[] password)
Specified by:
addUser in interface IUserManager

removeUser

public void removeUser(String userID)
Specified by:
removeUser in interface IUserManager

encrypt

public byte[] encrypt(String userID,
                      byte[] data,
                      String algorithmName,
                      byte[] salt,
                      int count)
               throws SecurityException
Specified by:
encrypt in interface IUserManager
Throws:
SecurityException

getRepository

protected IRepository getRepository(IManagedContainer container,
                                    String repositoryName)

getPassword

protected abstract char[] getPassword(IRepository repository,
                                      String userID)

prepareContainer

public static void prepareContainer(IManagedContainer container,
                                    RepositoryUserManager.RepositoryUserManagerFactory factory)


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.