Merge "API: Expose VcnControlPlaneConfig"

This commit is contained in:
Yan Yan
2021-02-18 23:00:56 +00:00
committed by Gerrit Code Review
4 changed files with 10 additions and 13 deletions

View File

@@ -26113,6 +26113,15 @@ package android.net.vcn {
method @NonNull public android.net.vcn.VcnConfig build(); method @NonNull public android.net.vcn.VcnConfig build();
} }
public abstract class VcnControlPlaneConfig {
}
public final class VcnControlPlaneIkeConfig extends android.net.vcn.VcnControlPlaneConfig {
ctor public VcnControlPlaneIkeConfig(@NonNull android.net.ipsec.ike.IkeSessionParams, @NonNull android.net.ipsec.ike.TunnelModeChildSessionParams);
method @NonNull public android.net.ipsec.ike.TunnelModeChildSessionParams getChildSessionParams();
method @NonNull public android.net.ipsec.ike.IkeSessionParams getIkeSessionParams();
}
public final class VcnGatewayConnectionConfig { public final class VcnGatewayConnectionConfig {
method @NonNull public int[] getExposedCapabilities(); method @NonNull public int[] getExposedCapabilities();
method @IntRange(from=android.net.vcn.VcnGatewayConnectionConfig.MIN_MTU_V6) public int getMaxMtu(); method @IntRange(from=android.net.vcn.VcnGatewayConnectionConfig.MIN_MTU_V6) public int getMaxMtu();
@@ -26121,7 +26130,7 @@ package android.net.vcn {
} }
public static final class VcnGatewayConnectionConfig.Builder { public static final class VcnGatewayConnectionConfig.Builder {
ctor public VcnGatewayConnectionConfig.Builder(); ctor public VcnGatewayConnectionConfig.Builder(@NonNull android.net.vcn.VcnControlPlaneConfig);
method @NonNull public android.net.vcn.VcnGatewayConnectionConfig.Builder addExposedCapability(int); method @NonNull public android.net.vcn.VcnGatewayConnectionConfig.Builder addExposedCapability(int);
method @NonNull public android.net.vcn.VcnGatewayConnectionConfig.Builder addRequiredUnderlyingCapability(int); method @NonNull public android.net.vcn.VcnGatewayConnectionConfig.Builder addRequiredUnderlyingCapability(int);
method @NonNull public android.net.vcn.VcnGatewayConnectionConfig build(); method @NonNull public android.net.vcn.VcnGatewayConnectionConfig build();

View File

@@ -35,8 +35,6 @@ import java.util.Objects;
* *
* @see VcnManager * @see VcnManager
* @see VcnGatewayConnectionConfig * @see VcnGatewayConnectionConfig
*
* @hide
*/ */
public abstract class VcnControlPlaneConfig { public abstract class VcnControlPlaneConfig {
/** @hide */ /** @hide */

View File

@@ -34,8 +34,6 @@ import java.util.Objects;
* configuration, authentication and authorization parameters. * configuration, authentication and authorization parameters.
* *
* @see VcnControlPlaneConfig * @see VcnControlPlaneConfig
*
* @hide
*/ */
public final class VcnControlPlaneIkeConfig extends VcnControlPlaneConfig { public final class VcnControlPlaneIkeConfig extends VcnControlPlaneConfig {
private static final String TAG = VcnControlPlaneIkeConfig.class.getSimpleName(); private static final String TAG = VcnControlPlaneIkeConfig.class.getSimpleName();

View File

@@ -420,7 +420,6 @@ public final class VcnGatewayConnectionConfig {
* *
* @param ctrlPlaneConfig the control plane configuration * @param ctrlPlaneConfig the control plane configuration
* @see VcnControlPlaneConfig * @see VcnControlPlaneConfig
* @hide
*/ */
public Builder(@NonNull VcnControlPlaneConfig ctrlPlaneConfig) { public Builder(@NonNull VcnControlPlaneConfig ctrlPlaneConfig) {
Objects.requireNonNull(ctrlPlaneConfig, "ctrlPlaneConfig was null"); Objects.requireNonNull(ctrlPlaneConfig, "ctrlPlaneConfig was null");
@@ -428,13 +427,6 @@ public final class VcnGatewayConnectionConfig {
mCtrlPlaneConfig = ctrlPlaneConfig; mCtrlPlaneConfig = ctrlPlaneConfig;
} }
/** Construct a Builder object. */
// TODO: Remove this constructor when #Builder(ctrlPlaneConfig) is exposed as public API.
// This constructor is created to avoid changing API shape in this CL
public Builder() {
mCtrlPlaneConfig = null;
}
/** /**
* Add a capability that this VCN Gateway Connection will support. * Add a capability that this VCN Gateway Connection will support.
* *