The following sample demonstrates creation of a default mediator/colleague set that includes a revocation status mediator that will check a trusted OCSP responder before any other revocation information sources.
Supported Languages
void
EnablingOCSP()
{
//Create an OCSP
object to reference a trusted responder
CPKIFOCSPCheckerPtr
localOCSP(new CPKIFOCSPChecker());
localOCSP->SetHost("http://trustedresponder.com");
localOCSP->Set_Port(80);
//Create a
default mediator
IPKIFMediatorPtr mediator =
MakeDefaultMediator(false, localOCSP);
}
public void EnablingOCSP()
{
//Create an OCSP
object to reference a trusted responder
IPKIFColleaguePtr
localOCSPCol = pkif_module.make_NewCPKIFOCSPChecker();
CPKIFOCSPCheckerPtr
localOCSP = pkif_module.cast_ToCPKIFOCSPChecker(localOCSPCol);
localOCSP.SetHost("http://trustedresponder.com");
localOCSP.Set_Port(80);
//Create a
default mediator
IPKIFColleaguePtr
mediator = pkif_module.MakeDefaultMediator(false, localOCSP);
}
public void EnablingOCSP()
{
//Create an OCSP
object to reference a trusted responder
IPKIFColleaguePtr
localOCSPCol = pkif_module.make_NewCPKIFOCSPChecker();
CPKIFOCSPCheckerPtr
localOCSP = pkif_module.cast_ToCPKIFOCSPChecker(localOCSPCol);
localOCSP.SetHost("http://trustedresponder.com");
localOCSP.Set_Port(80);
//Create a
default mediator
IPKIFColleaguePtr
mediator = pkif_module.MakeDefaultMediator(false, localOCSP);
}