Since: Knox API Level 17
package

com.samsung.android.knox.net.firewall

Provides classes that enable management of firewall rules.

Classes

DomainFilterReport

This class encapsulates a Domain Filter Report that will be manipulated by the firewall policies. 

DomainFilterRule

This class encapsulates a Domain Filter Rule that will be manipulated by the firewall policies. 

Firewall This class provides APIs to configure firewall rules on device, providing the ability to implement security policies. 
FirewallResponse This class is an object class that will hold the information about the execution of an operation. 
FirewallRule

This class is used to encapsulate an IP rule that will be manipulated by the firewall. 

Enums

Firewall.AddressType This constant should be used to indicate the address type of a rule. 
Firewall.Direction This constant should be used to indicate whether a rule is related to input (when device receives data from the Internet) or output (when device sends data to the Internet). 
Firewall.NetworkInterface This constant should be used to indicate whether a rule is related to connection through WI-FI or mobile data. 
Firewall.PortLocation This constant should be used to indicate whether the port in the rule is related to the device port or the server port that the device is communicating. 
Firewall.Protocol This constant should be used to indicate whether a rule is related to TCP or UDP protocol. 
FirewallResponse.ErrorCode These constants indicate the possible error code related to an operation. 
FirewallResponse.Result These constants indicate the possible results of an operation. 
FirewallRule.RuleType This constant is used to indicate the type of the rule. 
FirewallRule.Status This constant is used to indicate the status of the rule, the status is related with the state of the rule in the iptables.