public class DefaultAuthenticator extends Object implements Authenticator
Authenticator.| Constructor and Description |
|---|
DefaultAuthenticator() |
| 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.
|
public void initialize(io.ballerina.messaging.broker.common.StartupContext startupContext,
UserStore userStore,
Map<String,Object> properties)
throws Exception
Authenticatorinitialize in interface AuthenticatorstartupContext - the startup context provides registered services for authenticator functionality.userStore - UserStore to get the user informationproperties - set of propertiesExceptionpublic AuthResult authenticate(String username, char[] password)
Authenticatorauthenticate in interface Authenticatorusername - an usernamepassword - the password of the userCopyright © 2018 WSO2. All rights reserved.