public interface UserStore
| Modifier and Type | Method and Description |
|---|---|
AuthResult |
authenticate(String username,
char... credentials)
Authenticate given user with credentials.
|
Set<String> |
getUserGroupsList(String userId)
Get set of user Groups for the user
|
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
|
void initialize(io.ballerina.messaging.broker.common.StartupContext startupContext,
Map<String,String> properties)
throws Exception
startupContext - the startup context provides registered services for authorizerproperties - user store propertiesExceptionSet<String> getUserGroupsList(String userId) throws AuthException
userId - user idAuthException - throws if error occurs while authorizing userAuthResult authenticate(String username, char... credentials) throws AuthException
username - userNamecredentials - credentialsAuthException - Exception throws when authentication failed.boolean isUserExists(String username)
username - username to verifyCopyright © 2018 WSO2. All rights reserved.