Constants

PEAP

PEAP = 25

some EAP-related constants.

MSCHAP2

MSCHAP2 = 26

TTLS

TTLS = 21

TLS

TLS = 13

NONE

NONE = 0

GTC

GTC = 6

FAST

FAST = 43

PWD

PWD = 52

NE_PAP

NE_PAP = 1

NE_MSCHAP

NE_MSCHAP = 2

NE_MSCHAP2

NE_MSCHAP2 = 3

NE_SILVERBULLET

NE_SILVERBULLET = 999

INTEGER_TTLS_PAP

INTEGER_TTLS_PAP = 1

INTEGER_PEAP_MSCHAPv2

INTEGER_PEAP_MSCHAPv2 = 2

INTEGER_TLS

INTEGER_TLS = 3

INTEGER_FAST_GTC

INTEGER_FAST_GTC = 4

INTEGER_TTLS_GTC

INTEGER_TTLS_GTC = 5

INTEGER_TTLS_MSCHAP2

INTEGER_TTLS_MSCHAP2 = 6

INTEGER_EAP_PWD

INTEGER_EAP_PWD = 7

INTEGER_SILVERBULLET

INTEGER_SILVERBULLET = 8

EAPTYPE_PEAP_MSCHAP2

EAPTYPE_PEAP_MSCHAP2 = [OUTER => \core\common\EAP::PEAP, INNER => \core\common\EAP::MSCHAP2]

PEAP-MSCHAPv2: Outer EAP Type = 25, Inner EAP Type = 26

EAPTYPE_TLS

EAPTYPE_TLS = [OUTER => \core\common\EAP::TLS, INNER => \core\common\EAP::NONE]

EAP-TLS: Outer EAP Type = 13, no inner EAP

EAPTYPE_SILVERBULLET

EAPTYPE_SILVERBULLET = [OUTER => \core\common\EAP::TLS, INNER => \core\common\EAP::NE_SILVERBULLET]

EAP-TLS: Outer EAP Type = 13, no inner EAP

EAPTYPE_TTLS_PAP

EAPTYPE_TTLS_PAP = [OUTER => \core\common\EAP::TTLS, INNER => \core\common\EAP::NONE]

TTLS-PAP: Outer EAP type = 21, no inner EAP, inner non-EAP = 1

EAPTYPE_TTLS_MSCHAP2

EAPTYPE_TTLS_MSCHAP2 = [OUTER => \core\common\EAP::TTLS, INNER => \core\common\EAP::MSCHAP2]

TTLS-MSCHAP-v2: Outer EAP type = 21, no inner EAP, inner non-EAP = 3

EAPTYPE_TTLS_GTC

EAPTYPE_TTLS_GTC = [OUTER => \core\common\EAP::TTLS, INNER => \core\common\EAP::GTC]

TTLS-GTC: Outer EAP type = 21, Inner EAP Type = 6

EAPTYPE_FAST_GTC

EAPTYPE_FAST_GTC = [OUTER => \core\common\EAP::FAST, INNER => \core\common\EAP::GTC]

EAP-FAST (GTC): Outer EAP type = 43, Inner EAP Type = 6

EAPTYPE_PWD

EAPTYPE_PWD = [OUTER => \core\common\EAP::PWD, INNER => \core\common\EAP::NONE]

PWD: Outer EAP type = 52, no inner EAP

EAPTYPE_NONE

EAPTYPE_NONE = [OUTER => \core\common\EAP::NONE, INNER => \core\common\EAP::NONE]

NULL: no outer EAP, no inner EAP

EAPTYPE_ANY

EAPTYPE_ANY = [OUTER => 255, INNER => 255]

ANY: not really an EAP method, but the term to use when needing to express "any EAP method we know"

EAPTYPES_CONVERSION

EAPTYPES_CONVERSION = [\core\common\EAP::INTEGER_FAST_GTC => \core\common\EAP::EAPTYPE_FAST_GTC, \core\common\EAP::INTEGER_PEAP_MSCHAPv2 => \core\common\EAP::EAPTYPE_PEAP_MSCHAP2, \core\common\EAP::INTEGER_EAP_PWD => \core\common\EAP::EAPTYPE_PWD, \core\common\EAP::INTEGER_TLS => \core\common\EAP::EAPTYPE_TLS, \core\common\EAP::INTEGER_TTLS_GTC => \core\common\EAP::EAPTYPE_TTLS_GTC, \core\common\EAP::INTEGER_TTLS_MSCHAP2 => \core\common\EAP::EAPTYPE_TTLS_MSCHAP2, \core\common\EAP::INTEGER_TTLS_PAP => \core\common\EAP::EAPTYPE_TTLS_PAP, \core\common\EAP::INTEGER_SILVERBULLET => \core\common\EAP::EAPTYPE_SILVERBULLET]

conversion table between array and integer representations

Properties

$arrayRep

$arrayRep : mixed|string|int

The array representation of the EAP type

Type

mixed|string|int —

$intRep

$intRep : 

The integer representation of the EAP type

Type

Methods

__construct()

__construct(  eapType) 

Instantiates the EAP class for a concrete EAP type. Only call it to instantiate *real* EAP types, i.e. not EAPTYPE::ANY or EAPTYPE::NONE

Parameters

eapType

the EAP type, either in its integer or array representation

isPasswordRequired()

isPasswordRequired() : 

Is this a password-based EAP method?

Throws

\Exception

Returns

isPasswordOptional()

isPasswordOptional() : 

There could be EAP methods which have an optional need for a password.

Not aware of any, so this is a simple function :-)

Returns

isClientCertRequired()

isClientCertRequired() : 

Is this a certificate-based EAP method?

Throws

\Exception

Returns

isClientCertOptional()

isClientCertOptional() : 

Does an EAP type optionally allow to send a client certificate?

Throws

\Exception

Returns

needsServerCACert()

needsServerCACert() : 

Does the EAP type require the specification of trusted CAs to be secure?

Throws

\Exception

Returns

needsServerName()

needsServerName() : 

Does the EAP type require the specification of a server name to be secure? EAP-pwd has one, but it is not really required.

Throws

\Exception

Returns

getArrayRep()

getArrayRep() : mixed|string|int

Returns the Array representation of the EAP type.

Returns

mixed|string|int —

getIntegerRep()

getIntegerRep() : 

Returns the int representation of the EAP type.

Returns

eapDisplayName()

eapDisplayName( eap) : mixed|string|int

This function takes the EAP method in array representation (OUTER/INNER) and returns it in a custom format for the Linux installers (not numbers, but strings as values).

Parameters

eap

Returns

mixed|string|int —

EAP method in array representation (OUTER as string/INNER as string)

innerAuth()

innerAuth(mixed|string|int  eap) : mixed|string|int

determines the inner authentication. Is it EAP, and which mechanism is used to convey actual auth data

Parameters

mixed|string|int eap

Returns

mixed|string|int —

listKnownEAPTypes()

listKnownEAPTypes() : mixed|string|int

This function enumerates all known EAP types and returns them as array

Returns

mixed|string|int —

of all EAP types the CAT knows about, as objects

getPrintableRep()

getPrintableRep() : 

returns a printable ("pretty-print") version of the EAP type

Returns