Use a result object to handle AUTH validation result

This commit updates the IKE AUTH code to report response validation
result by returning a result object instead of throwing an exception.

This commit also improves code reuse by adding another abstract class
under CreateIkeLocalIkeAuthBase to include all common functionalities
for performing the first and last IKE AUTH exchanges.

This is a preparation commit for the fix to stop sending Delete
request when server sends a fatal error notification in IKE AUTH.

There is no behavior change in this commit.

Bug: 215308946
Test: atest FrameworksIkeTests
Change-Id: I49c4301d6f8981848f58408b6b9daaad634253f2
(cherry picked from commit 566a8f747e734e1639569942f741154b701437e1)
Merged-In: I49c4301d6f8981848f58408b6b9daaad634253f2
1 file changed
tree: 4e4238a6315a7d1f219e4004037bcd06cc2b472d
  1. apex/
  2. api/
  3. src/
  4. tests/
  5. Android.bp
  6. jarjar-rules-shared.txt
  7. jarjar-rules-test.txt
  8. OWNERS
  9. PREUPLOAD.cfg
  10. README.md
  11. TEST_MAPPING
README.md

IKEv2 Library for Android

Introduction

This IKEv2 library is an in-process client library implementing the IKEv2 protocol as well as extensions necessary for the support of IWLAN. It is designed to work in a non-privileged fashion on top of the Android IPsec API surface.