OPAL
Version 3.18.8
|
#include <h235auth.h>
Public Types | |
enum | ValidationResult { e_OK = 0, e_Absent, e_Error, e_InvalidTime, e_BadPassword, e_ReplyAttack, e_Disabled } |
enum | Application { GKAdmission, EPAuthentication, LRQOnly, AnyApplication } |
Public Member Functions | |
H235Authenticator () | |
virtual void | PrintOn (ostream &strm) const |
virtual const char * | GetName () const =0 |
virtual PBoolean | PrepareTokens (PASN_Array &clearTokens, PASN_Array &cryptoTokens, unsigned rasPDU) |
virtual H235_ClearToken * | CreateClearToken (unsigned rasPDU) |
virtual H235_ClearToken * | CreateClearToken () |
virtual H225_CryptoH323Token * | CreateCryptoToken (bool digits, unsigned rasPDU) |
virtual H225_CryptoH323Token * | CreateCryptoToken (bool digits) |
virtual PBoolean | Finalise (PBYTEArray &rawPDU) |
virtual ValidationResult | ValidateTokens (const PASN_Array &clearTokens, const PASN_Array &cryptoTokens, const PBYTEArray &rawPDU) |
virtual ValidationResult | ValidateClearToken (const H235_ClearToken &clearToken) |
virtual ValidationResult | ValidateCryptoToken (const H225_CryptoH323Token &cryptoToken, const PBYTEArray &rawPDU) |
virtual PBoolean | IsCapability (const H235_AuthenticationMechanism &mechansim, const PASN_ObjectId &algorithmOID)=0 |
virtual PBoolean | SetCapability (H225_ArrayOf_AuthenticationMechanism &mechansims, H225_ArrayOf_PASN_ObjectId &algorithmOIDs)=0 |
virtual PBoolean | UseGkAndEpIdentifiers () const |
virtual PBoolean | IsSecuredPDU (unsigned rasPDU, PBoolean received) const |
void | Enable (PBoolean enab=true) |
void | Disable () |
bool | IsEnabled () const |
const PString & | GetRemoteId () const |
void | SetRemoteId (const PString &id) |
const PString & | GetLocalId () const |
void | SetLocalId (const PString &id) |
const PString & | GetPassword () const |
void | SetPassword (const PString &pw) |
Application | GetApplication () |
Get Authentication Application. More... | |
Protected Member Functions | |
PINDEX | AddCapabilityIfNeeded (unsigned mechanism, const PString &oid, H225_ArrayOf_AuthenticationMechanism &mechansims, H225_ArrayOf_PASN_ObjectId &algorithmOIDs) |
PDECLARE_MUTEX (mutex) | |
Protected Attributes | |
bool | m_enabled |
PString | remoteId |
PString | localId |
PString | password |
unsigned | sentRandomSequenceNumber |
unsigned | lastRandomSequenceNumber |
unsigned | lastTimestamp |
int | timestampGracePeriod |
Application | usage |
Authenticator's Application. More... | |
This abtract class embodies an H.235 authentication mechanism. NOTE: descendants must have a Clone() function for correct operation.
H235Authenticator::H235Authenticator | ( | ) |
|
protected |
|
virtual |
|
virtual |
Reimplemented in H235AuthCAT.
|
virtual |
|
virtual |
Reimplemented in H235AuthSimpleMD5.
|
inline |
References m_enabled.
|
inline |
References m_enabled.
|
virtual |
|
inline |
Get Authentication Application.
References usage.
|
inline |
References localId.
|
pure virtual |
Implemented in H235AuthCAT, and H235AuthSimpleMD5.
|
inline |
References password.
|
inline |
References remoteId.
|
pure virtual |
Implemented in H235AuthCAT, and H235AuthSimpleMD5.
|
inline |
References m_enabled.
|
virtual |
Reimplemented in H235AuthCAT, and H235AuthSimpleMD5.
|
protected |
|
virtual |
|
virtual |
|
pure virtual |
Implemented in H235AuthCAT, and H235AuthSimpleMD5.
|
inline |
References localId.
|
inline |
References password.
|
inline |
References remoteId.
|
virtual |
|
virtual |
Reimplemented in H235AuthCAT.
|
virtual |
Reimplemented in H235AuthSimpleMD5.
|
virtual |
|
protected |
|
protected |
|
protected |
Referenced by GetLocalId(), and SetLocalId().
|
protected |
Referenced by Disable(), Enable(), and IsEnabled().
|
protected |
Referenced by GetPassword(), and SetPassword().
|
protected |
Referenced by GetRemoteId(), and SetRemoteId().
|
protected |
|
protected |
|
protected |
Authenticator's Application.
Referenced by GetApplication().