|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.security.auth.PasswordProviders
public class PasswordProviders
Composite class which delegates to each of the configured providers in turn. The first instance which is responible for a user name wins.
Constructor Summary | |
---|---|
PasswordProviders(PasswordProvider... providers)
|
Method Summary | |
---|---|
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)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PasswordProviders(PasswordProvider... providers)
Method Detail |
---|
public boolean hasPassword(String user)
PasswordProvider
PasswordProvider.checkPassword(String, String)
.
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)
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.
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta4.2.1-r8614-Beta4.2-b41
Copyright © 2009 The University of Dundee. All Rights Reserved.