OSDN Git Service

IpSecManager and IpSecTransform API Cleanup
authorNathan Harold <nharold@google.com>
Thu, 30 Mar 2017 18:01:37 +0000 (11:01 -0700)
committerNathan Harold <nharold@google.com>
Fri, 31 Mar 2017 18:21:10 +0000 (11:21 -0700)
commit48b566557d5a66d4476008b3c59b815eb78cb373
tree549333355e1199447f949e4732181bc387efdf3c
parentc4f879925b58b1b5ca9a3cfdc898c20cbf56355a
IpSecManager and IpSecTransform API Cleanup

-Remove Int-based SPI usage from the IpSecTransform.Builder
 This is essentially a less-safe method overload, and it is both
 unnecessary and difficult to implement: the cross-validation
 between SPI and Transform is actually useful, and the kernel
 requires two different mechanisms to use an unreserved vs a
 reserved (alloc'd) SPI: CREATESA vs UPDATESA, which makes this
 hard to support. API Council has questioned the value of this,
 and they are right: everything points to "remove this". In the
 future, if we find that SPI reservation is overhead, we can
 always add it back.

-Hiding the TunnelMode builder method and application/remove
 methods. These will not land by the time the next API
 stabilizes, so better to hide them now that this is a
 near-certainty. Expectation is to un-hide them in the subsequent
 API bump.

Bug: 36073210
Test: Compilation, verified nobody is calling these stubs
Change-Id: Ic1a3f2cf7128633318ac175d6b56b45eb8d21cab
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/net/IpSecManager.java
core/java/android/net/IpSecTransform.java