diff options
| -rw-r--r-- | core/api/current.txt | 3 | ||||
| -rw-r--r-- | core/java/android/net/TunnelConnectionParams.java | 29 |
2 files changed, 32 insertions, 0 deletions
diff --git a/core/api/current.txt b/core/api/current.txt index f7cc6599f8d1..82acc7698bc3 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -25138,6 +25138,9 @@ package android.net { field public static final int UNSUPPORTED = -1; // 0xffffffff } + public interface TunnelConnectionParams { + } + public abstract class Uri implements java.lang.Comparable<android.net.Uri> android.os.Parcelable { method public abstract android.net.Uri.Builder buildUpon(); method public int compareTo(android.net.Uri); diff --git a/core/java/android/net/TunnelConnectionParams.java b/core/java/android/net/TunnelConnectionParams.java new file mode 100644 index 000000000000..f5b35395b0bf --- /dev/null +++ b/core/java/android/net/TunnelConnectionParams.java @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2021 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.net; + +/** + * TunnelConnectionParams represents a configuration to set up a tunnel connection. + * + * <p>Concrete implementations for a control plane protocol should implement this interface. + * Subclasses should be immutable data classes containing connection, authentication and + * authorization parameters required to establish a tunnel connection. + * + * @see android.net.ipsec.ike.IkeTunnelConnectionParams + */ +// TODO:b/186071626 Remove TunnelConnectionParams when non-updatable API stub can resolve +// IkeTunnelConnectionParams +public interface TunnelConnectionParams {} |