All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.yawenok.apns.http2.config.proxy.HttpProxyConfig Maven / Gradle / Ivy

package io.github.yawenok.apns.http2.config.proxy;

import io.github.yawenok.apns.http2.enums.proxy.ProxyMode;
import io.github.yawenok.apns.http2.config.ProxyConfig;

public class HttpProxyConfig extends ProxyConfig {
    private final String username;
    private final String password;

    public HttpProxyConfig(final String host, final int port) {
        super(ProxyMode.HTTP, host, port);

        this.username = null;
        this.password = null;
    }

    public HttpProxyConfig(final String host, final int port, final String username, final String password) {
        super(ProxyMode.HTTP, host, port);

        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy