public class JaasAuthenticator extends Object implements Authenticator
Authenticator for provide authentication using
Jaas @LoginModule.| Constructor and Description |
|---|
JaasAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
char[] credentials)
Authenticate given user based on defined authentication strategy.
|
void |
initialize(org.wso2.broker.common.StartupContext startupContext)
Initiate authenticator with startup context.
|
public void initialize(org.wso2.broker.common.StartupContext startupContext)
throws Exception
Authenticatorinitialize in interface AuthenticatorstartupContext - the startup context provides registered services for authenticator functionality.Exceptionpublic boolean authenticate(String username, char[] credentials) throws BrokerAuthException
Authenticatorauthenticate in interface Authenticatorusername - an usernamecredentials - the credentials of the userBrokerAuthException - if error occurred while authenticating user.Copyright © 2018 WSO2. All rights reserved.