类 AuthenticationUtil
java.lang.Object
org.apache.pulsar.client.impl.AuthenticationUtil
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明configureFromJsonString(String authParamsString) configureFromPulsar1AuthParamString(String authParamsString) static final AuthenticationCreate an instance of the Authentication-Plugin.static final AuthenticationCreate an instance of the Authentication-Plugin.
-
构造器详细资料
-
AuthenticationUtil
public AuthenticationUtil()
-
-
方法详细资料
-
configureFromJsonString
public static Map<String,String> configureFromJsonString(String authParamsString) throws IOException - 抛出:
IOException
-
configureFromPulsar1AuthParamString
-
create
public static final Authentication create(String authPluginClassName, String authParamsString) throws PulsarClientException.UnsupportedAuthenticationException Create an instance of the Authentication-Plugin.- 参数:
authPluginClassName- name of the Authentication-Plugin you want to useauthParamsString- string which represents parameters for the Authentication-Plugin, e.g., "key1:val1,key2:val2"- 返回:
- instance of the Authentication-Plugin
- 抛出:
PulsarClientException.UnsupportedAuthenticationException
-
create
public static final Authentication create(String authPluginClassName, Map<String, String> authParams) throws PulsarClientException.UnsupportedAuthenticationExceptionCreate an instance of the Authentication-Plugin.- 参数:
authPluginClassName- name of the Authentication-Plugin you want to useauthParams- map which represents parameters for the Authentication-Plugin- 返回:
- instance of the Authentication-Plugin
- 抛出:
PulsarClientException.UnsupportedAuthenticationException
-