ProxySettings Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. ProxySettings
- com.
public class ProxySettings
Constructor Summary
Constructor | Description |
---|---|
ProxySettings(Proxy proxy) |
Create proxy settings for connecting to a proxy without a username and password |
ProxySettings(Proxy proxy, String username, char[] password) |
Create proxy settings for connecting to a proxy with a username and password |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String | getHostname() |
char[] | getPassword() |
int | getPort() |
java.net.Proxy | getProxy() |
java.lang.String | getUsername() |
Methods inherited from java.lang.Object
Constructor Details
ProxySettings
public ProxySettings(Proxy proxy)
Create proxy settings for connecting to a proxy without a username and password
Parameters:
ProxySettings
public ProxySettings(Proxy proxy, String username, char[] password)
Create proxy settings for connecting to a proxy with a username and password
Parameters:
Method Details
getHostname
public String getHostname()
Returns:
getPassword
public char[] getPassword()
Returns:
getPort
public int getPort()
Returns:
getProxy
public Proxy getProxy()
Returns:
getUsername
public String getUsername()
Returns:
Applies to
Azure SDK for Java