public interface AuthenticationDataSource
| Modifier and Type | Method and Description |
|---|---|
default org.apache.pulsar.common.api.AuthData |
authenticate(org.apache.pulsar.common.api.AuthData data)
Deprecated.
|
default String |
getCommandData() |
default String |
getHttpAuthType() |
default String |
getHttpHeader(String name) |
default SocketAddress |
getPeerAddress() |
default String |
getSubscription()
Subscription name can be necessary for consumption.
|
default Certificate[] |
getTlsCertificates() |
default boolean |
hasDataFromCommand()
Check if data from Pulsar protocol are available.
|
default boolean |
hasDataFromHttp()
Check if data from HTTP are available.
|
default boolean |
hasDataFromPeer()
Check if data from peer are available.
|
default boolean |
hasDataFromTls()
Check if data from TLS are available.
|
default boolean |
hasSubscription()
Check if subscription is defined available.
|
default void |
setSubscription(String subscription)
Subscription name can be necessary for consumption.
|
default boolean hasDataFromTls()
default Certificate[] getTlsCertificates()
default boolean hasDataFromHttp()
default String getHttpAuthType()
null if the request is not be authenticated.default String getHttpHeader(String name)
String containing the value of the specified header, or null if the header
does not exist.default boolean hasDataFromCommand()
default String getCommandData()
@Deprecated default org.apache.pulsar.common.api.AuthData authenticate(org.apache.pulsar.common.api.AuthData data) throws AuthenticationException
AuthenticationProvider or AuthenticationState.AuthenticationExceptiondefault boolean hasDataFromPeer()
default SocketAddress getPeerAddress()
String containing the IP address of the clientdefault boolean hasSubscription()
default String getSubscription()
String containing the subscription namedefault void setSubscription(String subscription)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.