getGenericVpnProfile returns null for various VPN clients
I was trying to connect to a VPN server using various VPN clients in KNOX, but i keep getting a null reference to the GenericVpnPolicy object. The code is running outside of a container. This is the code snippet i used:
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(); GenericVpnPolicy gm = ekm.getGenericVpnPolicy("org.strongswan.android",0); //put 0 as the container id if no knox container is used
From this link: https://seap.samsung.com/forum-topic/openvpn-client-knox-getgenericvpnpr... i saw a list of VPN clients supported by KNOX. I've tested OpenVPN, Cisco AnyConnect and Strong Swan, but the only one that doesn't return a null reference is AnyConnect and I would like to work with the other clients.
Is my API call wrong somehow or is there anything else that I'm missing.