Package com.netscape.cms.servlet.admin
Class PolicyAdminServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.netscape.cms.servlet.admin.AdminServlet
com.netscape.cms.servlet.admin.PolicyAdminServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
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 String
static String
static String
static String
static String
static String
static org.slf4j.Logger
static String
static String
static String
static String
static String
static final String
static final String
Fields 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 TypeMethodDescriptionvoid
addPolicyImpl
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Add policy implementationvoid
addPolicyInstance
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Add policy instancevoid
changePolicyInstanceOrdering
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Change ordering of policy instancesvoid
deletePolicyImpl
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Delete policy implementationvoid
deletePolicyInstance
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Delete policy instancegetExtendedPluginInfo
(String implName, String instName) void
getPolicyImplConfig
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) void
getPolicyInstanceConfig
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Returns serlvet information.void
init
(javax.servlet.ServletConfig config) Initializes this servlet.void
listPolicyImpls
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) void
listPolicyInstances
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) void
modifyPolicyInstance
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Modify policy instancevoid
processPolicyImplMgmt
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Process Policy Implementation Management.void
processPolicyRuleMgmt
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) void
putUserPWPair
(String combo) void
service
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Serves HTTP admin request.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, URLdecode
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
-
Field Details
-
logger
public static org.slf4j.Logger logger -
PROP_AUTHORITY
- See Also:
-
PROP_PREDICATE
- See Also:
-
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
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException Initializes this servlet.- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classAdminServlet
- Throws:
javax.servlet.ServletException
-
getServletInfo
Returns serlvet information.- Specified by:
getServletInfo
in interfacejavax.servlet.Servlet
- Overrides:
getServletInfo
in classjavax.servlet.GenericServlet
-
getExtendedPluginInfo
-
service
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException Serves HTTP admin request.- Overrides:
service
in classAdminServlet
- Throws:
javax.servlet.ServletException
IOException
-
processPolicyImplMgmt
public void processPolicyImplMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException Process Policy Implementation Management.- Throws:
javax.servlet.ServletException
IOException
-
processPolicyRuleMgmt
public void processPolicyRuleMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
listPolicyImpls
public void listPolicyImpls(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
listPolicyInstances
public void listPolicyInstances(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
deletePolicyImpl
public void deletePolicyImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.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:
javax.servlet.ServletException
- a servlet error has occurredIOException
- an input/output error has occurred
-
getPolicyImplConfig
public void getPolicyImplConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
addPolicyImpl
public void addPolicyImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.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:
javax.servlet.ServletException
- a servlet error has occurredIOException
- an input/output error has occurred
-
deletePolicyInstance
public void deletePolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.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:
javax.servlet.ServletException
- a servlet error has occurredIOException
- an input/output error has occurred
-
getPolicyInstanceConfig
public void getPolicyInstanceConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
putUserPWPair
-
addPolicyInstance
public void addPolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.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:
javax.servlet.ServletException
- a servlet error has occurredIOException
- an input/output error has occurred
-
changePolicyInstanceOrdering
public void changePolicyInstanceOrdering(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.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:
javax.servlet.ServletException
- a servlet error has occurredIOException
- an input/output error has occurred
-
modifyPolicyInstance
public void modifyPolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.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:
javax.servlet.ServletException
- a servlet error has occurredIOException
- an input/output error has occurred
-