Searched refs:Ikev2VpnProfile (Results 1 – 9 of 9) sorted by relevance
85 private Ikev2VpnProfile.Builder getBuilderWithDefaultOptions() { in getBuilderWithDefaultOptions()86 final Ikev2VpnProfile.Builder builder = in getBuilderWithDefaultOptions()87 new Ikev2VpnProfile.Builder(SERVER_ADDR_STRING, IDENTITY_STRING); in getBuilderWithDefaultOptions()99 final Ikev2VpnProfile.Builder builder = getBuilderWithDefaultOptions(); in testBuildValidProfileWithOptions()102 final Ikev2VpnProfile profile = builder.build(); in testBuildValidProfileWithOptions()112 assertEquals(Ikev2VpnProfile.DEFAULT_ALGORITHMS, profile.getAllowedAlgorithms()); in testBuildValidProfileWithOptions()117 final Ikev2VpnProfile.Builder builder = getBuilderWithDefaultOptions(); in testBuildUsernamePasswordProfile()120 final Ikev2VpnProfile profile = builder.build(); in testBuildUsernamePasswordProfile()134 final Ikev2VpnProfile.Builder builder = getBuilderWithDefaultOptions(); in testBuildDigitalSignatureProfile()137 final Ikev2VpnProfile profile = builder.build(); in testBuildDigitalSignatureProfile()[all …]
112 private Ikev2VpnProfile getPlatformVpnProfile() throws Exception { in getPlatformVpnProfile()113 return new Ikev2VpnProfile.Builder(SERVER_ADDR_STRING, IDENTITY_STRING) in getPlatformVpnProfile()
66 public final class Ikev2VpnProfile extends PlatformVpnProfile { class108 private Ikev2VpnProfile( in Ikev2VpnProfile() method in Ikev2VpnProfile368 if (!(obj instanceof Ikev2VpnProfile)) { in equals()372 final Ikev2VpnProfile other = (Ikev2VpnProfile) obj; in equals()445 public static Ikev2VpnProfile fromVpnProfile(@NonNull VpnProfile profile) in fromVpnProfile()460 public static Ikev2VpnProfile fromVpnProfile( in fromVpnProfile()897 public Ikev2VpnProfile build() { in build()898 return new Ikev2VpnProfile( in build()
105 return Ikev2VpnProfile.fromVpnProfile(profile); in fromVpnProfile()
37 import android.net.Ikev2VpnProfile;94 @NonNull Context context, @NonNull Ikev2VpnProfile profile, @NonNull Network network) { in buildIkeSessionParams()130 @NonNull Ikev2VpnProfile profile, @NonNull IkeSessionParams.Builder builder) { in setIkeAuth()202 if (Ikev2VpnProfile.hasNormalModeAlgorithms(allowedAlgorithms)) { in getChildSaProposals()233 if (Ikev2VpnProfile.hasAeadAlgorithms(allowedAlgorithms)) { in getChildSaProposals()
52 import android.net.Ikev2VpnProfile;1963 profile.ipsecSecret = Ikev2VpnProfile.PREFIX_KEYSTORE_ALIAS + privateKey;1970 profile.setAllowedAlgorithms(Ikev2VpnProfile.DEFAULT_ALGORITHMS);1976 Ikev2VpnProfile.encodeForIpsecSecret(profile.ipsecSecret.getBytes());1979 profile.setAllowedAlgorithms(Ikev2VpnProfile.DEFAULT_ALGORITHMS);2202 @NonNull private final Ikev2VpnProfile mProfile;2221 IkeV2VpnRunner(@NonNull Ikev2VpnProfile profile) {3054 new IkeV2VpnRunner(Ikev2VpnProfile.fromVpnProfile(profile, keyStore));
21 import android.net.Ikev2VpnProfile;375 return Ikev2VpnProfile.isValidVpnProfile(this); in isValidLockdownPlatformVpnProfile()
63 import android.net.Ikev2VpnProfile;175 final Ikev2VpnProfile.Builder builder = in VpnTest()176 new Ikev2VpnProfile.Builder(TEST_VPN_SERVER, TEST_VPN_IDENTITY); in VpnTest()
29999 public final class Ikev2VpnProfile extends android.net.PlatformVpnProfile {30015 public static final class Ikev2VpnProfile.Builder {30016 ctor public Ikev2VpnProfile.Builder(@NonNull String, @NonNull String);30017 method @NonNull public android.net.Ikev2VpnProfile build();30018 …method @NonNull public android.net.Ikev2VpnProfile.Builder setAllowedAlgorithms(@NonNull java.util…30019 …method @NonNull public android.net.Ikev2VpnProfile.Builder setAuthDigitalSignature(@NonNull java.s…30020 method @NonNull public android.net.Ikev2VpnProfile.Builder setAuthPsk(@NonNull byte[]);30021 …method @NonNull public android.net.Ikev2VpnProfile.Builder setAuthUsernamePassword(@NonNull String…30022 method @NonNull public android.net.Ikev2VpnProfile.Builder setBypassable(boolean);30023 method @NonNull public android.net.Ikev2VpnProfile.Builder setMaxMtu(int);[all …]