final CertRepMessage c = body.getIp();
if ( c==null ) {
StressTest.this.performanceTest.getLog().error("No CertRepMessage for certificate received.");
return null;
}
final CertResponse resp = c.getResponse(0);
if ( resp==null ) {
StressTest.this.performanceTest.getLog().error("No CertResponse for certificate received.");
return null;
}
if ( resp.getCertReqId().getValue().intValue()!=requestId ) {
StressTest.this.performanceTest.getLog().error("Received CertReqId is "+resp.getCertReqId().getValue().intValue()+" but should be "+requestId);
return null;
}
final PKIStatusInfo info = resp.getStatus();
if ( info==null ) {
StressTest.this.performanceTest.getLog().error("No PKIStatusInfo for certificate received.");
return null;
}
if ( info.getStatus().getValue().intValue()!=0 ) {
StressTest.this.performanceTest.getLog().error("Received Status is "+info.getStatus().getValue().intValue()+" but should be 0");
return null;
}
final CertifiedKeyPair kp = resp.getCertifiedKeyPair();
if ( kp==null ) {
StressTest.this.performanceTest.getLog().error("No CertifiedKeyPair for certificate received.");
return null;
}
final CertOrEncCert cc = kp.getCertOrEncCert();