public class AuthenticationProviderSasl extends Object implements org.apache.pulsar.broker.authentication.AuthenticationProvider
AuthenticationProvider.authenticate(AuthenticationDataSource). As the Javadoc for the interface's method
indicates, this method should only be implemented when using single stage authentication. In the case of this
provider, the authentication is multi-stage.| Constructor and Description |
|---|
AuthenticationProviderSasl() |
| Modifier and Type | Method and Description |
|---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, authenticateAsync, authenticateHttpRequestAsyncpublic void initialize(ServiceConfiguration config) throws IOException
initialize in interface org.apache.pulsar.broker.authentication.AuthenticationProviderIOExceptionpublic 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.