public interface Authenticator
authenticate(String, char[]) is used to authenticate user on given username and credentials.
| 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.
|
void initialize(org.wso2.broker.common.StartupContext startupContext)
throws Exception
startupContext - the startup context provides registered services for authenticator functionality.Exceptionboolean authenticate(String username, char[] credentials) throws BrokerAuthException
username - an usernamecredentials - the credentials of the userBrokerAuthException - if error occurred while authenticating user.Copyright © 2018 WSO2. All rights reserved.