001 /** 002 * 003 * Licensed to the Apache Software Foundation (ASF) under one or more 004 * contributor license agreements. See the NOTICE file distributed with 005 * this work for additional information regarding copyright ownership. 006 * The ASF licenses this file to You under the Apache License, Version 2.0 007 * (the "License"); you may not use this file except in compliance with 008 * the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018 package org.apache.geronimo.console.ca; 019 020 import javax.portlet.PortletConfig; 021 import javax.portlet.PortletException; 022 import javax.portlet.PortletRequest; 023 024 import org.apache.geronimo.console.MultiPageModel; 025 import org.apache.geronimo.console.MultiPagePortlet; 026 027 /** 028 * A portlet for Certification Authority. 029 * 030 * @version $Rev: 706640 $ $Date: 2008-10-21 14:44:05 +0000 (Tue, 21 Oct 2008) $ 031 */ 032 public class CertificationAuthorityPortlet extends MultiPagePortlet { 033 public void init(PortletConfig config) throws PortletException { 034 super.init(config); 035 addHelper(new IntroHandler(), config); 036 addHelper(new SetupCAHandler(), config); 037 addHelper(new ConfirmCAHandler(), config); 038 addHelper(new CADetailsHandler(), config); 039 addHelper(new UnlockCAHandler(), config); 040 addHelper(new ProcessCSRHandler(), config); 041 addHelper(new CertReqDetailsHandler(), config); 042 addHelper(new ConfirmClientCertHandler(), config); 043 addHelper(new ViewCertificateHandler(), config); 044 addHelper(new ListRequestsIssueHandler(), config); 045 addHelper(new ListRequestsVerifyHandler(), config); 046 addHelper(new ConfirmCertReqHandler(), config); 047 } 048 049 protected String getModelJSPVariableName() { 050 return "model"; 051 } 052 053 protected MultiPageModel getModel(PortletRequest request) { 054 return new BaseCAHandler.CAModel(request); 055 } 056 }