public final class AuthenticationFactory extends Object
Constructor and Description |
---|
AuthenticationFactory() |
Modifier and Type | Method and Description |
---|---|
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 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.UnsupportedAuthenticationException
public 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.UnsupportedAuthenticationException
Copyright © 2017 Apache Software Foundation. All rights reserved.