Package systems.dmx.accountmanagement
Interface AccountManager
-
public interface AccountManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangePassword(Credentials currentCred, Credentials newCred)Unconditionally changes an account's passwordCheckCredentialsResultcheckCredentials(Credentials credentials)Check whether the given credentials are valid in the underlying system.voidcreateAccount(Credentials cred)Unconditionally creates an account.Stringname()voidonUsernameDeleted(String username)Called by the DMX platform when a username topic has been deleted.
-
-
-
Method Detail
-
name
String name()
-
createAccount
void createAccount(Credentials cred)
Unconditionally creates an account.
-
changePassword
void changePassword(Credentials currentCred, Credentials newCred)
Unconditionally changes an account's password
-
onUsernameDeleted
void onUsernameDeleted(String username)
Called by the DMX platform when a username topic has been deleted. This indicates the no more logins will happen with that username. The implementation may choose to remove what is has stored about that user, too.- Parameters:
username-
-
checkCredentials
CheckCredentialsResult checkCredentials(Credentials credentials)
Check whether the given credentials are valid in the underlying system.Non-DMX implementations are supposed to tell the platform via the return value, that a username topic lookup is necessary. See
CheckCredentialsResultfor details on how to do that.- Parameters:
credentials-- Returns:
-
-