Class CMSAdminServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.netscape.cms.servlet.admin.AdminServlet
com.netscape.cms.servlet.admin.CMSAdminServlet
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
A class representings an administration servlet. This
servlet is responsible to serve Certificate Server
level administrative operations such as configuration
parameter updates.
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
FieldsFields inherited from class com.netscape.cms.servlet.admin.AdminServlet
auditor, AUTHZ_MGR_BASIC, AUTHZ_MGR_LDAP, AUTHZ_RES_NAME, AUTHZ_SRC_LDAP, AUTHZ_SRC_TYPE, AUTHZ_SRC_XML, CERT_ATTR, ERROR, mAclMethod, mAuthz, mConfig, mOp, mToken, PROP_ACL, PROP_AUTHZ_MGR, PROP_ID, RESTART, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCertNickname(String nickName) getNickname(String certType) Returns serlvet information.voidinit(javax.servlet.ServletConfig config) Initializes this servlet.voidinstallCASigningCert(String fullName, String nickname, String tokenName) voidinstallOCSPSigningCert(String fullName, String nickname, String tokenName) booleanisSubsystemInstalled(String subsystem) voidissueImportCert(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Issue import certificatevoidmodifyAgentGatewayCert(String nickName) voidmodifyCACert(javax.servlet.http.HttpServletRequest request, String value) voidmodifyCAGatewayCert(ICertificateAuthority ca, String nickName) voidmodifyEEGatewayCert(IRegistrationAuthority ra, String nickName) voidmodifyRADMCert(String nickName) voidmodifyServerCert(String nickname) voidreadEncryption(NameValuePairs params) voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Serves HTTP request.voidsetCANewnickname(String tokenName, String nickname) voidsetOCSPNewnickname(String tokenName, String nickname) voidsetRootCertTrust(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Methods inherited from class com.netscape.cms.servlet.admin.AdminServlet
audit, audit, auditParams, auditSubjectID, authenticate, authorize, authorize, commit, convertStringArrayToNVPairs, getAuthCreds, getClassByNameAsExtendedPluginInfo, getConfig, getLocale, getParameter, listConfig, outputHttpParameters, sendResponse, setConfig, URLdecodeMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
CMSAdminServlet
public CMSAdminServlet()Constructs CA servlet.
-
-
Method Details
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException Initializes this servlet.- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classAdminServlet- Throws:
javax.servlet.ServletException
-
getServletInfo
Returns serlvet information.- Specified by:
getServletInfoin interfacejavax.servlet.Servlet- Overrides:
getServletInfoin classjavax.servlet.GenericServlet
-
service
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException Serves HTTP request.- Overrides:
servicein classAdminServlet- Throws:
javax.servlet.ServletExceptionIOException
-
isSubsystemInstalled
-
readEncryption
- Throws:
EBaseException
-
getCertNickname
-
modifyCACert
public void modifyCACert(javax.servlet.http.HttpServletRequest request, String value) throws EBaseException - Throws:
EBaseException
-
modifyServerCert
- Throws:
EBaseException
-
getCertConfigNickname
- Throws:
EBaseException
-
modifyRADMCert
-
modifyAgentGatewayCert
-
modifyEEGatewayCert
-
modifyCAGatewayCert
-
setCANewnickname
- Throws:
EBaseException
-
setOCSPNewnickname
- Throws:
EBaseException
-
issueImportCert
public void issueImportCert(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException, EBaseException Issue import certificate- signed.audit LOGGING_SIGNED_AUDIT_CONFIG_TRUSTED_PUBLIC_KEY used when "Certificate Setup Wizard" is used to import CA certs into the certificate database
- Throws:
javax.servlet.ServletException- a servlet error has occurredIOException- an input/output error has occurredEBaseException- failed to issue an import certificate
-
installCASigningCert
public void installCASigningCert(String fullName, String nickname, String tokenName) throws EBaseException - Throws:
EBaseException
-
installOCSPSigningCert
public void installOCSPSigningCert(String fullName, String nickname, String tokenName) throws EBaseException - Throws:
EBaseException
-
getNickname
- Throws:
EBaseException
-
setRootCertTrust
public void setRootCertTrust(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException, EBaseException - Throws:
javax.servlet.ServletExceptionIOExceptionEBaseException
-