org.mmbase.util
Class PasswordGeneratorModule

java.lang.Object
  extended by org.mmbase.util.functions.FunctionProvider
      extended by org.mmbase.util.functions.DescribedFunctionProvider
          extended by org.mmbase.module.Module
              extended by org.mmbase.util.PasswordGeneratorModule
All Implemented Interfaces:
Descriptor, PasswordGeneratorInterface

public class PasswordGeneratorModule
extends Module
implements PasswordGeneratorInterface


Field Summary
 
Fields inherited from class org.mmbase.module.Module
configurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIME
 
Fields inherited from class org.mmbase.util.functions.DescribedFunctionProvider
description, guiName, name
 
Fields inherited from class org.mmbase.util.functions.FunctionProvider
functions, getFunctions
 
Constructor Summary
PasswordGeneratorModule()
           
 
Method Summary
 String getPassword()
          Generate a password, based on a default template.
 String getPassword(String t)
          Generate a password, based on the given template.
 void init()
          Initializes the module.
 void onload()
          Called when the module is loaded.
 void reload()
          Called when the module is reloaded.
 void shutdown()
          Called when the module is shut down (removed).
 void unload()
          Called when the module is unloaded.
 
Methods inherited from class org.mmbase.module.Module
addInitParameters, checkModules, getInitParameter, getInitParameter, getInitParameter, getInitParameters, getInitParameters, getMaintainer, getModule, getModule, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModuleReader, getModules, getState, getStates, getVersion, hasModule, hasStarted, loadInitParameters, loadInitParameters, maintainance, setInitParameter, setMaintainer, setState, setVersion, shutdownModules, startModule, startModules
 
Methods inherited from class org.mmbase.util.functions.DescribedFunctionProvider
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setName
 
Methods inherited from class org.mmbase.util.functions.FunctionProvider
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordGeneratorModule

public PasswordGeneratorModule()
Method Detail

onload

public void onload()
Called when the module is loaded. Not used.

Overrides:
onload in class Module

reload

public void reload()
Called when the module is reloaded. Tries to retrieve a default template for a password from the template property from the module configuration file. Not used.


init

public void init()
Initializes the module. Tries to retrieve a default template for a password from the template property from the module configuration file.

Overrides:
init in class Module

unload

public void unload()
Called when the module is unloaded. Not used.


shutdown

public void shutdown()
Called when the module is shut down (removed). Not used.

Overrides:
shutdown in class Module

getPassword

public String getPassword()
Description copied from interface: PasswordGeneratorInterface
Generate a password, based on a default template.

Specified by:
getPassword in interface PasswordGeneratorInterface
Returns:
the generated password.

getPassword

public String getPassword(String t)
Description copied from interface: PasswordGeneratorInterface
Generate a password, based on the given template.

Specified by:
getPassword in interface PasswordGeneratorInterface
Parameters:
t - the template the password should be based on.
Returns:
the generated password.


MMBase 2.0-SNAPSHOT - null