public class AuthenticationProviderList extends Object implements AuthenticationProvider
| Constructor and Description |
|---|
AuthenticationProviderList(List<AuthenticationProvider> providers) |
| Modifier and Type | Method and Description |
|---|---|
String |
authenticate(AuthenticationDataSource authData)
Validate the authentication for the given credentials with the specified authentication data.
|
boolean |
authenticateHttpRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Set response, according to passed in request.
|
void |
close() |
String |
getAuthMethodName() |
List<AuthenticationProvider> |
getProviders() |
void |
initialize(ServiceConfiguration config)
Perform initialization for the authentication provider
|
AuthenticationState |
newAuthState(org.apache.pulsar.common.api.AuthData authData,
SocketAddress remoteAddress,
SSLSession sslSession)
Create an authentication data State use passed in AuthenticationDataSource.
|
public AuthenticationProviderList(List<AuthenticationProvider> providers)
public List<AuthenticationProvider> getProviders()
public void initialize(ServiceConfiguration config) throws IOException
AuthenticationProviderinitialize in interface AuthenticationProviderconfig - broker config objectIOException - if the initialization failspublic String getAuthMethodName()
getAuthMethodName in interface AuthenticationProviderpublic String authenticate(AuthenticationDataSource authData) throws AuthenticationException
AuthenticationProviderauthenticate in interface AuthenticationProviderauthData - provider specific authentication dataAuthenticationException - if the credentials are not validpublic AuthenticationState newAuthState(org.apache.pulsar.common.api.AuthData authData, SocketAddress remoteAddress, SSLSession sslSession) throws AuthenticationException
AuthenticationProvidernewAuthState in interface AuthenticationProviderAuthenticationExceptionpublic boolean authenticateHttpRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
AuthenticationProviderauthenticateHttpRequest in interface AuthenticationProviderExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.