public class PasswordProviders extends Object implements PasswordProvider
Constructor and Description |
---|
PasswordProviders(AtomicBoolean ignoreCaseLookup,
PasswordProvider... providers) |
PasswordProviders(PasswordProvider... providers) |
Modifier and Type | Method and Description |
---|---|
void |
changeDistinguisedName(String user,
String dn) |
void |
changePassword(String user,
String password)
Attempts to change the password for the given user.
|
Boolean |
checkPassword(String user,
String password,
boolean readOnly)
Authenticates the give user given the password token.
|
boolean |
hasPassword(String user)
Returns true if this provider considers itself responsible for the given
user name.
|
public PasswordProviders(PasswordProvider... providers)
public PasswordProviders(AtomicBoolean ignoreCaseLookup, PasswordProvider... providers)
public boolean hasPassword(String user)
PasswordProvider
PasswordProvider.checkPassword(String, String, boolean)
.
PasswordProvider.hasPassword(String)
will not do this. This is typically only of
importance during PasswordProvider.changePassword(String, String)
since a
provider which is not responsible for a password should not attempt to
change it, and before a provider has not created a user, it is also not
responsible.hasPassword
in interface PasswordProvider
public Boolean checkPassword(String user, String password, boolean readOnly)
PasswordProvider
Boolean
in order to signal that this provider is not responsible
for the given user and can make no decision. Concrete implementations may
decide to return false for all unknown users. If readOnly is false, then
some implementations may choose to create new users.checkPassword
in interface PasswordProvider
public void changePassword(String user, String password) throws PasswordChangeException
PasswordProvider
PasswordChangeException
, for example if the provider uses a
read-only medium.changePassword
in interface PasswordProvider
PasswordChangeException
public void changeDistinguisedName(String user, String dn) throws PasswordChangeException
PasswordChangeException
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.