public class FileUserManager extends UserManager
ILifecycle.DeferrableActivation
Modifier and Type | Field and Description |
---|---|
protected String |
fileName |
users
Constructor and Description |
---|
FileUserManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
doBeforeActivate() |
String |
getFileName() |
protected void |
load(Map<String,char[]> users) |
protected void |
load(Map<String,char[]> users,
InputStream stream) |
protected void |
save(Map<String,char[]> users) |
protected void |
save(Map<String,char[]> users,
FileOutputStream stream) |
void |
setFileName(String fileName) |
addUser, authenticate, doActivate, doDeactivate, encrypt, getPassword, removeUser
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, getListeners, hasListeners, removeListener
protected String fileName
public String getFileName()
public void setFileName(String fileName)
protected void doBeforeActivate() throws Exception
doBeforeActivate
in class Lifecycle
Exception
protected void load(Map<String,char[]> users) throws IORuntimeException
load
in class UserManager
IORuntimeException
protected void load(Map<String,char[]> users, InputStream stream) throws IOException
IOException
protected void save(Map<String,char[]> users) throws IORuntimeException
save
in class UserManager
IORuntimeException
protected void save(Map<String,char[]> users, FileOutputStream stream) throws IOException
IOException
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html