public enum VpnProtocol
- Object
- Enum<VpnProtocol>
- VpnProtocol
ImplementsComparable<VpnProtocol>
The tunnelling protocol a configuration uses.
The list is short because it is limited to what both platforms can be
asked to run without the app shipping its own tunnel. Anything else needs
a packet tunnel, which is a much larger commitment; see the
com.codename1.vpn package documentation.
The ordinals cross the SPI boundary, so existing constants must not be reordered.
Enum constants
IKEV2 | IKEv2, the protocol both platforms implement themselves. |
IPSEC | IPsec with a pre-shared key. |
Methods
public static VpnProtocol[] values() | |
public static VpnProtocol valueOf(String name) |
Inherited methods
Enum constant details
IKEV2
IKEV2IKEv2, the protocol both platforms implement themselves. This is the
one to use unless there is a reason not to.
IPSEC
IPSECIPsec with a pre-shared key. Available on iOS; Android’s managed
profile API does not offer it, and reports
VpnError.NOT_SUPPORTED.Method details
values
public static VpnProtocol[] values()valueOf
public static VpnProtocol valueOf(String name)