public interface Authenticator
authenticate(String, char[]) is used to authenticate user on given username and credentials.
| Modifier and Type | Method and Description |
|---|---|
AuthResult |
authenticate(String username,
char[] password)
Authenticate given user based on defined authentication strategy.
|
void |
initialize(io.ballerina.messaging.broker.common.StartupContext startupContext,
UserStore userStore,
Map<String,Object> properties)
Initiate authenticator with startup context.
|
void initialize(io.ballerina.messaging.broker.common.StartupContext startupContext,
UserStore userStore,
Map<String,Object> properties)
throws Exception
AuthResult authenticate(String username, char[] password) throws AuthException
username - an usernamepassword - the password of the userAuthException - if error occurred while authenticating user.Copyright © 2018 WSO2. All rights reserved.