Searched refs:ipsecSecret (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/java/com/android/internal/net/ |
D | VpnProfile.java | 108 public String ipsecSecret = ""; // 11 field in VpnProfile 168 ipsecSecret = in.readString(); in VpnProfile() 219 out.writeString(ipsecSecret); in writeToParcel() 277 profile.ipsecSecret = values[11]; in decode() 330 builder.append(VALUE_DELIMITER).append(ipsecSecret); in encode() 443 l2tpSecret, ipsecIdentifier, ipsecSecret, ipsecUserCert, ipsecCaCert, ipsecServerCert, in hashCode() 468 && Objects.equals(ipsecSecret, other.ipsecSecret) in equals()
|
/frameworks/base/core/java/android/net/ |
D | Ikev2VpnProfile.java | 421 profile.ipsecSecret = encodeForIpsecSecret(mPresharedKey); in toVpnProfile() 425 profile.ipsecSecret = in toVpnProfile() 481 builder.setAuthPsk(decodeFromIpsecSecret(profile.ipsecSecret)); in fromVpnProfile() 485 if (profile.ipsecSecret.startsWith(PREFIX_KEYSTORE_ALIAS)) { in fromVpnProfile() 489 profile.ipsecSecret.substring(PREFIX_KEYSTORE_ALIAS.length()); in fromVpnProfile() 492 } else if (profile.ipsecSecret.startsWith(PREFIX_INLINE)) { in fromVpnProfile() 493 key = getPrivateKey(profile.ipsecSecret.substring(PREFIX_INLINE.length())); in fromVpnProfile() 526 if (profile.ipsecSecret.isEmpty()) { in isValidVpnProfile() 531 if (profile.ipsecSecret.isEmpty() || profile.ipsecUserCert.isEmpty()) { in isValidVpnProfile()
|
/frameworks/base/tests/net/java/android/net/ |
D | Ikev2VpnProfileTest.java | 277 assertEquals(Ikev2VpnProfile.encodeForIpsecSecret(PSK_BYTES), profile.ipsecSecret); in testPskConvertToVpnProfile() 300 assertEquals("", profile.ipsecSecret); in testUsernamePasswordConvertToVpnProfile() 316 profile.ipsecSecret); in testRsaConvertToVpnProfile() 349 profile.ipsecSecret = new String(PSK_BYTES); in testUsernamePasswordFromVpnProfileDiscardsIrrelevantValues()
|
/frameworks/base/tests/net/java/com/android/internal/net/ |
D | VpnProfileTest.java | 65 assertEquals("", p.ipsecSecret); in testDefaults() 92 p.ipsecSecret = "quuz"; in getSampleIkev2Profile()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 1963 profile.ipsecSecret = Ikev2VpnProfile.PREFIX_KEYSTORE_ALIAS + privateKey; 1975 profile.ipsecSecret = 1976 Ikev2VpnProfile.encodeForIpsecSecret(profile.ipsecSecret.getBytes()); 1985 profile.ipsecSecret, "1701", 1997 profile.ipsecSecret, profile.username, profile.password, "", gateway,
|