Codota Logo
ConnectionConfiguration.getDnssecMode
Code IndexAdd Codota to your IDE (free)

How to use
getDnssecMode
method
in
org.jivesoftware.smack.ConnectionConfiguration

Best Java code snippets using org.jivesoftware.smack.ConnectionConfiguration.getDnssecMode (Showing top 2 results out of 315)

  • Common ways to obtain ConnectionConfiguration
private void myMethod () {
ConnectionConfiguration c =
  • Codota IconString host;String serviceName;new ConnectionConfiguration(host, port, serviceName)
  • Codota IconString host;new ConnectionConfiguration(host, port)
  • Codota IconString serviceName;new ConnectionConfiguration(serviceName)
  • Smart code suggestions by Codota
}
origin: igniterealtime/Smack

/**
 * Populates {@link #hostAddresses} with the resolved addresses or with the configured host address. If no host
 * address was configured and all lookups failed, for example with NX_DOMAIN, then {@link #hostAddresses} will be
 * populated with the empty list.
 *
 * @return a list of host addresses where DNS (SRV) RR resolution failed.
 */
protected List<HostAddress> populateHostAddresses() {
  List<HostAddress> failedAddresses = new LinkedList<>();
  if (config.hostAddress != null) {
    hostAddresses = new ArrayList<>(1);
    HostAddress hostAddress = new HostAddress(config.port, config.hostAddress);
    hostAddresses.add(hostAddress);
  }
  else if (config.host != null) {
    hostAddresses = new ArrayList<>(1);
    HostAddress hostAddress = DNSUtil.getDNSResolver().lookupHostAddress(config.host, config.port, failedAddresses, config.getDnssecMode());
    if (hostAddress != null) {
      hostAddresses.add(hostAddress);
    }
  } else {
    // N.B.: Important to use config.serviceName and not AbstractXMPPConnection.serviceName
    DnsName dnsName = DnsName.from(config.getXMPPServiceDomain());
    hostAddresses = DNSUtil.resolveXMPPServiceDomain(dnsName, failedAddresses, config.getDnssecMode());
  }
  // Either the populated host addresses are not empty *or* there must be at least one failed address.
  assert (!hostAddresses.isEmpty() || !failedAddresses.isEmpty());
  return failedAddresses;
}
origin: org.igniterealtime.smack/smack-core

/**
 * Populates {@link #hostAddresses} with the resolved addresses or with the configured host address. If no host
 * address was configured and all lookups failed, for example with NX_DOMAIN, then {@link #hostAddresses} will be
 * populated with the empty list.
 *
 * @return a list of host addresses where DNS (SRV) RR resolution failed.
 */
protected List<HostAddress> populateHostAddresses() {
  List<HostAddress> failedAddresses = new LinkedList<>();
  if (config.hostAddress != null) {
    hostAddresses = new ArrayList<>(1);
    HostAddress hostAddress = new HostAddress(config.port, config.hostAddress);
    hostAddresses.add(hostAddress);
  }
  else if (config.host != null) {
    hostAddresses = new ArrayList<>(1);
    HostAddress hostAddress = DNSUtil.getDNSResolver().lookupHostAddress(config.host, config.port, failedAddresses, config.getDnssecMode());
    if (hostAddress != null) {
      hostAddresses.add(hostAddress);
    }
  } else {
    // N.B.: Important to use config.serviceName and not AbstractXMPPConnection.serviceName
    DnsName dnsName = DnsName.from(config.getXMPPServiceDomain());
    hostAddresses = DNSUtil.resolveXMPPServiceDomain(dnsName, failedAddresses, config.getDnssecMode());
  }
  // Either the populated host addresses are not empty *or* there must be at least one failed address.
  assert (!hostAddresses.isEmpty() || !failedAddresses.isEmpty());
  return failedAddresses;
}
org.jivesoftware.smackConnectionConfigurationgetDnssecMode

Popular methods of ConnectionConfiguration

  • <init>
  • setSecurityMode
    Sets the TLS security mode used when making the connection. By default, the mode is SecurityMode#ena
  • setCompressionEnabled
    Sets if the connection is going to use stream compression. Stream compression will be requested afte
  • setDebuggerEnabled
    Sets if the new connection about to be establish is going to be debugged. By default the value of Co
  • setReconnectionAllowed
    Sets if the reconnection mechanism is allowed to be used. By default reconnection is allowed.
  • setSASLAuthenticationEnabled
    Sets whether the client will use SASL authentication when logging into the server. If SASL authentic
  • setRosterLoadedAtLogin
    Sets if the roster will be loaded from the server when logging in. This is the common behaviour for
  • getResource
    Returns the resource to use when trying to reconnect to the server.
  • getUsername
    Returns the username to use when trying to reconnect to the server.
  • isCompressionEnabled
    Returns true if the connection is going to use stream compression. Stream compression will be reques
  • setSendPresence
    Sets if an initial available presence will be sent to the server. By default an available presence w
  • setSocketFactory
    Sets the socket factory used to create new xmppConnection sockets. This is useful when connecting th
  • setSendPresence,
  • setSocketFactory,
  • getCallbackHandler,
  • getPassword,
  • getSecurityMode,
  • isSendPresence,
  • setCallbackHandler,
  • getHost,
  • getPort,
  • getServiceName

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Collectors (java.util.stream)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now