reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::TlsPeerAuthManager Class Reference

#include <TlsPeerAuthManager.hxx>

Inheritance diagram for resip::TlsPeerAuthManager:
[legend]

Public Types

enum  Result { Authorized , Skipped , Rejected , RequestedInfo }
 
- Public Types inherited from resip::DumFeature
enum  ProcessingResultMask { EventDoneBit = 1 << 0 , EventTakenBit = 1 << 1 , FeatureDoneBit = 1 << 2 , ChainDoneBit = 1 << 3 }
 
enum  ProcessingResult {
  EventTaken = EventTakenBit , FeatureDone = FeatureDoneBit , FeatureDoneAndEventDone = FeatureDoneBit | EventDoneBit , FeatureDoneAndEventTaken = FeatureDoneBit | EventTakenBit ,
  ChainDoneAndEventDone = ChainDoneBit | EventDoneBit , ChainDoneAndEventTaken = ChainDoneBit | EventTakenBit
}
 

Public Member Functions

 TlsPeerAuthManager (DialogUsageManager &dum, TargetCommand::Target &target, const std::set< Data > &trustedPeers, bool thirdPartyRequiresCertificate=true)
 
 TlsPeerAuthManager (DialogUsageManager &dum, TargetCommand::Target &target, const std::set< Data > &trustedPeers, bool thirdPartyRequiresCertificate, CommonNameMappings &commonNameMappings)
 
virtual ~TlsPeerAuthManager ()
 
virtual ProcessingResult process (Message *msg)
 
- Public Member Functions inherited from resip::DumFeature
 DumFeature (DialogUsageManager &dum, TargetCommand::Target &target)
 
virtual ~DumFeature ()
 
virtual void postCommand (std::unique_ptr< Message > message)
 

Protected Member Functions

virtual Result handle (SipMessage *sipMsg)
 
virtual SipMessage * handleTlsPeerIdentityInfo (TlsPeerIdentityInfoMessage *tpiInfo)
 
virtual AsyncBool authorizedForThisIdentity (const resip::Data &transactionId, const std::list< resip::Data > &peerNames, resip::Uri &fromUri)
 should return true if the passed in user is authorized for the provided uri
 
virtual bool requiresAuthorization (const SipMessage &msg)
 should return true if the request must be challenged The default is to challenge all requests - override this class to change this beviour
 
virtual AsyncBool asyncLookup (TlsPeerIdentityInfoMessage *info)
 
virtual bool isTrustedSource (const SipMessage &msg)
 should return true if the request should be trusted based on the source/transport default implementation uses mTrustedPeers
 

Additional Inherited Members

- Protected Attributes inherited from resip::DumFeature
DialogUsageManager & mDum
 
TargetCommand::Target & mTarget
 

Detailed Description

Definition at line 19 of file TlsPeerAuthManager.hxx.

Member Enumeration Documentation

◆ Result

Enumerator
Authorized 
Skipped 
Rejected 
RequestedInfo 

Definition at line 22 of file TlsPeerAuthManager.hxx.

Constructor & Destructor Documentation

◆ TlsPeerAuthManager() [1/2]

TlsPeerAuthManager::TlsPeerAuthManager ( DialogUsageManager &  dum,
TargetCommand::Target &  target,
const std::set< Data > &  trustedPeers,
bool  thirdPartyRequiresCertificate = true 
)

Definition at line 17 of file TlsPeerAuthManager.cxx.

◆ TlsPeerAuthManager() [2/2]

TlsPeerAuthManager::TlsPeerAuthManager ( DialogUsageManager &  dum,
TargetCommand::Target &  target,
const std::set< Data > &  trustedPeers,
bool  thirdPartyRequiresCertificate,
CommonNameMappings &  commonNameMappings 
)

Definition at line 24 of file TlsPeerAuthManager.cxx.

◆ ~TlsPeerAuthManager()

TlsPeerAuthManager::~TlsPeerAuthManager ( )
virtual

Definition at line 32 of file TlsPeerAuthManager.cxx.

Member Function Documentation

◆ asyncLookup()

AsyncBool TlsPeerAuthManager::asyncLookup ( TlsPeerIdentityInfoMessage *  info)
protectedvirtual

Reimplemented in repro::ReproTlsPeerAuthManager.

Definition at line 297 of file TlsPeerAuthManager.cxx.

◆ authorizedForThisIdentity()

AsyncBool TlsPeerAuthManager::authorizedForThisIdentity ( const resip::Data &  transactionId,
const std::list< resip::Data > &  peerNames,
resip::Uri &  fromUri 
)
protectedvirtual

should return true if the passed in user is authorized for the provided uri

Definition at line 82 of file TlsPeerAuthManager.cxx.

◆ handle()

TlsPeerAuthManager::Result TlsPeerAuthManager::handle ( SipMessage *  sipMsg)
protectedvirtual

Definition at line 144 of file TlsPeerAuthManager.cxx.

◆ handleTlsPeerIdentityInfo()

SipMessage * TlsPeerAuthManager::handleTlsPeerIdentityInfo ( TlsPeerIdentityInfoMessage *  tpiInfo)
protectedvirtual

Definition at line 273 of file TlsPeerAuthManager.cxx.

◆ isTrustedSource()

bool TlsPeerAuthManager::isTrustedSource ( const SipMessage &  msg)
protectedvirtual

should return true if the request should be trusted based on the source/transport default implementation uses mTrustedPeers

Reimplemented in repro::ReproTlsPeerAuthManager.

Definition at line 312 of file TlsPeerAuthManager.cxx.

◆ process()

DumFeature::ProcessingResult TlsPeerAuthManager::process ( Message *  msg)
virtual

dcm! – unnecessary happens in handle

Implements resip::DumFeature.

Definition at line 42 of file TlsPeerAuthManager.cxx.

◆ requiresAuthorization()

bool TlsPeerAuthManager::requiresAuthorization ( const SipMessage &  msg)
protectedvirtual

should return true if the request must be challenged The default is to challenge all requests - override this class to change this beviour

Definition at line 304 of file TlsPeerAuthManager.cxx.


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