Added in API level 28

IpSecManager.SpiUnavailableException


public static final class IpSecManager.SpiUnavailableException
extends AndroidException

java.lang.Object
   ↳ java.lang.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 IpSecManager.allocateSecurityParameterIndex(InetAddress).

Summary

Public methods

int getSpi()

Get the SPI that caused a collision.

Inherited methods

Public methods

getSpi

Added in API level 28
public int getSpi ()

Get the SPI that caused a collision.

Returns
int