Package org.eclipse.net4j.util.security
Class FileUserManager
- java.lang.Object
- 
- org.eclipse.net4j.util.event.Notifier
- 
- org.eclipse.net4j.util.lifecycle.Lifecycle
- 
- org.eclipse.net4j.util.security.UserManager
- 
- org.eclipse.net4j.util.security.FileUserManager
 
 
 
 
- 
- All Implemented Interfaces:
- INotifier,- INotifier.INotifier2,- IDeactivateable,- ILifecycle,- ILifecycle.DeferrableActivation,- IAuthenticator,- IUserManager
 
 public class FileUserManager extends UserManager - Author:
- Eike Stepper
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycleILifecycle.DeferrableActivation
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifierINotifier.INotifier2
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringfileName- 
Fields inherited from class org.eclipse.net4j.util.security.UserManagerusers
 
- 
 - 
Constructor SummaryConstructors Constructor Description FileUserManager()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoBeforeActivate()protected voiddoDeactivate()java.io.FilegetFile()java.lang.StringgetFileName()protected voidload(java.util.Map<java.lang.String,char[]> users)protected voidload(java.util.Map<java.lang.String,char[]> users, java.io.InputStream stream)protected java.io.FileresolveFile(java.lang.String fileName)protected voidsave(java.util.Map<java.lang.String,char[]> users)protected voidsave(java.util.Map<java.lang.String,char[]> users, java.io.FileOutputStream stream)voidsetFileName(java.lang.String fileName)Sets the name of the file to be used by this user manager.- 
Methods inherited from class org.eclipse.net4j.util.security.UserManageraddUser, authenticate, doActivate, encrypt, getPassword, removeUser
 - 
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycleactivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
 - 
Methods inherited from class org.eclipse.net4j.util.event.NotifieraddListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.net4j.util.event.INotifieraddListener, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getFileNamepublic java.lang.String getFileName() 
 - 
setFileNamepublic void setFileName(java.lang.String fileName) Sets the name of the file to be used by this user manager.The fileis resolved in the following order:-  If it starts with the path segment "@config" the subsequent path segments are interpreted as relative to the config folder.
- If it is relative it is interpreted as relative to the application's current directory.
- Otherwise it is interpreted as absolute.
 addUser()orremoveUser()are called.With "-Dnet4j.security.FileUserManager.fallBackToConfigFolder=true" a relative path is resolved in both the application's current folder and the config folder (in this order). 
-  If it starts with the path segment "@config" the subsequent path segments are interpreted as relative to the 
 - 
getFilepublic final java.io.File getFile() - Since:
- 3.7
 
 - 
resolveFileprotected java.io.File resolveFile(java.lang.String fileName) throws java.lang.Exception- Throws:
- java.lang.Exception
- Since:
- 3.7
 
 - 
doBeforeActivateprotected void doBeforeActivate() throws java.lang.Exception- Overrides:
- doBeforeActivatein class- Lifecycle
- Throws:
- java.lang.Exception
 
 - 
doDeactivateprotected void doDeactivate() throws java.lang.Exception- Overrides:
- doDeactivatein class- UserManager
- Throws:
- java.lang.Exception
 
 - 
loadprotected void load(java.util.Map<java.lang.String,char[]> users) throws IORuntimeException- Overrides:
- loadin class- UserManager
- Throws:
- IORuntimeException
 
 - 
loadprotected void load(java.util.Map<java.lang.String,char[]> users, java.io.InputStream stream) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
saveprotected void save(java.util.Map<java.lang.String,char[]> users) throws IORuntimeException- Overrides:
- savein class- UserManager
- Throws:
- IORuntimeException
 
 - 
saveprotected void save(java.util.Map<java.lang.String,char[]> users, java.io.FileOutputStream stream) throws java.io.IOException- Throws:
- java.io.IOException
 
 
- 
 
-