private PushCertificateParser pushCertificateParser;
private SignedPushConfig signedPushConfig;
+ private PushCertificate pushCert;
/**
* Get the push certificate used to verify the pusher's identity.
*
* @return the parsed certificate, or null if push certificates are disabled
* or no cert was presented by the client.
- * @throws IOException if the certificate was present but invalid.
* @since 4.1
*/
- public PushCertificate getPushCertificate() throws IOException {
- return getPushCertificateParser().build();
+ public PushCertificate getPushCertificate() {
+ return pushCert;
}
/**
certParser.addCommand(cmd);
}
}
+ pushCert = certParser.build();
} catch (PackProtocolException e) {
sendError(e.getMessage());
throw e;