| Constructor and Description |
|---|
FileBasedUserStore() |
| Modifier and Type | Method and Description |
|---|---|
AuthResult |
authenticate(String username,
char... credentials)
Authenticate given user with credentials.
|
Set<String> |
getUserGroupsList(String userName)
Retrieve the list of userRegistry for given username.
|
void |
initialize(io.ballerina.messaging.broker.common.StartupContext startupContext,
Map<String,String> properties)
Initialize authorization strategy based on given auth configuration, user store manager and data source.
|
boolean |
isUserExists(String username)
Verify given username against underlying user store
|
public void initialize(io.ballerina.messaging.broker.common.StartupContext startupContext,
Map<String,String> properties)
throws Exception
UserStoreinitialize in interface UserStorestartupContext - the startup context provides registered services for authorizerproperties - user store propertiesExceptionpublic AuthResult authenticate(String username, char... credentials) throws AuthException
authenticate in interface UserStoreusername - userNamecredentials - CredentialsAuthException - Exception throws when authentication failed.public boolean isUserExists(String username)
UserStoreisUserExists in interface UserStoreusername - username to verifypublic Set<String> getUserGroupsList(String userName)
getUserGroupsList in interface UserStoreuserName - user nameCopyright © 2018 WSO2. All rights reserved.