Added in API level 28

SpiUnavailableException

class SpiUnavailableException : AndroidException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ android.util.AndroidException
   ↳ android.net.IpSecManager.SpiUnavailableException

Thrown to indicate that a requested SPI is in use.

The combination of remote InetAddress and SPI must be unique across all apps on one device. If this error is encountered, a new SPI is required before a transform may be created. This error can be avoided by calling android.net.IpSecManager#allocateSecurityParameterIndex.

Summary

Public methods
Int

Get the SPI that caused a collision.

Public methods

getSpi

Added in API level 28
fun getSpi(): Int

Get the SPI that caused a collision.