public class AuthenticationDataCommand extends Object implements AuthenticationDataSource
| Modifier and Type | Field and Description |
|---|---|
protected String |
authData |
protected SocketAddress |
remoteAddress |
protected SSLSession |
sslSession |
protected String |
subscription |
| Constructor and Description |
|---|
AuthenticationDataCommand(String authData) |
AuthenticationDataCommand(String authData,
SocketAddress remoteAddress,
SSLSession sslSession) |
AuthenticationDataCommand(String authData,
SocketAddress remoteAddress,
SSLSession sslSession,
String subscription) |
AuthenticationDataCommand(String 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.
|
void |
setSubscription(String subscription)
Subscription name can be necessary for consumption
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, getHttpAuthType, getHttpHeader, hasDataFromHttpprotected final String authData
protected final SocketAddress remoteAddress
protected final SSLSession sslSession
protected String subscription
public AuthenticationDataCommand(String authData)
public AuthenticationDataCommand(String authData, SocketAddress remoteAddress, SSLSession sslSession, String subscription)
public AuthenticationDataCommand(String authData, SocketAddress remoteAddress, SSLSession sslSession)
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 void setSubscription(String subscription)
AuthenticationDataSourcesetSubscription in interface AuthenticationDataSourcepublic String getSubscription()
AuthenticationDataSourcegetSubscription in interface AuthenticationDataSourceString containing the subscription nameCopyright © 2017–2021 Apache Software Foundation. All rights reserved.