接口的使用
org.apache.pulsar.client.api.AuthenticationDataProvider
-
org.apache.pulsar.client.api中AuthenticationDataProvider的使用
修饰符和类型方法说明default AuthenticationDataProvider
Authentication.getAuthData()
default AuthenticationDataProvider
Authentication.getAuthData
(String brokerHostName) Get/Create an authentication data provider which provides the data that this client will be sent to the broker.修饰符和类型方法说明default void
Authentication.authenticationStage
(String requestUrl, AuthenticationDataProvider authData, Map<String, String> previousResHeaders, CompletableFuture<Map<String, String>> authFuture) An authentication Stage.Authentication.newRequestHeader
(String hostName, AuthenticationDataProvider authData, Map<String, String> previousResHeaders) Add an authenticationStage that will complete along with authFuture.