OPAL  Version 3.18.8
IAX2IeAuthMethods Class Reference

#include <ies.h>

Inheritance diagram for IAX2IeAuthMethods:
Collaboration diagram for IAX2IeAuthMethods:

Public Member Functions

 IAX2IeAuthMethods (BYTE length, BYTE *srcData)
 
 IAX2IeAuthMethods (short newValue)
 
virtual void PrintOn (ostream &str) const
 
virtual BYTE GetKeyValue () const
 
virtual void StoreDataIn (IAX2IeData &res)
 
PBoolean IsRsaAuthentication ()
 
PBoolean IsMd5Authentication ()
 
PBoolean IsPlainTextAuthentication ()
 
- Public Member Functions inherited from IAX2Ie
 IAX2Ie ()
 
virtual ~IAX2Ie ()
 
virtual PBoolean IsValid ()
 
int GetBinarySize () const
 
void SetData (int &)
 
int ReadData ()
 
void WriteBinary (void *data, PINDEX &writeIndex)
 

Static Public Member Functions

static PBoolean IsRsaAuthentication (short testValue)
 
static PBoolean IsMd5Authentication (short testValue)
 
static PBoolean IsPlainTextAuthentication (short testValue)
 
- Static Public Member Functions inherited from IAX2Ie
static IAX2IeBuildInformationElement (BYTE _typeCode, BYTE length, BYTE *srcData)
 

Static Protected Member Functions

static PBoolean InternalIsRsa (short testValue)
 
static PBoolean InternalIsMd5 (short testValue)
 
static PBoolean InternalIsPlainText (short testValue)
 

Additional Inherited Members

- Public Types inherited from IAX2Ie
enum  IAX2IeTypeCode {
  ie_calledNumber = 1, ie_callingNumber = 2, ie_callingAni = 3, ie_callingName = 4,
  ie_calledContext = 5, ie_userName = 6, ie_password = 7, ie_capability = 8,
  ie_format = 9, ie_language = 10, ie_version = 11, ie_adsicpe = 12,
  ie_dnid = 13, ie_authMethods = 14, ie_challenge = 15, ie_md5Result = 16,
  ie_rsaResult = 17, ie_apparentAddr = 18, ie_refresh = 19, ie_dpStatus = 20,
  ie_callNo = 21, ie_cause = 22, ie_iaxUnknown = 23, ie_msgCount = 24,
  ie_autoAnswer = 25, ie_musicOnHold = 26, ie_transferId = 27, ie_rdnis = 28,
  ie_provisioning = 29, ie_aesProvisioning = 30, ie_dateTime = 31, ie_deviceType = 32,
  ie_serviceIdent = 33, ie_firmwareVer = 34, ie_fwBlockDesc = 35, ie_fwBlockData = 36,
  ie_provVer = 37, ie_callingPres = 38, ie_callingTon = 39, ie_callingTns = 40,
  ie_samplingRate = 41, ie_causeCode = 42, ie_encryption = 43, ie_encKey = 44,
  ie_codecPrefs = 45, ie_recJitter = 46, ie_recLoss = 47, ie_recPackets = 48,
  ie_recDelay = 49, ie_recDropped = 50, ie_recOoo = 51, ie_variable = 52,
  ie_ospToken = 53, ie_callToken = 54, ie_capability2 = 55, ie_format2 = 56,
  ie_countEntries
}
 
- Protected Member Functions inherited from IAX2IeShort
virtual void WriteBinary (BYTE *data)
 
- Protected Attributes inherited from IAX2IeShort
short dataValue
 
- Protected Attributes inherited from IAX2Ie
PBoolean validData
 

Detailed Description

An Information Element that contains the authentication methods

Constructor & Destructor Documentation

IAX2IeAuthMethods::IAX2IeAuthMethods ( BYTE  length,
BYTE *  srcData 
)
inline
Constructor from data read from the network.

Contents are undefined if the network data is bogus/invalid

IAX2IeAuthMethods::IAX2IeAuthMethods ( short  newValue)
inline

Initialise to the supplied short value, which is usually done prior to transmission

References IAX2Ie::SetData().

Member Function Documentation

virtual BYTE IAX2IeAuthMethods::GetKeyValue ( ) const
inlinevirtual

Get the key value for this particular Information Element class

Reimplemented from IAX2Ie.

References IAX2Ie::ie_authMethods.

static PBoolean IAX2IeAuthMethods::InternalIsMd5 ( short  testValue)
inlinestaticprotected

Return true if the supplied value has the MD5 key on

Referenced by IsMd5Authentication().

static PBoolean IAX2IeAuthMethods::InternalIsPlainText ( short  testValue)
inlinestaticprotected

Return true if the supplied value has the plain text key on

Referenced by IsPlainTextAuthentication().

static PBoolean IAX2IeAuthMethods::InternalIsRsa ( short  testValue)
inlinestaticprotected

Return true if the supplied value has the RSA key on

Referenced by IsRsaAuthentication().

static PBoolean IAX2IeAuthMethods::IsMd5Authentication ( short  testValue)
inlinestatic

Return true if the supplied value has the MD5 key on

References InternalIsMd5().

PBoolean IAX2IeAuthMethods::IsMd5Authentication ( )
inline

Return true if the internal value has the MD5 key on

References IAX2IeShort::dataValue, InternalIsMd5(), and IAX2Ie::IsValid().

static PBoolean IAX2IeAuthMethods::IsPlainTextAuthentication ( short  testValue)
inlinestatic

Return true if the supplied value has the plain text key on

References InternalIsPlainText().

PBoolean IAX2IeAuthMethods::IsPlainTextAuthentication ( )
inline

Return true if the internal value has the plain text key on

References IAX2IeShort::dataValue, InternalIsPlainText(), and IAX2Ie::IsValid().

static PBoolean IAX2IeAuthMethods::IsRsaAuthentication ( short  testValue)
inlinestatic

Return true if the supplied value has the RSA key on

References InternalIsRsa().

PBoolean IAX2IeAuthMethods::IsRsaAuthentication ( )
inline

Return true if the internal value has the RSA key on

References IAX2IeShort::dataValue, InternalIsRsa(), and IAX2Ie::IsValid().

virtual void IAX2IeAuthMethods::PrintOn ( ostream &  str) const
virtual

print this class (nicely) to the designated stream

Reimplemented from IAX2IeShort.

virtual void IAX2IeAuthMethods::StoreDataIn ( IAX2IeData res)
inlinevirtual

Take the data from this IAX2Ie, and copy it into the IAX2IeData structure. This is done on processing an incoming frame which contains IAX2Ie in the data section.

Reimplemented from IAX2Ie.

References IAX2IeData::authMethods, and IAX2IeShort::dataValue.


The documentation for this class was generated from the following file: