public interface ILcdPasswordProvider
Implementations can hard-code the user and password pairs, obtain them from a file, obtain them through a user dialog, etc. Implementations can cache the obtained values, although one should be careful not to introduce security risks.
Modifier and Type | Method and Description |
---|---|
void |
forgetPassword(String aRealm,
String aUser)
Resets the password for the given user within the given realm.
|
String |
getPassword(String aRealm,
String aUser)
Gets the password for the given user within the given realm.
|
String |
getUser(String aRealm)
Gets the user name for the given realm.
|
String getUser(String aRealm)
aRealm
- the context for which a user/password is required.null
if the implementation cannot
supply one.String getPassword(String aRealm, String aUser)
aRealm
- the context for which a user/password is required.aUser
- a user name that was previously returned by the
getUser(String)
method.null
if the implementation cannot
supply one.void forgetPassword(String aRealm, String aUser)
aRealm
- the context for which a user/password is required.aUser
- a user name that was previously returned by the
getUser(String)
method.