public class AuthenticationDataSubscription extends Object implements AuthenticationDataSource
| Constructor and Description |
|---|
AuthenticationDataSubscription(AuthenticationDataSource authData,
String subscription) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommandData() |
SocketAddress |
getPeerAddress() |
String |
getSubscription()
Subscription name can be necessary for consumption
|
Certificate[] |
getTlsCertificates() |
boolean |
hasDataFromCommand()
Check if data from Pulsar protocol are available.
|
boolean |
hasDataFromPeer()
Check if data from peer are available.
|
boolean |
hasDataFromTls()
Check if data from TLS are available.
|
boolean |
hasSubscription()
Check if subscription is defined available.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, getHttpAuthType, getHttpHeader, hasDataFromHttp, setSubscriptionpublic AuthenticationDataSubscription(AuthenticationDataSource authData, String subscription)
public boolean hasDataFromCommand()
AuthenticationDataSourcehasDataFromCommand in interface AuthenticationDataSourcepublic String getCommandData()
getCommandData in interface AuthenticationDataSourcepublic boolean hasDataFromPeer()
AuthenticationDataSourcehasDataFromPeer in interface AuthenticationDataSourcepublic SocketAddress getPeerAddress()
getPeerAddress in interface AuthenticationDataSourceString containing the IP address of the clientpublic boolean hasDataFromTls()
AuthenticationDataSourcehasDataFromTls in interface AuthenticationDataSourcepublic Certificate[] getTlsCertificates()
getTlsCertificates in interface AuthenticationDataSourcepublic boolean hasSubscription()
AuthenticationDataSourcehasSubscription in interface AuthenticationDataSourcepublic String getSubscription()
AuthenticationDataSourcegetSubscription in interface AuthenticationDataSourceString containing the subscription nameCopyright © 2017–2022 Apache Software Foundation. All rights reserved.