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

#include <ReproTlsPeerAuthManager.hxx>

Inheritance diagram for repro::ReproTlsPeerAuthManager:
[legend]

Public Member Functions

 ReproTlsPeerAuthManager (resip::DialogUsageManager &dum, resip::TargetCommand::Target &target, resip::Dispatcher *authRequestDispatcher, AclStore &aclStore, bool thirdPartyRequiresCertificate, resip::CommonNameMappings &commonNameMappings)
 
virtual ~ReproTlsPeerAuthManager ()
 
- Public Member Functions inherited from resip::TlsPeerAuthManager
 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 resip::AsyncBool asyncLookup (resip::TlsPeerIdentityInfoMessage *info)
 
virtual bool isTrustedSource (const resip::SipMessage &msg)
 should return true if the request should be trusted based on the source/transport default implementation uses mTrustedPeers
 
- Protected Member Functions inherited from resip::TlsPeerAuthManager
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
 

Protected Attributes

resip::Dispatcher * mAuthRequestDispatcher
 
AclStore & mAclStore
 
- Protected Attributes inherited from resip::DumFeature
DialogUsageManager & mDum
 
TargetCommand::Target & mTarget
 

Additional Inherited Members

- Public Types inherited from resip::TlsPeerAuthManager
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
}
 

Detailed Description

Definition at line 12 of file ReproTlsPeerAuthManager.hxx.

Constructor & Destructor Documentation

◆ ReproTlsPeerAuthManager()

ReproTlsPeerAuthManager::ReproTlsPeerAuthManager ( resip::DialogUsageManager &  dum,
resip::TargetCommand::Target &  target,
resip::Dispatcher *  authRequestDispatcher,
AclStore &  aclStore,
bool  thirdPartyRequiresCertificate,
resip::CommonNameMappings &  commonNameMappings 
)

Definition at line 13 of file ReproTlsPeerAuthManager.cxx.

◆ ~ReproTlsPeerAuthManager()

ReproTlsPeerAuthManager::~ReproTlsPeerAuthManager ( )
virtual

Definition at line 20 of file ReproTlsPeerAuthManager.cxx.

Member Function Documentation

◆ asyncLookup()

AsyncBool ReproTlsPeerAuthManager::asyncLookup ( resip::TlsPeerIdentityInfoMessage *  info)
protectedvirtual

Reimplemented from resip::TlsPeerAuthManager.

Definition at line 25 of file ReproTlsPeerAuthManager.cxx.

◆ isTrustedSource()

bool ReproTlsPeerAuthManager::isTrustedSource ( const resip::SipMessage &  msg)
protectedvirtual

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

Reimplemented from resip::TlsPeerAuthManager.

Definition at line 33 of file ReproTlsPeerAuthManager.cxx.

Member Data Documentation

◆ mAclStore

AclStore& repro::ReproTlsPeerAuthManager::mAclStore
protected

Definition at line 22 of file ReproTlsPeerAuthManager.hxx.

◆ mAuthRequestDispatcher

resip::Dispatcher* repro::ReproTlsPeerAuthManager::mAuthRequestDispatcher
protected

Definition at line 21 of file ReproTlsPeerAuthManager.hxx.


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