|
reSIProcate/DialogUsageManager
9694
|


Public Member Functions | |
| PrivateKeySubscriptionHandler (Security &security) | |
| virtual void | onNewSubscription (ServerSubscriptionHandle h, const SipMessage &sub) |
| virtual void | onPublished (ServerSubscriptionHandle associated, ServerPublicationHandle publication, const Contents *contents, const SecurityAttributes *attrs) |
| virtual void | onTerminated (ServerSubscriptionHandle) |
| virtual void | onError (ServerSubscriptionHandle, const SipMessage &msg) |
Private Attributes | |
| Security & | mSecurity |
Definition at line 229 of file certServer.cxx.
| PrivateKeySubscriptionHandler::PrivateKeySubscriptionHandler | ( | Security & | security | ) | [inline] |
Definition at line 232 of file certServer.cxx.
: mSecurity(security) { }
| virtual void PrivateKeySubscriptionHandler::onError | ( | ServerSubscriptionHandle | , |
| const SipMessage & | msg | ||
| ) | [inline, virtual] |
Reimplemented from resip::ServerSubscriptionHandler.
Definition at line 265 of file certServer.cxx.
{
}
| virtual void PrivateKeySubscriptionHandler::onNewSubscription | ( | ServerSubscriptionHandle | h, |
| const SipMessage & | sub | ||
| ) | [inline, virtual] |
Implements resip::ServerSubscriptionHandler.
Definition at line 236 of file certServer.cxx.
{
if (h->getDocumentKey() != h->getSubscriber())
{
h->send(h->accept(403)); // !jf! is this the correct code?
}
else if (mSecurity.hasUserCert(h->getDocumentKey()))
{
Pkcs8Contents pkcs(mSecurity.getUserPrivateKeyDER(h->getDocumentKey()));
h->send(h->update(&pkcs));
}
else
{
h->reject(404);
}
}
| virtual void PrivateKeySubscriptionHandler::onPublished | ( | ServerSubscriptionHandle | associated, |
| ServerPublicationHandle | publication, | ||
| const Contents * | contents, | ||
| const SecurityAttributes * | attrs | ||
| ) | [inline, virtual] |
Reimplemented from resip::ServerSubscriptionHandler.
Definition at line 253 of file certServer.cxx.
{
associated->send(associated->update(contents));
}
| virtual void PrivateKeySubscriptionHandler::onTerminated | ( | ServerSubscriptionHandle | ) | [inline, virtual] |
Security& PrivateKeySubscriptionHandler::mSecurity [private] |
Definition at line 270 of file certServer.cxx.
1.7.5.1