java.lang.Object | |
↳ | com.samsung.android.knox.net.AuthConfig |
This class is used to encapsulate proxy authentication information to be used while configuring a
Global Proxy
or a
Wifi Profile
with proxy. Proxy configurations that use this helper class support proxies with
Basic and NTLMv1 authentication. The applied policy will choose the most secure authentication
type in case the configured proxy supports multiple authentications simultaneously.
API level 20 |
MDM 5.7 |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ANY_HOST | Constant to specify that all proxy hostnames and ip addresses should use the same credentials
supplied in AuthConfig(String, int, String, String) . |
||||||||||
ANY_PORT | Constant to specify that all proxy ports should use the same credentials supplied in
AuthConfig(String, int, String, String) . |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor used to specify the username and password that shall be used when connecting to
any authenticated proxy.
| |||||||||||
Constructor used to specify the username and password that shall be used when connecting to a
specific authenticated proxy.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Used to return the configured proxy hostname or ip address that will be used to fetch
authentication information (username/password).
| |||||||||||
Used to return the configured password that will be used to authenticate in the associated
proxy.
| |||||||||||
Used to return the configured proxy port that will be used to fetch authentication
information (username/password).
| |||||||||||
Used to return the configured username that will be used to authenticate in the associated
proxy.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Constant to specify that all proxy hostnames and ip addresses should use the same credentials
supplied in AuthConfig(String, int, String, String)
.
API level 20 |
MDM 5.7 |
Constant to specify that all proxy ports should use the same credentials supplied in
AuthConfig(String, int, String, String)
.
API level 20 |
MDM 5.7 |
Constructor used to specify the username and password that shall be used when connecting to any authenticated proxy. This is most likely to be used with a manual proxy configuration, when all the network traffic goes through only one proxy regardless the URL requested by the client.
NOTES:
- Since KNOX 3.4, a domain
credential can precede the parameter username
.
- It is optional and the default value is received from the server during authentication process.
Example:
syntax 1: username
syntax 2: domain\username
username | Username that shall be used in any authenticated proxy. |
---|---|
password | Password that shall be used in any authenticated proxy. |
IllegalArgumentException | If one or more parameter is null or empty. |
---|
API level 20 |
MDM 5.7 |
Constructor used to specify the username and password that shall be used when connecting to a
specific authenticated proxy. The configuration made with this constructor will have
precedence over AuthConfig(String, String)
if the provided host
and
port
parameters matches the proxy being connected. This is most likely to be
used with an automatic proxy configuration (PAC), when the network traffic can go through one
or more proxies, depending on the URL requested.
NOTES:
- Since KNOX 3.4, a domain
credential can precede the parameter username
.
- It is optional and the default value is received from the server during authentication process.
Example:
syntax 1: username
syntax 2: domain\username
host | Hostname or ip address of the authenticated proxy; use ANY_HOST for all
hosts. |
---|---|
port | Port of the authenticated proxy; use ANY_PORT for all ports. |
username | Username that shall be used in the specified authenticated proxy. |
password | Password that shall be used in the specified authenticated proxy. |
IllegalArgumentException | If one or more parameter is null or empty. |
---|
API level 20 |
MDM 5.7 |
Used to return the configured proxy hostname or ip address that will be used to fetch authentication information (username/password).
ANY_HOST
if no specific
proxy is configured to use correspondent username and password.API level 20 |
MDM 5.7 |
Used to return the configured password that will be used to authenticate in the associated proxy.
API level 20 |
MDM 5.7 |
Used to return the configured proxy port that will be used to fetch authentication information (username/password).
ANY_PORT
if no specific proxy is
configured to use correspondent username and password.API level 20 |
MDM 5.7 |
Used to return the configured username that will be used to authenticate in the associated proxy.
API level 20 |
MDM 5.7 |