Since: API level 17
public static final enum

Firewall.Direction

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.samsung.android.knox.net.firewall.Firewall.Direction

Class Overview

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).

Since
API level 17
MDM 5.5

Summary

Enum Values
Firewall.Direction  ALL  Indicates that the rule is related to data being sent and received. 
Firewall.Direction  FORWARD  Indicates that the rule is related to data being sent/received through tethered connection (Mobile Hotspot, Bluetooth or USB). 
Firewall.Direction  INPUT  Indicates that the rule is related to data being received. 
Firewall.Direction  OUTPUT  Indicates that the rule is related to data being sent. 
Public Methods
static Firewall.Direction valueOf(String name)
final static Direction[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final Firewall.Direction ALL

Since: API level

Indicates that the rule is related to data being sent and received.

NOTE: Since Android Q, ALL will behave the same as OUTPUT, due to limitations in INPUT direction.

Since
API level 17
MDM 5.5

public static final Firewall.Direction FORWARD

Since: API level

Indicates that the rule is related to data being sent/received through tethered connection (Mobile Hotspot, Bluetooth or USB).
Package name is not supported, the rules will be applied globally in the device. All tethered interfaces will be affected.
Also, the rule will always be applied to port location ALL and interface ALL_NETWORKS.

Since
API level 33

public static final Firewall.Direction INPUT

Since: API level

Indicates that the rule is related to data being received.

NOTE: Due to limitation introduced in Android Q, rules applied to INPUT direction will affect the device globally, therefore all applications from all users will be affected.

Since
API level 17
MDM 5.5

public static final Firewall.Direction OUTPUT

Since: API level

Indicates that the rule is related to data being sent.

Since
API level 17
MDM 5.5

Public Methods

public static Firewall.Direction valueOf (String name)

Since: API level 28

public static final Direction[] values ()

Since: API level 28