public class AuthenticationProviderSasl extends Object implements org.apache.pulsar.broker.authentication.AuthenticationProvider
| Constructor and Description |
|---|
AuthenticationProviderSasl() |
| Modifier and Type | Method and Description |
|---|---|
String |
authenticate(org.apache.pulsar.broker.authentication.AuthenticationDataSource authData) |
boolean |
authenticateHttpRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Passed in request, set response, according to request.
|
String |
authRoleFromHttpRequest(javax.servlet.http.HttpServletRequest httpRequest)
Returns null if authentication has not completed.
|
void |
close() |
String |
getAuthMethodName() |
void |
initialize(ServiceConfiguration config) |
org.apache.pulsar.broker.authentication.AuthenticationState |
newAuthState(org.apache.pulsar.common.api.AuthData authData,
SocketAddress remoteAddress,
SSLSession sslSession) |
public void initialize(ServiceConfiguration config) throws IOException
initialize in interface org.apache.pulsar.broker.authentication.AuthenticationProviderIOExceptionpublic String authenticate(org.apache.pulsar.broker.authentication.AuthenticationDataSource authData) throws AuthenticationException
authenticate in interface org.apache.pulsar.broker.authentication.AuthenticationProviderAuthenticationExceptionpublic String getAuthMethodName()
getAuthMethodName in interface org.apache.pulsar.broker.authentication.AuthenticationProviderpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic org.apache.pulsar.broker.authentication.AuthenticationState newAuthState(org.apache.pulsar.common.api.AuthData authData, SocketAddress remoteAddress, SSLSession sslSession) throws AuthenticationException
newAuthState in interface org.apache.pulsar.broker.authentication.AuthenticationProviderAuthenticationExceptionpublic String authRoleFromHttpRequest(javax.servlet.http.HttpServletRequest httpRequest) throws AuthenticationException
AuthenticationExceptionpublic boolean authenticateHttpRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
authenticateHttpRequest in interface org.apache.pulsar.broker.authentication.AuthenticationProviderExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.