public class AuthenticationUtil extends Object
| Constructor and Description |
|---|
AuthenticationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
configureFromJsonString(String authParamsString) |
static Map<String,String> |
configureFromPulsar1AuthParamString(String authParamsString) |
static Authentication |
create(String authPluginClassName,
Map<String,String> authParams)
Create an instance of the Authentication-Plugin
|
static Authentication |
create(String authPluginClassName,
String authParamsString)
Create an instance of the Authentication-Plugin
|
public static Map<String,String> configureFromJsonString(String authParamsString) throws IOException
IOExceptionpublic static Map<String,String> configureFromPulsar1AuthParamString(String authParamsString)
public static final Authentication create(String authPluginClassName, String authParamsString) throws PulsarClientException.UnsupportedAuthenticationException
authPluginClassName - name of the Authentication-Plugin you want to useauthParamsString - string which represents parameters for the Authentication-Plugin, e.g., "key1:val1,key2:val2"PulsarClientException.UnsupportedAuthenticationExceptionpublic static final Authentication create(String authPluginClassName, Map<String,String> authParams) throws PulsarClientException.UnsupportedAuthenticationException
authPluginClassName - name of the Authentication-Plugin you want to useauthParams - map which represents parameters for the Authentication-PluginPulsarClientException.UnsupportedAuthenticationExceptionCopyright © 2017–2020 Apache Software Foundation. All rights reserved.