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:
java.io.Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class PolicyAdminServlet extends AdminServlet
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMMAstatic java.lang.StringINVALID_POLICY_IMPL_CONFIGstatic java.lang.StringINVALID_POLICY_IMPL_IDstatic java.lang.StringINVALID_POLICY_IMPL_OPstatic java.lang.StringINVALID_POLICY_INST_IDstatic java.lang.StringINVALID_POLICY_INSTANCE_CONFIGstatic java.lang.StringINVALID_POLICY_SCOPEstatic org.slf4j.Loggerloggerstatic java.lang.StringMISSING_POLICY_IMPL_CLASSstatic java.lang.StringMISSING_POLICY_IMPL_IDstatic java.lang.StringMISSING_POLICY_INST_IDstatic java.lang.StringMISSING_POLICY_ORDERINGstatic java.lang.StringNYIstatic java.lang.StringPROP_AUTHORITYstatic java.lang.StringPROP_PREDICATE-
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 Constructor Description PolicyAdminServlet()Constructs administration servlet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPolicyImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Add policy implementationvoidaddPolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Add policy instancevoidchangePolicyInstanceOrdering(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Change ordering of policy instancesvoiddeletePolicyImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Delete policy implementationvoiddeletePolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Delete policy instanceNameValuePairsgetExtendedPluginInfo(java.util.Locale locale, java.lang.String pluginType, java.lang.String implName, java.lang.String instName)voidgetPolicyImplConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)voidgetPolicyInstanceConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)java.lang.StringgetServletInfo()Returns serlvet information.voidinit(javax.servlet.ServletConfig config)Initializes this servlet.voidlistPolicyImpls(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)voidlistPolicyInstances(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)voidmodifyPolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Modify policy instancevoidprocessPolicyImplMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Process Policy Implementation Management.voidprocessPolicyRuleMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)voidputUserPWPair(java.lang.String combo)voidservice(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
-
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
PROP_AUTHORITY
public static final java.lang.String PROP_AUTHORITY
- See Also:
- Constant Field Values
-
PROP_PREDICATE
public static final java.lang.String PROP_PREDICATE
- See Also:
- Constant Field Values
-
INVALID_POLICY_SCOPE
public static java.lang.String INVALID_POLICY_SCOPE
-
INVALID_POLICY_IMPL_OP
public static java.lang.String INVALID_POLICY_IMPL_OP
-
NYI
public static java.lang.String NYI
-
INVALID_POLICY_IMPL_CONFIG
public static java.lang.String INVALID_POLICY_IMPL_CONFIG
-
INVALID_POLICY_INSTANCE_CONFIG
public static java.lang.String INVALID_POLICY_INSTANCE_CONFIG
-
MISSING_POLICY_IMPL_ID
public static java.lang.String MISSING_POLICY_IMPL_ID
-
MISSING_POLICY_IMPL_CLASS
public static java.lang.String MISSING_POLICY_IMPL_CLASS
-
INVALID_POLICY_IMPL_ID
public static java.lang.String INVALID_POLICY_IMPL_ID
-
MISSING_POLICY_INST_ID
public static java.lang.String MISSING_POLICY_INST_ID
-
INVALID_POLICY_INST_ID
public static java.lang.String INVALID_POLICY_INST_ID
-
COMMA
public static java.lang.String COMMA
-
MISSING_POLICY_ORDERING
public static java.lang.String MISSING_POLICY_ORDERING
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletExceptionInitializes this servlet.- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classAdminServlet- Throws:
javax.servlet.ServletException
-
getServletInfo
public java.lang.String getServletInfo()
Returns serlvet information.- Specified by:
getServletInfoin interfacejavax.servlet.Servlet- Overrides:
getServletInfoin classjavax.servlet.GenericServlet
-
getExtendedPluginInfo
public NameValuePairs getExtendedPluginInfo(java.util.Locale locale, java.lang.String pluginType, java.lang.String implName, java.lang.String instName)
-
service
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOExceptionServes HTTP admin request.- Overrides:
servicein classAdminServlet- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
processPolicyImplMgmt
public void processPolicyImplMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOExceptionProcess Policy Implementation Management.- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
processPolicyRuleMgmt
public void processPolicyRuleMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
listPolicyImpls
public void listPolicyImpls(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
listPolicyInstances
public void listPolicyInstances(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
deletePolicyImpl
public void deletePolicyImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOExceptionDelete 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 occurredjava.io.IOException- an input/output error has occurred
-
getPolicyImplConfig
public void getPolicyImplConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
addPolicyImpl
public void addPolicyImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOExceptionAdd 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 occurredjava.io.IOException- an input/output error has occurred
-
deletePolicyInstance
public void deletePolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOExceptionDelete 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 occurredjava.io.IOException- an input/output error has occurred
-
getPolicyInstanceConfig
public void getPolicyInstanceConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
putUserPWPair
public void putUserPWPair(java.lang.String combo)
-
addPolicyInstance
public void addPolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOExceptionAdd 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 occurredjava.io.IOException- an input/output error has occurred
-
changePolicyInstanceOrdering
public void changePolicyInstanceOrdering(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOExceptionChange 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 occurredjava.io.IOException- an input/output error has occurred
-
modifyPolicyInstance
public void modifyPolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOExceptionModify 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 occurredjava.io.IOException- an input/output error has occurred
-
-