Added in API level 31

InvalidMajorVersionException


class InvalidMajorVersionException : IkeProtocolException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ android.net.ipsec.ike.exceptions.IkeException
   ↳ android.net.ipsec.ike.exceptions.IkeProtocolException
   ↳ android.net.ipsec.ike.exceptions.InvalidMajorVersionException

This exception is thrown when major version of an inbound message is higher than 2.

Summary

Inherited constants
Public constructors

Construct a instance of InvalidMajorVersionException

Public methods
Byte

Return the major version included in this exception.

Inherited functions

Public constructors

InvalidMajorVersionException

Added in API level 31
InvalidMajorVersionException(version: Byte)

Construct a instance of InvalidMajorVersionException

Except for testing, IKE library users normally do not instantiate this object themselves but instead get a reference via IkeSessionCallback or ChildSessionCallback.

Parameters
version Byte: the major version in received packet

Public methods

getMajorVersion

Added in API level 31
fun getMajorVersion(): Byte

Return the major version included in this exception.

Return
Byte the major version