Java Code Examples for de.blinkt.openvpn.VpnProfile#getEmbeddedContent()
The following examples show how to use
de.blinkt.openvpn.VpnProfile#getEmbeddedContent() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConfigParser.java From Cake-VPN with GNU General Public License v2.0 | 5 votes |
private static void useEmbbedUserAuth(VpnProfile np, String inlinedata) { String data = VpnProfile.getEmbeddedContent(inlinedata); String[] parts = data.split("\n"); if (parts.length >= 2) { np.mUsername = parts[0]; np.mPassword = parts[1]; } }
Example 2
Source File: ConfigParser.java From SimpleOpenVpn-Android with Apache License 2.0 | 5 votes |
static public void useEmbbedUserAuth(VpnProfile np, String inlinedata) { String data = VpnProfile.getEmbeddedContent(inlinedata); String[] parts = data.split("\n"); if (parts.length >= 2) { np.mUsername = parts[0]; np.mPassword = parts[1]; } }
Example 3
Source File: ConfigParser.java From Cybernet-VPN with GNU General Public License v3.0 | 5 votes |
private static void useEmbbedUserAuth(VpnProfile np, String inlinedata) { String data = VpnProfile.getEmbeddedContent(inlinedata); String[] parts = data.split("\n"); if (parts.length >= 2) { np.mUsername = parts[0]; np.mPassword = parts[1]; } }
Example 4
Source File: X509Utils.java From EasyVPN-Free with GNU General Public License v3.0 | 5 votes |
public static PemObject readPemObjectFromFile (String keyfilename) throws IOException { Reader inStream; if(VpnProfile.isEmbedded(keyfilename)) inStream = new StringReader(VpnProfile.getEmbeddedContent(keyfilename)); else inStream = new FileReader(new File(keyfilename)); PemReader pr = new PemReader(inStream); PemObject r = pr.readPemObject(); pr.close(); return r; }
Example 5
Source File: ConfigParser.java From EasyVPN-Free with GNU General Public License v3.0 | 5 votes |
static public void useEmbbedUserAuth(VpnProfile np, String inlinedata) { String data = VpnProfile.getEmbeddedContent(inlinedata); String[] parts = data.split("\n"); if (parts.length >= 2) { np.mUsername = parts[0]; np.mPassword = parts[1]; } }
Example 6
Source File: X509Utils.java From bitmask_android with GNU General Public License v3.0 | 5 votes |
public static PemObject readPemObjectFromFile (String keyfilename) throws IOException { Reader inStream; if(VpnProfile.isEmbedded(keyfilename)) inStream = new StringReader(VpnProfile.getEmbeddedContent(keyfilename)); else inStream = new FileReader(new File(keyfilename)); PemReader pr = new PemReader(inStream); PemObject r = pr.readPemObject(); pr.close(); return r; }
Example 7
Source File: ConfigParser.java From bitmask_android with GNU General Public License v3.0 | 5 votes |
static public void useEmbbedUserAuth(VpnProfile np, String inlinedata) { String data = VpnProfile.getEmbeddedContent(inlinedata); String[] parts = data.split("\n"); if (parts.length >= 2) { np.mUsername = parts[0]; np.mPassword = parts[1]; } }
Example 8
Source File: ConfigParser.java From bitmask_android with GNU General Public License v3.0 | 5 votes |
static public void useEmbbedHttpAuth(Connection c, String inlinedata) { String data = VpnProfile.getEmbeddedContent(inlinedata); String[] parts = data.split("\n"); if (parts.length >= 2) { c.setProxyAuthUser(parts[0]); c.setProxyAuthPassword(parts[1]); c.setUseProxyAuth(true); } }