public class AuthenticationBasic extends Object implements Authentication, EncodedAuthenticationParameterSupport
| Constructor and Description |
|---|
AuthenticationBasic() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(Map<String,String> authParams)
Configure the authentication plugins with the supplied parameters
|
void |
configure(String encodedAuthParamString)
Plugins which use ":" and/or "," in a configuration parameter value need to implement this interface.
|
AuthenticationDataProvider |
getAuthData() |
String |
getAuthMethodName() |
void |
start()
Initialize the authentication provider
|
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getAuthMethodName()
getAuthMethodName in interface Authenticationpublic AuthenticationDataProvider getAuthData() throws PulsarClientException
getAuthData in interface AuthenticationPulsarClientException.GettingAuthenticationDataException - if there was error getting the authentication data to usePulsarClientException - any other errorpublic void configure(Map<String,String> authParams)
Authenticationconfigure in interface Authenticationpublic void configure(String encodedAuthParamString)
EncodedAuthenticationParameterSupportconfigure in interface EncodedAuthenticationParameterSupportpublic void start()
throws PulsarClientException
Authenticationstart in interface AuthenticationPulsarClientExceptionCopyright © 2017–2018 Apache Software Foundation. All rights reserved.