你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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: