Revision 7745
Added by ben leinfelder over 11 years ago
src/edu/ucsb/nceas/metacat/restservice/D1ResourceHandler.java | ||
---|---|---|
141 | 141 |
String configurationFilePath = servletContext.getRealPath(configurationFileName); |
142 | 142 |
|
143 | 143 |
PortalCertificateManager portalManager = new PortalCertificateManager(configurationFilePath); |
144 |
logMetacat.debug("Initialized the PortalCertificateManager using config file: " + configurationFilePath); |
|
144 | 145 |
X509Certificate certificate = portalManager.getCertificate(request); |
146 |
logMetacat.debug("Retrieved certificate: " + certificate); |
|
145 | 147 |
PrivateKey key = portalManager.getPrivateKey(request); |
148 |
logMetacat.debug("Retrieved key: " + key); |
|
146 | 149 |
if (certificate != null && key != null) { |
147 | 150 |
request.setAttribute("javax.servlet.request.X509Certificate", certificate); |
151 |
logMetacat.debug("Added certificate to the request: " + certificate.toString()); |
|
148 | 152 |
} |
149 | 153 |
|
150 | 154 |
// load session from certificate in request |
Also available in: Unified diff
add logging for portal certificate look up process.