Tabnine Logo
UsernamePasswordCredentials.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
sockslib.common.UsernamePasswordCredentials
constructor

Best Java code snippets using sockslib.common.UsernamePasswordCredentials.<init> (Showing top 12 results out of 315)

origin: theotherp/nzbhydra2

/**
 * Constructs a Socks5 instance.
 *
 * @param socketAddress SOCKS5 server's address.
 * @param username      Username of the authentication.
 * @param password      Password of the authentication.
 */
public Socks5(SocketAddress socketAddress, String username, String password) {
  this(socketAddress);
  setCredentials(new UsernamePasswordCredentials(username, password));
}
origin: fengyouchao/sockslib

/**
 * Constructs a Socks5 instance.
 *
 * @param socketAddress SOCKS5 server's address.
 * @param username      Username of the authentication.
 * @param password      Password of the authentication.
 */
public Socks5(SocketAddress socketAddress, String username, String password) {
 this(socketAddress);
 setCredentials(new UsernamePasswordCredentials(username, password));
}
origin: theotherp/nzbhydra2

@Override
public void read(InputStream inputStream) throws SocksException, IOException {
  version = checkEnd(inputStream.read());
  usernameLength = checkEnd(inputStream.read());
  username = readString(inputStream, usernameLength);
  passwordLength = checkEnd(inputStream.read());
  password = readString(inputStream, passwordLength);
  credentials = new UsernamePasswordCredentials(username, password);
}
origin: fengyouchao/sockslib

@Override
public void read(InputStream inputStream) throws SocksException, IOException {
 version = checkEnd(inputStream.read());
 usernameLength = checkEnd(inputStream.read());
 username = readString(inputStream, usernameLength);
 passwordLength = checkEnd(inputStream.read());
 password = readString(inputStream, passwordLength);
 credentials = new UsernamePasswordCredentials(username, password);
}
origin: theotherp/nzbhydra2

user = values[0].split(":");
address = values[1].split(":");
credentials = new UsernamePasswordCredentials(user[0], user[1]);
origin: fengyouchao/sockslib

user = values[0].split(":");
address = values[1].split(":");
credentials = new UsernamePasswordCredentials(user[0], user[1]);
origin: fengyouchao/sockslib

Socks5 proxy = new Socks5(new InetSocketAddress(proxyHost, proxyPort));
if (username != null && password != null) {
 proxy.setCredentials(new UsernamePasswordCredentials(username, password));
origin: theotherp/nzbhydra2

Socks5 proxy = new Socks5(new InetSocketAddress(proxyHost, proxyPort));
if (username != null && password != null) {
  proxy.setCredentials(new UsernamePasswordCredentials(username, password));
origin: theotherp/nzbhydra2

Socks5 proxy = new Socks5(new InetSocketAddress(proxyHost, proxyPort));
if (username != null && password != null) {
  proxy.setCredentials(new UsernamePasswordCredentials(username, password));
origin: fengyouchao/sockslib

Socks5 proxy = new Socks5(new InetSocketAddress(proxyHost, proxyPort));
if (username != null && password != null) {
 proxy.setCredentials(new UsernamePasswordCredentials(username, password));
origin: theotherp/nzbhydra2

  return new Socks5(host, port);
} else {
  return new Socks5(host, port, new UsernamePasswordCredentials(username, password));
socks = new SSLSocks5(new InetSocketAddress(host, port), configuration);
if (!Strings.isNullOrEmpty(username)) {
  socks.setCredentials(new UsernamePasswordCredentials(username, password));
socks = new SSLSocks5(new InetSocketAddress(host, port), configuration);
if (!Strings.isNullOrEmpty(username)) {
  socks.setCredentials(new UsernamePasswordCredentials(username, password));
origin: fengyouchao/sockslib

 return new Socks5(host, port);
} else {
 return new Socks5(host, port, new UsernamePasswordCredentials(username, password));
socks = new SSLSocks5(new InetSocketAddress(host, port), configuration);
if (!Strings.isNullOrEmpty(username)) {
 socks.setCredentials(new UsernamePasswordCredentials(username, password));
socks = new SSLSocks5(new InetSocketAddress(host, port), configuration);
if (!Strings.isNullOrEmpty(username)) {
 socks.setCredentials(new UsernamePasswordCredentials(username, password));
sockslib.commonUsernamePasswordCredentials<init>

Popular methods of UsernamePasswordCredentials

    Popular in Java

    • Start an intent from android
    • findViewById (Activity)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • getSharedPreferences (Context)
    • Kernel (java.awt.image)
    • Time (java.sql)
      Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
    • DecimalFormat (java.text)
      A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
    • SortedMap (java.util)
      A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
    • CountDownLatch (java.util.concurrent)
      A synchronization aid that allows one or more threads to wait until a set of operations being perfor
    • JTable (javax.swing)
    • From CI to AI: The AI layer in your organization
    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