Added in API level 31

IkeTrafficSelector


public final class IkeTrafficSelector
extends Object

java.lang.Object
   ↳ android.net.ipsec.ike.IkeTrafficSelector


IkeTrafficSelector represents a Traffic Selector of a Child Session.

Traffic Selectors specify addresses that are acceptable within the IPsec SA.

Callers can propose IkeTrafficSelectors when building a ChildSessionParams and receive the negotiated IkeTrafficSelectors via a ChildSessionConfiguration.

Summary

Fields

public final int endPort

The largest port number allowed by this Traffic Selector.

public final InetAddress endingAddress

The largest address included in this Traffic Selector.

public final int startPort

The smallest port number allowed by this Traffic Selector.

public final InetAddress startingAddress

The smallest address included in this Traffic Selector.

Public constructors

IkeTrafficSelector(int startPort, int endPort, InetAddress startingAddress, InetAddress endingAddress)

Construct an instance of IkeTrafficSelector for negotiating a Child Session.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Fields

endPort

Added in API level 31
public final int endPort

The largest port number allowed by this Traffic Selector. Informational only.

endingAddress

Added in API level 31
public final InetAddress endingAddress

The largest address included in this Traffic Selector.

startPort

Added in API level 31
public final int startPort

The smallest port number allowed by this Traffic Selector. Informational only.

startingAddress

Added in API level 31
public final InetAddress startingAddress

The smallest address included in this Traffic Selector.

Public constructors

IkeTrafficSelector

Added in API level 31
public IkeTrafficSelector (int startPort, 
                int endPort, 
                InetAddress startingAddress, 
                InetAddress endingAddress)

Construct an instance of IkeTrafficSelector for negotiating a Child Session.

Android platform does not support port-based routing. The port range negotiation is only informational.

Parameters
startPort int: the smallest port number allowed by this Traffic Selector.

endPort int: the largest port number allowed by this Traffic Selector.

startingAddress InetAddress: the smallest address included in this Traffic Selector. This value cannot be null.

endingAddress InetAddress: the largest address included in this Traffic Selector. This value cannot be null.