public class JaasAuthenticator extends Object implements Authenticator
Authenticator for provide authentication using
Jaas @LoginModule.| Constructor and Description |
|---|
JaasAuthenticator() |
| 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) throws AuthException
Authenticatorauthenticate in interface Authenticatorusername - an usernamepassword - the password of the userAuthException - if error occurred while authenticating user.Copyright © 2018 WSO2. All rights reserved.