Tabnine Logo
AuthenticationDataProvider.getCommandData
Code IndexAdd Tabnine to your IDE (free)

How to use
getCommandData
method
in
org.apache.pulsar.client.api.AuthenticationDataProvider

Best Java code snippets using org.apache.pulsar.client.api.AuthenticationDataProvider.getCommandData (Showing top 4 results out of 315)

origin: apache/pulsar

protected ByteBuf newConnectCommand() throws PulsarClientException {
  String authData = "";
  if (authentication.getAuthData().hasDataFromCommand()) {
    authData = authentication.getAuthData().getCommandData();
  }
  return Commands.newConnect(authentication.getAuthMethodName(), authData, this.protocolVersion,
      getPulsarClientVersion(), proxyToTargetBrokerAddress, null, null, null);
}
origin: org.apache.pulsar/pulsar-proxy

@Override
protected ByteBuf newConnectCommand() throws PulsarClientException {
  if (log.isDebugEnabled()) {
    log.debug(
        "New Connection opened via ProxyClientCnx with params clientAuthRole = {}, clientAuthData = {}, clientAuthMethod = {}",
        clientAuthRole, clientAuthData, clientAuthMethod);
  }
  String authData = null;
  if (authentication.getAuthData().hasDataFromCommand()) {
    authData = authentication.getAuthData().getCommandData();
  }
  return Commands.newConnect(authentication.getAuthMethodName(), authData, protocolVersion,
      getPulsarClientVersion(), proxyToTargetBrokerAddress, clientAuthRole, clientAuthData, clientAuthMethod);
}
origin: org.apache.pulsar/pulsar-proxy

@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
  this.ctx = ctx;
  // Send the Connect command to broker
  String authData = "";
  if (authentication.getAuthData().hasDataFromCommand()) {
    authData = authentication.getAuthData().getCommandData();
  }
  ByteBuf command = null;
  command = Commands.newConnect(authentication.getAuthMethodName(), authData, protocolVersion, "Pulsar proxy",
      null /* target broker */, originalPrincipal, clientAuthData, clientAuthMethod);
  outboundChannel.writeAndFlush(command);
  outboundChannel.read();
}
origin: org.apache.pulsar/pulsar-client-original

protected ByteBuf newConnectCommand() throws PulsarClientException {
  String authData = "";
  if (authentication.getAuthData().hasDataFromCommand()) {
    authData = authentication.getAuthData().getCommandData();
  }
  return Commands.newConnect(authentication.getAuthMethodName(), authData, this.protocolVersion,
      getPulsarClientVersion(), proxyToTargetBrokerAddress, null, null, null);
}
org.apache.pulsar.client.apiAuthenticationDataProvidergetCommandData

Popular methods of AuthenticationDataProvider

  • getHttpHeaders
  • getTlsCertificates
  • getTlsPrivateKey
  • hasDataForHttp
    Check if data for HTTP are available.
  • hasDataForTls
    Check if data for TLS are available.
  • hasDataFromCommand
    Check if data from Pulsar protocol are available.

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now