public class AuthenticationProviderToken extends Object implements AuthenticationProvider
| Constructor and Description |
|---|
AuthenticationProviderToken() |
| Modifier and Type | Method and Description |
|---|---|
String |
authenticate(AuthenticationDataSource authData)
Validate the authentication for the given credentials with the specified authentication data.
|
void |
close() |
String |
getAuthMethodName() |
static String |
getToken(AuthenticationDataSource authData) |
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.
|
static void |
resetMetrics() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticateHttpRequestpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic static void resetMetrics()
public void initialize(ServiceConfiguration config) throws IOException, IllegalArgumentException
AuthenticationProviderinitialize in interface AuthenticationProviderconfig - broker config objectIOException - if the initialization failsIllegalArgumentExceptionpublic 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 static String getToken(AuthenticationDataSource authData) throws AuthenticationException
AuthenticationExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.