Class AuthenticationDataSubscription
java.lang.Object
org.apache.pulsar.broker.authentication.AuthenticationDataSubscription
- All Implemented Interfaces:
AuthenticationDataSource
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationDataSubscription(AuthenticationDataSource authData, String subscription) -
Method Summary
Modifier and TypeMethodDescriptionSubscription name can be necessary for consumption.booleanCheck if data from Pulsar protocol are available.booleanCheck if data from peer are available.booleanCheck if data from TLS are available.booleanCheck if subscription is defined available.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.broker.authentication.AuthenticationDataSource
authenticate, getHttpAuthType, getHttpHeader, hasDataFromHttp, setSubscription
-
Constructor Details
-
AuthenticationDataSubscription
-
-
Method Details
-
hasDataFromCommand
public boolean hasDataFromCommand()Description copied from interface:AuthenticationDataSourceCheck if data from Pulsar protocol are available.- Specified by:
hasDataFromCommandin interfaceAuthenticationDataSource- Returns:
- true if this authentication data contain data from Pulsar protocol
-
getCommandData
- Specified by:
getCommandDatain interfaceAuthenticationDataSource- Returns:
- authentication data which is stored in a command
-
hasDataFromPeer
public boolean hasDataFromPeer()Description copied from interface:AuthenticationDataSourceCheck if data from peer are available.- Specified by:
hasDataFromPeerin interfaceAuthenticationDataSource- Returns:
- true if this authentication data contain data from peer
-
getPeerAddress
- Specified by:
getPeerAddressin interfaceAuthenticationDataSource- Returns:
- a
Stringcontaining the IP address of the client
-
hasDataFromTls
public boolean hasDataFromTls()Description copied from interface:AuthenticationDataSourceCheck if data from TLS are available.- Specified by:
hasDataFromTlsin interfaceAuthenticationDataSource- Returns:
- true if this authentication data contain data from TLS
-
getTlsCertificates
- Specified by:
getTlsCertificatesin interfaceAuthenticationDataSource- Returns:
- a client certificate chain, or null if the data are not available
-
hasSubscription
public boolean hasSubscription()Description copied from interface:AuthenticationDataSourceCheck if subscription is defined available.- Specified by:
hasSubscriptionin interfaceAuthenticationDataSource- Returns:
- true if this authentication data contain subscription
-
getSubscription
Description copied from interface:AuthenticationDataSourceSubscription name can be necessary for consumption.- Specified by:
getSubscriptionin interfaceAuthenticationDataSource- Returns:
- a
Stringcontaining the subscription name
-
getAuthData
-