public enum VpnStatus

  1. Object
  2. Enum<VpnStatus>
  3. VpnStatus

ImplementsComparable<VpnStatus>

Where a VPN connection is in its life. The ordinals cross the SPI boundary, so existing constants must not be reordered.

Enum constants

NOT_CONFIGUREDNo configuration is installed, so there is nothing to connect.
DISCONNECTEDConfigured, but not connected.
CONNECTINGNegotiating.
CONNECTEDUp and carrying traffic.
DISCONNECTINGTearing down.
WAITINGConfigured and waiting for a rule to bring it up – an on-demand profile that has not been triggered yet.
UNKNOWNThe platform did not say.

Methods

public static VpnStatus[] values()
public static VpnStatus valueOf(String name)

Inherited methods

Enum constant details

NOT_CONFIGURED

NOT_CONFIGURED
No configuration is installed, so there is nothing to connect.

DISCONNECTED

DISCONNECTED
Configured, but not connected.

CONNECTING

CONNECTING
Negotiating.

CONNECTED

CONNECTED
Up and carrying traffic.

DISCONNECTING

DISCONNECTING
Tearing down.

WAITING

WAITING
Configured and waiting for a rule to bring it up – an on-demand profile that has not been triggered yet.

UNKNOWN

UNKNOWN
The platform did not say.

Method details

values

public static VpnStatus[] values()

valueOf

public static VpnStatus valueOf(String name)