Package com.netscape.cms.servlet.admin
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 String
static final String
static String
static String
static String
static String
static String
static String
static org.slf4j.Logger
static String
static String
static String
static String
protected PolicyProcessor
static String
static final String
static final String
static final String
Fields inherited from class com.netscape.cms.servlet.admin.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, SUCCESS
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPolicyImpl
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Add policy implementationvoid
addPolicyInstance
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Add policy instancevoid
changePolicyInstanceOrdering
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Change ordering of policy instancesvoid
deletePolicyImpl
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Delete policy implementationvoid
deletePolicyInstance
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Delete policy instancegetExtendedPluginInfo
(String implName, String instName) void
getPolicyImplConfig
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) void
getPolicyInstanceConfig
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Returns serlvet information.void
listPolicyImpls
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) void
listPolicyInstances
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) void
modifyPolicyInstance
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Modify policy instancevoid
processPolicyImplMgmt
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Process Policy Implementation Management.void
processPolicyRuleMgmt
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) void
putUserPWPair
(String combo) void
service
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Serves HTTP admin request.Methods inherited from class com.netscape.cms.servlet.admin.AdminServlet
auditParams, auditSubjectID, authenticate, authorize, authorize, commit, convertStringArrayToNVPairs, getAuthCreds, getClassByNameAsExtendedPluginInfo, getCMSEngine, getConfig, getLocale, getParameter, init, listConfig, outputHttpParameters, sendResponse, setConfig, URLdecode
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods 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:
getServletInfo
in interfacejakarta.servlet.Servlet
- Overrides:
getServletInfo
in 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:
service
in classAdminServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
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.ServletException
IOException
-
processPolicyRuleMgmt
public void processPolicyRuleMgmt(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletException
IOException
-
listPolicyImpls
public void listPolicyImpls(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletException
IOException
-
listPolicyInstances
public void listPolicyInstances(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletException
IOException
-
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.ServletException
IOException
-
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.ServletException
IOException
-
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
-