From dce4df8a1969c02cd88269c7887dee376ffcb597 Mon Sep 17 00:00:00 2001 From: evitayan Date: Mon, 11 Nov 2019 19:51:53 -0800 Subject: [PATCH] Expose IKE module API: IkeManager and IkeSession This commit updates system-current to expose IkeManager and IkeSession Bug: 143983419 Test: make update-api && make Change-Id: Id1542a902aaa6c5da58bedea12f748586a41f9d1 --- api/system-current.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/system-current.txt b/api/system-current.txt index e8f5d2981ee80..d1665649fbc1c 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -4389,6 +4389,14 @@ package android.net.ipsec.ike { method @NonNull public android.net.ipsec.ike.IkeSaProposal build(); } + public final class IkeSession implements java.lang.AutoCloseable { + ctor public IkeSession(@NonNull android.content.Context, @NonNull android.net.ipsec.ike.IkeSessionOptions, @NonNull android.net.ipsec.ike.ChildSessionOptions, @NonNull java.util.concurrent.Executor, @NonNull android.net.ipsec.ike.IkeSessionCallback, @NonNull android.net.ipsec.ike.ChildSessionCallback); + method public void close(); + method public void closeChildSession(@NonNull android.net.ipsec.ike.ChildSessionCallback); + method public void kill(); + method public void openChildSession(@NonNull android.net.ipsec.ike.ChildSessionOptions, @NonNull android.net.ipsec.ike.ChildSessionCallback); + } + public interface IkeSessionCallback { method public void onClosed(); method public void onClosedExceptionally(@NonNull android.net.ipsec.ike.exceptions.IkeException);