Class AuthenticationDataCommand
java.lang.Object
org.apache.pulsar.broker.authentication.AuthenticationDataCommand
- All Implemented Interfaces:
AuthenticationDataSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final SocketAddressprotected final SSLSession -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationDataCommand(String authData) AuthenticationDataCommand(String authData, SocketAddress remoteAddress, SSLSession sslSession) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if data from Pulsar protocol are available.booleanCheck if data from peer are available.booleanCheck if data from TLS are 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, getSubscription, hasDataFromHttp, hasSubscription, setSubscription
-
Field Details
-
authData
-
remoteAddress
-
sslSession
-
-
Constructor Details
-
AuthenticationDataCommand
-
AuthenticationDataCommand
public AuthenticationDataCommand(String authData, SocketAddress remoteAddress, SSLSession sslSession)
-
-
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
-