Package org.apache.pulsar.client.impl
Class AuthenticationUtil
java.lang.Object
org.apache.pulsar.client.impl.AuthenticationUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfigureFromJsonString(String authParamsString) configureFromPulsar1AuthParamString(String authParamsString) static final AuthenticationCreate an instance of the Authentication-Plugin.static final AuthenticationCreate an instance of the Authentication-Plugin.
-
Constructor Details
-
AuthenticationUtil
public AuthenticationUtil()
-
-
Method Details
-
configureFromJsonString
public static Map<String,String> configureFromJsonString(String authParamsString) throws IOException - Throws:
IOException
-
configureFromPulsar1AuthParamString
-
create
public static final Authentication create(String authPluginClassName, String authParamsString) throws PulsarClientException.UnsupportedAuthenticationException Create an instance of the Authentication-Plugin.- Parameters:
authPluginClassName- name of the Authentication-Plugin you want to useauthParamsString- string which represents parameters for the Authentication-Plugin, e.g., "key1:val1,key2:val2"- Returns:
- instance of the Authentication-Plugin
- Throws:
PulsarClientException.UnsupportedAuthenticationException
-
create
public static final Authentication create(String authPluginClassName, Map<String, String> authParams) throws PulsarClientException.UnsupportedAuthenticationExceptionCreate an instance of the Authentication-Plugin.- Parameters:
authPluginClassName- name of the Authentication-Plugin you want to useauthParams- map which represents parameters for the Authentication-Plugin- Returns:
- instance of the Authentication-Plugin
- Throws:
PulsarClientException.UnsupportedAuthenticationException
-