接口的使用
org.apache.pulsar.client.api.Authentication
使用Authentication的程序包
程序包
说明
Pulsar Client API.
Helpers which provide useful functionality for the implementation of Pulsar Client API.
-
org.apache.pulsar.client.api中Authentication的使用
修饰符和类型方法说明static Authentication
Create an instance of theAuthentication
object by using the plugin class name.static Authentication
Create an instance of the Authentication-Plugin.static Authentication
Create an authentication provider for TLS based authentication.static Authentication
Create an authentication provider for token based authentication.static Authentication
Create an authentication provider for token based authentication.修饰符和类型方法说明ClientBuilder.authentication
(Authentication authentication) Set the authentication provider to use in the Pulsar client instance.类型变量类型为Authentication的org.apache.pulsar.client.api中的方法参数修饰符和类型方法说明AutoClusterFailoverBuilder.secondaryAuthentication
(Map<String, Authentication> authentication) Set secondary authentication. -
org.apache.pulsar.client.internal中Authentication的使用
修饰符和类型方法说明PulsarClientImplementationBinding.createAuthentication
(String authPluginClassName, String authParamsString) PulsarClientImplementationBinding.createAuthentication
(String authPluginClassName, Map<String, String> authParams) PulsarClientImplementationBinding.newAuthenticationTLS
(String certFilePath, String keyFilePath) PulsarClientImplementationBinding.newAuthenticationToken
(String token) PulsarClientImplementationBinding.newAuthenticationToken
(Supplier<String> supplier)