/** {@inheritDoc} */
public Credential getPeerCredential() {
if (peerCredential == null) {
try {
peerCredential = new ServletRequestX509CredentialAdapter(httpServletRequest);
} catch (IllegalArgumentException e) {
log.info("Wrapped HTTP servlet request did not contain a client certificate");
}
}
return peerCredential;