public interface AuthenticationProvider extends Closeable
| Modifier and Type | Method and Description |
|---|---|
default String |
authenticate(AuthenticationDataSource authData)
Validate the authentication for the given credentials with the specified authentication data.
|
default boolean |
authenticateHttpRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Set response, according to passed in request.
|
String |
getAuthMethodName() |
void |
initialize(ServiceConfiguration config)
Perform initialization for the authentication provider
|
default AuthenticationState |
newAuthState(org.apache.pulsar.common.api.AuthData authData,
SocketAddress remoteAddress,
SSLSession sslSession)
Create an authentication data State use passed in AuthenticationDataSource.
|
void initialize(ServiceConfiguration config) throws IOException
config - broker config objectIOException - if the initialization failsString getAuthMethodName()
default String authenticate(AuthenticationDataSource authData) throws AuthenticationException
authData - provider specific authentication dataAuthenticationException - if the credentials are not validdefault AuthenticationState newAuthState(org.apache.pulsar.common.api.AuthData authData, SocketAddress remoteAddress, SSLSession sslSession) throws AuthenticationException
AuthenticationExceptiondefault boolean authenticateHttpRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
ExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.