Class InMemoryUserIdentityManager
- java.lang.Object
-
- io.streamthoughts.azkarra.http.security.auth.InMemoryUserIdentityManager
-
- All Implemented Interfaces:
Configurable
,UsersIdentityManager
- Direct Known Subclasses:
PropertiesFileUsersIdentityManager
public class InMemoryUserIdentityManager extends Object implements UsersIdentityManager, Configurable
SimpleUsersIdentityManager
implementation backed by a in-memory hash Map.
-
-
Constructor Summary
Constructors Constructor Description InMemoryUserIdentityManager()
Creates a newInMemoryUserIdentityManager
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addUsers(UserDetails user)
void
configure(Conf configuration)
Configures this instance with the specifiedConf
.UserDetails
deleteUsersByName(String name)
UserDetails
findUserByName(String name)
Set<String>
getUsers()
-
-
-
Constructor Detail
-
InMemoryUserIdentityManager
public InMemoryUserIdentityManager()
Creates a newInMemoryUserIdentityManager
instance.
-
-
Method Detail
-
addUsers
public void addUsers(UserDetails user)
-
deleteUsersByName
public UserDetails deleteUsersByName(String name)
-
findUserByName
public UserDetails findUserByName(String name)
- Specified by:
findUserByName
in interfaceUsersIdentityManager
-
configure
public void configure(Conf configuration)
Configures this instance with the specifiedConf
.- Specified by:
configure
in interfaceConfigurable
- Parameters:
configuration
- theConf
instance used to configure this instance.
-
-