Package systems.dmx.accountmanagement
Interface AccountManager
-
public interface AccountManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
changePassword(Credentials currentCred, Credentials newCred)
Unconditionally changes an account's passwordCheckCredentialsResult
checkCredentials(Credentials credentials)
Check whether the given credentials are valid in the underlying system.void
createAccount(Credentials cred)
Unconditionally creates an account.String
name()
void
onUsernameDeleted(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
CheckCredentialsResult
for details on how to do that.- Parameters:
credentials
-- Returns:
-
-