public class PasswordProvider extends Object
IPasswordProvider.
Using this factory one can implement different strategies for the
IAuthenticationHandler to receive its passwords.
First, a password attached to the document itself (via the options when
opening) can be looked up.
Second, an IPasswordProvider attached to the document itself (via the
options when opening) can be looked up.
Third, a global IPasswordProvider attached to the current thread can
be looked up.
Fourth, a globally unique IPasswordProvider can be looked up.
While an ISecurityHandler or IAuthenticationHandler does not
need to use these features, the standard implementations do.
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_PASSWORD |
static String |
ATTR_PASSWORDPROVIDER |
| Modifier and Type | Method and Description |
|---|---|
static de.intarsys.tools.authenticate.IPasswordProvider |
get()
Return the unique factory.
|
static char[] |
getPassword(STDocument doc) |
static de.intarsys.tools.authenticate.IPasswordProvider |
getPasswordProvider(STDocument doc) |
static void |
set(de.intarsys.tools.authenticate.IPasswordProvider unique)
Set the unique factory.
|
static void |
setPassword(Map options,
char[] password) |
static void |
setPasswordProvider(Map options,
de.intarsys.tools.authenticate.IPasswordProvider passwordProvider) |
static void |
setThreadLocal(de.intarsys.tools.authenticate.IPasswordProvider passwordProvider) |
public static final String ATTR_PASSWORD
public static final String ATTR_PASSWORDPROVIDER
public static de.intarsys.tools.authenticate.IPasswordProvider get()
public static char[] getPassword(STDocument doc)
public static de.intarsys.tools.authenticate.IPasswordProvider getPasswordProvider(STDocument doc)
public static void set(de.intarsys.tools.authenticate.IPasswordProvider unique)
unique - The new unique factory.public static void setPassword(Map options, char[] password)
public static void setPasswordProvider(Map options, de.intarsys.tools.authenticate.IPasswordProvider passwordProvider)
public static void setThreadLocal(de.intarsys.tools.authenticate.IPasswordProvider passwordProvider)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.