org.apache.geronimo.console.ca
Class BaseCAHandler

java.lang.Object
  extended by org.apache.geronimo.console.MultiPageAbstractHandler
      extended by org.apache.geronimo.console.ca.BaseCAHandler
Direct Known Subclasses:
CADetailsHandler, CertReqDetailsHandler, ConfirmCAHandler, ConfirmCertReqHandler, ConfirmClientCertHandler, IntroHandler, ListRequestsIssueHandler, ListRequestsVerifyHandler, ProcessCSRHandler, SetupCAHandler, UnlockCAHandler, ViewCertificateHandler

public abstract class BaseCAHandler
extends MultiPageAbstractHandler

The base class for all handlers for CA portlet


Nested Class Summary
static class BaseCAHandler.CAModel
           
 
Field Summary
protected static String CADETAILS_MODE
           
protected static String CERT_REQ_DETAILS_MODE
           
protected static String CONFIRM_CA_MODE
           
protected static String CONFIRM_CERT_REQ_MODE
           
protected static String CONFIRM_CLIENT_CERT_MODE
           
protected static String defaultCAKeystore
           
protected static String defaultCAStoreDir
           
protected static String defaultCSRStoreDir
           
protected static String defaultKeyAlgorithm
           
protected static String ERROR_MSG
           
protected static String INDEX_MODE
           
protected static String INFO_MSG
           
protected static String LIST_REQUESTS_ISSUE_MODE
           
protected static String LIST_REQUESTS_VERIFY_MODE
           
protected static String PROCESS_CSR_MODE
           
protected static String SETUPCA_MODE
           
protected static String UNLOCKCA_MODE
           
protected static String VIEW_CERT_MODE
           
 
Fields inherited from class org.apache.geronimo.console.MultiPageAbstractHandler
AFTER_ACTION, BEFORE_ACTION, view
 
Constructor Summary
protected BaseCAHandler(String mode, String viewName)
          Constructor
 
Method Summary
protected  KeystoreInstance createCAKeystoreInstance(javax.portlet.PortletRequest request, String password)
          This methods creates CA's keystore using KeystoreManager.
protected  CertificateRequestStore getCertificateRequestStore(javax.portlet.PortletRequest request)
          This method returns CertificateRequestStore GBean.
protected  CertificateStore getCertificateStore(javax.portlet.PortletRequest request)
          This method returns CertificateStore GBean.
protected  CertificationAuthority getCertificationAuthority(javax.portlet.PortletRequest request)
          This method returns CertificationAuthority GBbean.
 
Methods inherited from class org.apache.geronimo.console.MultiPageAbstractHandler
actionAfterView, actionBeforeView, destroy, getMode, getUploadFields, getUploadFiles, getView, init, isEmpty, renderView, waitForProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDEX_MODE

protected static final String INDEX_MODE
See Also:
Constant Field Values

SETUPCA_MODE

protected static final String SETUPCA_MODE
See Also:
Constant Field Values

CONFIRM_CA_MODE

protected static final String CONFIRM_CA_MODE
See Also:
Constant Field Values

CADETAILS_MODE

protected static final String CADETAILS_MODE
See Also:
Constant Field Values

UNLOCKCA_MODE

protected static final String UNLOCKCA_MODE
See Also:
Constant Field Values

PROCESS_CSR_MODE

protected static final String PROCESS_CSR_MODE
See Also:
Constant Field Values

CERT_REQ_DETAILS_MODE

protected static final String CERT_REQ_DETAILS_MODE
See Also:
Constant Field Values

CONFIRM_CLIENT_CERT_MODE

protected static final String CONFIRM_CLIENT_CERT_MODE
See Also:
Constant Field Values

VIEW_CERT_MODE

protected static final String VIEW_CERT_MODE
See Also:
Constant Field Values

LIST_REQUESTS_ISSUE_MODE

protected static final String LIST_REQUESTS_ISSUE_MODE
See Also:
Constant Field Values

LIST_REQUESTS_VERIFY_MODE

protected static final String LIST_REQUESTS_VERIFY_MODE
See Also:
Constant Field Values

CONFIRM_CERT_REQ_MODE

protected static final String CONFIRM_CERT_REQ_MODE
See Also:
Constant Field Values

defaultKeyAlgorithm

protected static final String defaultKeyAlgorithm
See Also:
Constant Field Values

defaultCAKeystore

protected static final String defaultCAKeystore
See Also:
Constant Field Values

defaultCAStoreDir

protected static final String defaultCAStoreDir
See Also:
Constant Field Values

defaultCSRStoreDir

protected static final String defaultCSRStoreDir
See Also:
Constant Field Values

ERROR_MSG

protected static final String ERROR_MSG
See Also:
Constant Field Values

INFO_MSG

protected static final String INFO_MSG
See Also:
Constant Field Values
Constructor Detail

BaseCAHandler

protected BaseCAHandler(String mode,
                        String viewName)
Constructor

Method Detail

getCertificationAuthority

protected CertificationAuthority getCertificationAuthority(javax.portlet.PortletRequest request)
This method returns CertificationAuthority GBbean.

Parameters:
request - PortletRequest to execute retrieve GBean
Returns:
null if a CA GBean is not running.

createCAKeystoreInstance

protected KeystoreInstance createCAKeystoreInstance(javax.portlet.PortletRequest request,
                                                    String password)
                                             throws KeystoreException
This methods creates CA's keystore using KeystoreManager.

Parameters:
request - PortletRequest to get KeystoreManager
password - Password for newly created Keystore
Throws:
KeystoreException

getCertificateRequestStore

protected CertificateRequestStore getCertificateRequestStore(javax.portlet.PortletRequest request)
This method returns CertificateRequestStore GBean.

Parameters:
request - PortletRequest to execute retrieve GBean
Returns:
null if a CertificateRequestStore GBean is not running.

getCertificateStore

protected CertificateStore getCertificateStore(javax.portlet.PortletRequest request)
This method returns CertificateStore GBean.

Parameters:
request - PortletRequest to execute retrieve GBean
Returns:
null if a CertificateStore GBean is not running.


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.