Class PolicyAdminServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.netscape.cms.servlet.admin.AdminServlet
com.netscape.cms.servlet.admin.PolicyAdminServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
This class is an administration servlet for policy management.
Each service (CA, KRA, RA) should be responsible
for registering an instance of this with the remote
administration subsystem.
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic final Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic org.slf4j.Loggerstatic Stringstatic Stringstatic Stringstatic Stringprotected PolicyProcessorstatic Stringstatic final Stringstatic final Stringstatic final StringFields 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 TypeMethodDescriptionvoidaddPolicyImpl(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Add policy implementationvoidaddPolicyInstance(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Add policy instancevoidchangePolicyInstanceOrdering(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Change ordering of policy instancesvoiddeletePolicyImpl(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Delete policy implementationvoiddeletePolicyInstance(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Delete policy instancegetExtendedPluginInfo(String implName, String instName) voidgetPolicyImplConfig(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) voidgetPolicyInstanceConfig(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Returns serlvet information.voidlistPolicyImpls(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) voidlistPolicyInstances(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) voidmodifyPolicyInstance(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Modify policy instancevoidprocessPolicyImplMgmt(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Process Policy Implementation Management.voidprocessPolicyRuleMgmt(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) voidputUserPWPair(String combo) voidservice(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Serves HTTP admin request.Methods inherited from class AdminServlet
auditParams, auditSubjectID, authenticate, authorize, authorize, commit, convertStringArrayToNVPairs, getAuthCreds, getClassByNameAsExtendedPluginInfo, getCMSEngine, getConfig, getLocale, getParameter, init, 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 -
PROP_AUTHORITY
- See Also:
-
INFO
- See Also:
-
PW_PASSWORD_CACHE_ADD
- See Also:
-
PROP_PREDICATE
- See Also:
-
mProcessor
-
INVALID_POLICY_SCOPE
-
INVALID_POLICY_IMPL_OP
-
NYI
-
INVALID_POLICY_IMPL_CONFIG
-
INVALID_POLICY_INSTANCE_CONFIG
-
MISSING_POLICY_IMPL_ID
-
MISSING_POLICY_IMPL_CLASS
-
INVALID_POLICY_IMPL_ID
-
MISSING_POLICY_INST_ID
-
INVALID_POLICY_INST_ID
-
COMMA
-
MISSING_POLICY_ORDERING
-
-
Constructor Details
-
PolicyAdminServlet
public PolicyAdminServlet()Constructs administration servlet.
-
-
Method Details
-
getServletInfo
Returns serlvet information.- Specified by:
getServletInfoin interfacejakarta.servlet.Servlet- Overrides:
getServletInfoin classjakarta.servlet.GenericServlet
-
getExtendedPluginInfo
-
service
public void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException Serves HTTP admin request.- Overrides:
servicein classAdminServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
processPolicyImplMgmt
public void processPolicyImplMgmt(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException Process Policy Implementation Management.- Throws:
jakarta.servlet.ServletExceptionIOException
-
processPolicyRuleMgmt
public void processPolicyRuleMgmt(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
listPolicyImpls
public void listPolicyImpls(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
listPolicyInstances
public void listPolicyInstances(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
deletePolicyImpl
public void deletePolicyImpl(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException Delete policy implementation- signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_POLICY used when configuring cert policy constraints and extensions
- Parameters:
req- HTTP servlet requestresp- HTTP servlet response- Throws:
jakarta.servlet.ServletException- a servlet error has occurredIOException- an input/output error has occurred
-
getPolicyImplConfig
public void getPolicyImplConfig(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
addPolicyImpl
public void addPolicyImpl(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException Add policy implementation- signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_POLICY used when configuring cert policy constraints and extensions
- Parameters:
req- HTTP servlet requestresp- HTTP servlet response- Throws:
jakarta.servlet.ServletException- a servlet error has occurredIOException- an input/output error has occurred
-
deletePolicyInstance
public void deletePolicyInstance(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException Delete policy instance- signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_POLICY used when configuring cert policy constraints and extensions
- Parameters:
req- HTTP servlet requestresp- HTTP servlet response- Throws:
jakarta.servlet.ServletException- a servlet error has occurredIOException- an input/output error has occurred
-
getPolicyInstanceConfig
public void getPolicyInstanceConfig(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
putUserPWPair
-
addPolicyInstance
public void addPolicyInstance(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException Add policy instance- signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_POLICY used when configuring cert policy constraints and extensions
- Parameters:
req- HTTP servlet requestresp- HTTP servlet response- Throws:
jakarta.servlet.ServletException- a servlet error has occurredIOException- an input/output error has occurred
-
changePolicyInstanceOrdering
public void changePolicyInstanceOrdering(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException Change ordering of policy instances- signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_POLICY used when configuring cert policy constraints and extensions
- Parameters:
req- HTTP servlet requestresp- HTTP servlet response- Throws:
jakarta.servlet.ServletException- a servlet error has occurredIOException- an input/output error has occurred
-
modifyPolicyInstance
public void modifyPolicyInstance(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException Modify policy instance- signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_POLICY used when configuring cert policy constraints and extensions
- Parameters:
req- HTTP servlet requestresp- HTTP servlet response- Throws:
jakarta.servlet.ServletException- a servlet error has occurredIOException- an input/output error has occurred
-