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

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

Best Java code snippets using org.apache.pulsar.client.api.AuthenticationDataProvider.hasDataFromCommand (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.apiAuthenticationDataProviderhasDataFromCommand

Javadoc

Check if data from Pulsar protocol are available.

Popular methods of AuthenticationDataProvider

  • getHttpHeaders
  • getTlsCertificates
  • getTlsPrivateKey
  • hasDataForHttp
    Check if data for HTTP are available.
  • hasDataForTls
    Check if data for TLS are available.
  • getCommandData

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • BoxLayout (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
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