io.github.yawenok.apns.http2.config.proxy.Socks5ProxyConfig Maven / Gradle / Ivy
package io.github.yawenok.apns.http2.config.proxy;
import io.github.yawenok.apns.http2.config.ProxyConfig;
import io.github.yawenok.apns.http2.enums.proxy.ProxyMode;
public class Socks5ProxyConfig extends ProxyConfig {
private final String username;
private final String password;
public Socks5ProxyConfig(final String host, final int port) {
super(ProxyMode.SOCKS5, host, port);
this.username = null;
this.password = null;
}
public Socks5ProxyConfig(final String host, final int port, final String username, final String password) {
super(ProxyMode.SOCKS5, host, port);
this.username = username;
this.password = password;
}
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
}