Class CertificatesAction
java.lang.Object
org.apache.struts.action.Action
ecmwf.web.controller.ECMWFAction
ecmwf.ecpds.master.plugin.http.controller.PDSAction
ecmwf.ecpds.master.plugin.http.controller.admin.CertificatesAction
The Class CertificatesAction.
Handles the certificate management administration page at
/do/admin/certificates.
Supported POST actions (via the action request parameter):
generate– generate a new self-signed certificate and optionally deploy to moverscsr– generate a CSR and stream it as a PEM downloadimport– import a PEM / PKCS#12 / JKS certificate from an uploaded filedownload– stream the current public certificate as a PEM downloaddeploy– push the current Monitor certificate to all Data Movers
-
Field Summary
Fields inherited from class PDSAction
RETURN_AFTER_LOGIN_KEYFields inherited from class ecmwf.web.controller.ECMWFAction
EXCEPTION_KEY, PATH_PARAMETERS_KEY, RETURN_AFTER_ERROR_KEYFields inherited from class org.apache.struts.action.Action
defaultLocale, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts aCertificateManager.CertificateInfointo a display-friendlyMap.org.apache.struts.action.ActionForwardsafeAuthorizedPerform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ecmwf.web.model.users.User user) Safe authorized perform.Methods inherited from class PDSAction
getDateOptions, getISOFormat, match, safePerform, search, setGuideIfPresentMethods inherited from class ecmwf.web.controller.ECMWFAction
checkTimeTaken, execute, getResource, getUser, getUserCommonName, getUserOldStyle, getUserUid, processParameterEnsuringBasePathMethods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Constructor Details
-
CertificatesAction
public CertificatesAction()
-
-
Method Details
-
safeAuthorizedPerform
public org.apache.struts.action.ActionForward safeAuthorizedPerform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ecmwf.web.model.users.User user) throws ecmwf.web.ECMWFException, ClassCastException Safe authorized perform.- Specified by:
safeAuthorizedPerformin classPDSAction- Parameters:
mapping- the mappingform- the formrequest- the requestresponse- the responseuser- the user- Returns:
- the action forward
- Throws:
ecmwf.web.ECMWFException- the ECMWF exceptionClassCastException- the class cast exception
-
formatInfo
Converts aCertificateManager.CertificateInfointo a display-friendlyMap. Dates are split into date (yyyy-MM-dd) and time (HH:mm:ss) entries, both in UTC.
-