|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PasswordProvider
Authentication interface responsible for checking and changing passwords. In
addition, a implementation
may claim to know nothing
for a particular user name. See checkPassword(String, String)
for
more information.
SecuritySystem
,
Permissions
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean hasPassword(String user)
checkPassword(String, String)
.
hasPassword(String)
will not do this. This is typically only of
importance during 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.
Boolean checkPassword(String user, String password)
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.
void changePassword(String user, String password) throws PasswordChangeException
PasswordChangeException
, for example if the provider uses a
read-only medium.
PasswordChangeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.