Class CMSAdminServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.netscape.cms.servlet.admin.AdminServlet
com.netscape.cms.servlet.admin.CMSAdminServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
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 AdminServlet
AUTHZ_MGR_BASIC, AUTHZ_MGR_LDAP, AUTHZ_RES_NAME, CERT_ATTR, ERROR, mAclMethod, mAuthz, mConfig, mOp, mToken, PROP_ACL, PROP_AUTHZ_MGR, PROP_ID, RESTART, servletConfig, servletContext, SUCCESSFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCertNickname(String nickName) getNickname(String certType) Returns serlvet information.protected voidimportXCert(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) For "importing" cross-signed cert into internal db for further cross pair matching and publishing signed.audit LOGGING_SIGNED_AUDIT_CONFIG_TRUSTED_PUBLIC_KEY used when "Certificate Setup Wizard" is used to import a CA cross-signed certificate into the databasevoidinit(jakarta.servlet.ServletConfig config) Initializes this servlet.voidinstallCASigningCert(String fullName, String nickname, String tokenName) voidinstallOCSPSigningCert(String fullName, String nickname, String tokenName) booleanisSubsystemInstalled(String subsystem) voidissueImportCert(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Issue import certificatevoidmodifyAgentGatewayCert(String nickName) voidmodifyCACert(jakarta.servlet.http.HttpServletRequest request, String value) voidmodifyCAGatewayCert(String nickname) voidmodifyKRACert(String nickname) voidmodifyRADMCert(String nickName) voidmodifyServerCert(String nickname) voidreadEncryption(NameValuePairs params) voidservice(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Serves HTTP request.voidsetRootCertTrust(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Methods inherited from class AdminServlet
auditParams, auditSubjectID, authenticate, authorize, authorize, commit, convertStringArrayToNVPairs, getAuthCreds, getClassByNameAsExtendedPluginInfo, getCMSEngine, getConfig, getLocale, getParameter, listConfig, outputHttpParameters, sendResponse, setConfig, URLdecodeMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class jakarta.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(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException Initializes this servlet.- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classAdminServlet- Throws:
jakarta.servlet.ServletException
-
getServletInfo
Returns serlvet information.- Specified by:
getServletInfoin interfacejakarta.servlet.Servlet- Overrides:
getServletInfoin classjakarta.servlet.GenericServlet
-
service
public void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException Serves HTTP request.- Overrides:
servicein classAdminServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
isSubsystemInstalled
-
readEncryption
- Throws:
EBaseException
-
getCertNickname
-
modifyCACert
public void modifyCACert(jakarta.servlet.http.HttpServletRequest request, String value) throws EBaseException - Throws:
EBaseException
-
modifyKRACert
- Throws:
EBaseException
-
modifyServerCert
- Throws:
EBaseException
-
getCertConfigNickname
- Throws:
EBaseException
-
modifyRADMCert
-
modifyAgentGatewayCert
-
modifyCAGatewayCert
-
issueImportCert
public void issueImportCert(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.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:
jakarta.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
-
importXCert
protected void importXCert(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException, EBaseException For "importing" cross-signed cert into internal db for further cross pair matching and publishing- signed.audit LOGGING_SIGNED_AUDIT_CONFIG_TRUSTED_PUBLIC_KEY used when "Certificate Setup Wizard" is used to import a CA cross-signed certificate into the database
- Throws:
jakarta.servlet.ServletException- a servlet error has occurredIOException- an input/output error has occurredEBaseException- failed to import a cross-certificate pair
-
getNickname
- Throws:
EBaseException
-
setRootCertTrust
public void setRootCertTrust(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException, EBaseException - Throws:
IOExceptionEBaseException
-