ZMObject
└─ZMAuthenticationManager
public class ZMAuthenticationManager
extends ZMObject
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| void | addProvider(string auth, boolean default) Add an authentication provider (class). |
| string | encryptPassword(string plaintext, string salt) Encrypt a given password. |
| ZMAuthentication | Get the default provider. |
| protected array | getImplementations(string class) Get instances of all registered providers. |
| static void | instance() Get instance. |
| string | Generate a new random password. |
| boolean | validatePassword(string plaintext, string encrypted) Validate the given clear text password against the encrypted one. |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMAuthenticationManager()
Create new instance.
public void addProvider(string auth, boolean default)
Add an authentication provider (class).
false.public string encryptPassword(string plaintext, string salt)
Encrypt a given password.
null.public ZMAuthentication getDefaultProvider()
Get the default provider.
null if none are configured.protected array getImplementations(string class)
Get instances of all registered providers.
This method is part of the internal optimizations to allow to register class names, rather than actual instances.
null.ZMAuthentication instances.public static void instance()
Get instance.
public string mkPassword()
Generate a new random password.
public boolean validatePassword(string plaintext, string encrypted)
Validate the given clear text password against the encrypted one.
true if the plain text password matches the encrypted, false if not.
Authentication service.
Delegates to one or more
ZMAuthenticationproviders.If no provider is set as default, the first registered provider will be taken to encrypt passwords.
.