Interface AuthenticationManagement
Application component for authentication related use cases.
- Author:
 - Oliver Drotbohm
 
- 
Method Summary
Modifier and TypeMethodDescriptionReturns allUserAccounts for the users currently logged into the system.Returns theUserAccountof the currently logged in user orOptional.empty()if no-one is currently logged in.booleanmatches(Password.UnencryptedPassword candidate, Password.EncryptedPassword existing) Returns whether the given candidatePasswordmatches the given existing one.voidupdateAuthentication(UserAccount account) Updates the current authentication to the givenUserAccount. 
- 
Method Details
- 
getCurrentUser
Optional<UserAccount> getCurrentUser()Returns theUserAccountof the currently logged in user orOptional.empty()if no-one is currently logged in.- Returns:
 - will never be null.
 
 - 
matches
boolean matches(@Nullable Password.UnencryptedPassword candidate, Password.EncryptedPassword existing) Returns whether the given candidatePasswordmatches the given existing one.- Parameters:
 candidate- can be null.existing- must not be null.- Returns:
 - will never be null.
 
 - 
updateAuthentication
Updates the current authentication to the givenUserAccount.- Parameters:
 account- must not be null.- Since:
 - 7.5
 
 - 
getCurrentlyLoggedInUserAccounts
Streamable<UserAccount> getCurrentlyLoggedInUserAccounts()Returns allUserAccounts for the users currently logged into the system.- Returns:
 - will never be null.
 - Since:
 - 8.1
 
 
 -