public class AuthManager extends Object
| Constructor and Description |
|---|
AuthManager(io.ballerina.messaging.broker.common.StartupContext startupContext) |
| Modifier and Type | Method and Description |
|---|---|
SaslServer |
createSaslServer(String hostName,
String mechanism)
Create sasl server for given mechanism.
|
Authenticator |
getAuthenticator()
Provides authenticator which will be used to authenticate users.
|
Authorizer |
getAuthorizer()
Provides authorizer which will be used to authorize users for broker resources.
|
boolean |
isAuthenticationEnabled()
Provides broker authentication enabled.
|
boolean |
isAuthorizationEnabled()
Provides broker authorization enabled
|
void |
start() |
void |
stop() |
public void start()
public void stop()
public SaslServer createSaslServer(String hostName, String mechanism) throws SaslException
hostName - Hostname of the servermechanism - Sasl mechanismSaslException - Throws if server does not support for given mechanismpublic boolean isAuthenticationEnabled()
public boolean isAuthorizationEnabled()
public Authenticator getAuthenticator()
public Authorizer getAuthorizer()
Copyright © 2018 WSO2. All rights reserved.