Added in API level 31

InvalidMajorVersionException


class InvalidMajorVersionException : IkeProtocolException

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

Summary

Inherited constants
Int ERROR_TYPE_AUTHENTICATION_FAILED

IKE authentication failed

Int ERROR_TYPE_CHILD_SA_NOT_FOUND

Child SA in the received packet does not exist

Int ERROR_TYPE_FAILED_CP_REQUIRED

Configuration Payload required but not found in IKE setup

Int ERROR_TYPE_INTERNAL_ADDRESS_FAILURE

No internal addresses can be assigned

Int ERROR_TYPE_INVALID_IKE_SPI

Unrecognized destination IKE SPI

Int ERROR_TYPE_INVALID_KE_PAYLOAD

Invalid Key Exchange Payload

Int ERROR_TYPE_INVALID_MAJOR_VERSION

Invalid major version

Int ERROR_TYPE_INVALID_MESSAGE_ID

Invalid message ID

Int ERROR_TYPE_INVALID_SELECTORS

An IPsec Packet was found to have mismatched Traffic Selectors of the IPsec SA on which it was delivered

Int ERROR_TYPE_INVALID_SYNTAX

Invalid syntax

Int ERROR_TYPE_NO_ADDITIONAL_SAS

No additional SAa are acceptable

Int ERROR_TYPE_NO_PROPOSAL_CHOSEN

No SA Proposal Chosen is acceptable

Int ERROR_TYPE_SINGLE_PAIR_REQUIRED

Only Traffic Selectors specifying a single pair of addresses are acceptable

Int ERROR_TYPE_TEMPORARY_FAILURE

Temporary failure

Int ERROR_TYPE_TS_UNACCEPTABLE

No Traffic Selectors are acceptable

Int ERROR_TYPE_UNSUPPORTED_CRITICAL_PAYLOAD

Unsupported critical payload

Public constructors

Construct a instance of InvalidMajorVersionException

Public methods
Byte

Return the major version included in this exception.

Inherited functions
Int getErrorType()

Returns the IKE protocol error type of this IkeProtocolException instance.

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