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

#include <CertificateAuthenticator.hxx>

Inheritance diagram for repro::CertificateAuthenticator:
[legend]

Public Member Functions

 CertificateAuthenticator (ProxyConfig &config, resip::Dispatcher *authRequestDispatcher, resip::SipStack *stack, AclStore &aclStore, bool thirdPartyRequiresCertificate=true)
 
 CertificateAuthenticator (ProxyConfig &config, resip::Dispatcher *authRequestDispatcher, resip::SipStack *stack, AclStore &aclStore, bool thirdPartyRequiresCertificate, resip::CommonNameMappings &commonNameMappings)
 
 ~CertificateAuthenticator ()
 
virtual processor_action_t process (RequestContext &)
 
virtual void dump (EncodeStream &os) const
 
- Public Member Functions inherited from repro::Processor
 Processor (const resip::Data &name, ChainType type=NO_TYPE)
 
virtual ~Processor ()
 
virtual void setChainType (ChainType type)
 
virtual ChainType getChainType () const
 
virtual void setName (const resip::Data &name)
 
virtual const resip::Data & getName () const
 
virtual void pushAddress (const std::vector< short > &address)
 
virtual void pushAddress (const short address)
 
virtual const std::vector< short > & getAddress () const
 

Static Public Attributes

static resip::KeyValueStore::Key mCertificateVerifiedKey = Proxy::allocateRequestKeyValueStoreKey()
 

Protected Member Functions

bool isTrustedSource (const std::list< resip::Data > &peerNames)
 
resip::AsyncBool authorizedForThisIdentity (RequestContext &context, const std::list< resip::Data > &peerNames, resip::Uri &fromUri)
 

Protected Attributes

resip::Dispatcher * mAuthRequestDispatcher
 
AclStore & mAclStore
 
bool mThirdPartyRequiresCertificate
 
resip::CommonNameMappings mCommonNameMappings
 
- Protected Attributes inherited from repro::Processor
std::vector< short > mAddress
 
ChainType mType
 
resip::Data mName
 

Additional Inherited Members

- Public Types inherited from repro::Processor
enum  ChainType { NO_TYPE =0 , REQUEST_CHAIN , RESPONSE_CHAIN , TARGET_CHAIN }
 
enum  processor_action_t { Continue , WaitingForEvent , SkipThisChain , SkipAllChains }
 

Detailed Description

Definition at line 22 of file CertificateAuthenticator.hxx.

Constructor & Destructor Documentation

◆ CertificateAuthenticator() [1/2]

CertificateAuthenticator::CertificateAuthenticator ( ProxyConfig &  config,
resip::Dispatcher *  authRequestDispatcher,
resip::SipStack *  stack,
AclStore &  aclStore,
bool  thirdPartyRequiresCertificate = true 
)

Definition at line 34 of file CertificateAuthenticator.cxx.

◆ CertificateAuthenticator() [2/2]

CertificateAuthenticator::CertificateAuthenticator ( ProxyConfig &  config,
resip::Dispatcher *  authRequestDispatcher,
resip::SipStack *  stack,
AclStore &  aclStore,
bool  thirdPartyRequiresCertificate,
resip::CommonNameMappings &  commonNameMappings 
)

Definition at line 46 of file CertificateAuthenticator.cxx.

◆ ~CertificateAuthenticator()

CertificateAuthenticator::~CertificateAuthenticator ( )

Definition at line 60 of file CertificateAuthenticator.cxx.

Member Function Documentation

◆ authorizedForThisIdentity()

AsyncBool CertificateAuthenticator::authorizedForThisIdentity ( RequestContext &  context,
const std::list< resip::Data > &  peerNames,
resip::Uri &  fromUri 
)
protected

Definition at line 236 of file CertificateAuthenticator.cxx.

◆ dump()

void CertificateAuthenticator::dump ( EncodeStream &  os) const
virtual

Definition at line 297 of file CertificateAuthenticator.cxx.

◆ isTrustedSource()

bool CertificateAuthenticator::isTrustedSource ( const std::list< resip::Data > &  peerNames)
protected

Definition at line 230 of file CertificateAuthenticator.cxx.

◆ process()

repro::Processor::processor_action_t CertificateAuthenticator::process ( repro::RequestContext &  rc)
virtual

Implements repro::Processor.

Definition at line 65 of file CertificateAuthenticator.cxx.

Member Data Documentation

◆ mAclStore

AclStore& repro::CertificateAuthenticator::mAclStore
protected

Definition at line 39 of file CertificateAuthenticator.hxx.

◆ mAuthRequestDispatcher

resip::Dispatcher* repro::CertificateAuthenticator::mAuthRequestDispatcher
protected

Definition at line 38 of file CertificateAuthenticator.hxx.

◆ mCertificateVerifiedKey

KeyValueStore::Key CertificateAuthenticator::mCertificateVerifiedKey = Proxy::allocateRequestKeyValueStoreKey()
static

Definition at line 25 of file CertificateAuthenticator.hxx.

◆ mCommonNameMappings

resip::CommonNameMappings repro::CertificateAuthenticator::mCommonNameMappings
protected

Definition at line 41 of file CertificateAuthenticator.hxx.

◆ mThirdPartyRequiresCertificate

bool repro::CertificateAuthenticator::mThirdPartyRequiresCertificate
protected

Definition at line 40 of file CertificateAuthenticator.hxx.


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