<%@page import="org.dataone.client.auth.CertificateManager"%> <%@page import="java.security.PrivateKey"%> <%@page import="java.security.cert.X509Certificate"%> <%@page import="org.dataone.portal.PortalCertificateManager"%> <%@ page language="java"%> <% /** * '$RCSfile$' * Authors: Matt Jones * Copyright: 2008 Regents of the University of California and the * National Center for Ecological Analysis and Synthesis * For Details: http://www.nceas.ucsb.edu/ * * '$Author$' * '$Date$' * '$Revision$' * * This is an HTML document for loading an xml document into Oracle * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ %> <%@ include file="../../common/common-settings.jsp"%> <%@ include file="../../common/configure-check.jsp"%> <% String certificateSubject = "(not logged in)"; //check for session-based certificate from the portal String configurationFileName = application.getInitParameter("oa4mp:client.config.file"); String configurationFilePath = application.getRealPath(configurationFileName); PortalCertificateManager portalManager = new PortalCertificateManager(configurationFilePath); X509Certificate certificate = portalManager.getCertificate(request); PrivateKey key = portalManager.getPrivateKey(request); if (certificate != null && key != null) { certificateSubject = CertificateManager.getInstance().getSubjectDN(certificate); } %> Map legacy account to DataONE

You are logged in as: <%=certificateSubject %>

Login or switch user...