Revision 7749
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 |
System.out.println("Initialized the PortalCertificateManager using config file: " + configurationFilePath);
|
|
145 | 145 |
X509Certificate certificate = portalManager.getCertificate(request); |
146 |
logMetacat.debug("Retrieved certificate: " + certificate);
|
|
146 |
System.out.println("Retrieved certificate: " + certificate);
|
|
147 | 147 |
PrivateKey key = portalManager.getPrivateKey(request); |
148 |
logMetacat.debug("Retrieved key: " + key);
|
|
148 |
System.out.println("Retrieved key: " + key);
|
|
149 | 149 |
if (certificate != null && key != null) { |
150 | 150 |
request.setAttribute("javax.servlet.request.X509Certificate", certificate); |
151 |
logMetacat.debug("Added certificate to the request: " + certificate.toString());
|
|
151 |
System.out.println("Added certificate to the request: " + certificate.toString());
|
|
152 | 152 |
} |
153 | 153 |
|
154 | 154 |
// load session from certificate in request |
Also available in: Unified diff
use System.out.println until the oa4mp logging issue is resolved.