public class PolicyAdminServlet extends AdminServlet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMMA |
static java.lang.String |
INVALID_POLICY_IMPL_CONFIG |
static java.lang.String |
INVALID_POLICY_IMPL_ID |
static java.lang.String |
INVALID_POLICY_IMPL_OP |
static java.lang.String |
INVALID_POLICY_INST_ID |
static java.lang.String |
INVALID_POLICY_INSTANCE_CONFIG |
static java.lang.String |
INVALID_POLICY_SCOPE |
static java.lang.String |
MISSING_POLICY_IMPL_CLASS |
static java.lang.String |
MISSING_POLICY_IMPL_ID |
static java.lang.String |
MISSING_POLICY_INST_ID |
static java.lang.String |
MISSING_POLICY_ORDERING |
static java.lang.String |
NYI |
static java.lang.String |
PROP_AUTHORITY |
static java.lang.String |
PROP_PREDICATE |
AUTHZ_CONFIG_STORE, AUTHZ_MGR_BASIC, AUTHZ_MGR_LDAP, AUTHZ_RES_NAME, AUTHZ_SRC_LDAP, AUTHZ_SRC_TYPE, AUTHZ_SRC_XML, CERT_ATTR, ERROR, mAclMethod, mAuthz, mConfig, mLogger, mOp, mSignedAuditLogger, mToken, PROP_ACL, PROP_AUTHZ_MGR, PROP_ID, RESTART, SIGNED_AUDIT_EMPTY_NAME_VALUE_PAIR, SIGNED_AUDIT_NAME_VALUE_DELIMITER, SIGNED_AUDIT_NAME_VALUE_PAIRS_DELIMITER, SIGNED_AUDIT_OPERATION, SIGNED_AUDIT_PASSWORD_VALUE, SIGNED_AUDIT_RESOURCE, SIGNED_AUDIT_RULENAME, SIGNED_AUDIT_SCOPE, SUCCESS
Constructor and Description |
---|
PolicyAdminServlet()
Constructs administration servlet.
|
Modifier and Type | Method and Description |
---|---|
void |
addPolicyImpl(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Add policy implementation
|
void |
addPolicyInstance(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Add policy instance
|
void |
changePolicyInstanceOrdering(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Change ordering of policy instances
|
void |
deletePolicyImpl(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Delete policy implementation
|
void |
deletePolicyInstance(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Delete policy instance
|
NameValuePairs |
getExtendedPluginInfo(java.util.Locale locale,
java.lang.String pluginType,
java.lang.String implName,
java.lang.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) |
java.lang.String |
getServletInfo()
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 instance
|
void |
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(java.lang.String combo) |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Serves HTTP admin request.
|
audit, auditParams, auditSubjectID, authenticate, authorize, authorize, commit, convertStringArrayToNVPairs, getAuthCreds, getClassByNameAsExtendedPluginInfo, getConfig, getLocale, getParameter, listConfig, outputHttpParameters, sendResponse, setConfig, URLdecode
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public static final java.lang.String PROP_AUTHORITY
public static final java.lang.String PROP_PREDICATE
public static java.lang.String INVALID_POLICY_SCOPE
public static java.lang.String INVALID_POLICY_IMPL_OP
public static java.lang.String NYI
public static java.lang.String INVALID_POLICY_IMPL_CONFIG
public static java.lang.String INVALID_POLICY_INSTANCE_CONFIG
public static java.lang.String MISSING_POLICY_IMPL_ID
public static java.lang.String MISSING_POLICY_IMPL_CLASS
public static java.lang.String INVALID_POLICY_IMPL_ID
public static java.lang.String MISSING_POLICY_INST_ID
public static java.lang.String INVALID_POLICY_INST_ID
public static java.lang.String COMMA
public static java.lang.String MISSING_POLICY_ORDERING
public PolicyAdminServlet()
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class AdminServlet
javax.servlet.ServletException
public java.lang.String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
public NameValuePairs getExtendedPluginInfo(java.util.Locale locale, java.lang.String pluginType, java.lang.String implName, java.lang.String instName)
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
service
in class AdminServlet
javax.servlet.ServletException
java.io.IOException
public void processPolicyImplMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void processPolicyRuleMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void listPolicyImpls(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void listPolicyInstances(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void deletePolicyImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
req
- HTTP servlet requestresp
- HTTP servlet responsejavax.servlet.ServletException
- a servlet error has occurredjava.io.IOException
- an input/output error has occurredpublic void getPolicyImplConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void addPolicyImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
req
- HTTP servlet requestresp
- HTTP servlet responsejavax.servlet.ServletException
- a servlet error has occurredjava.io.IOException
- an input/output error has occurredpublic void deletePolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
req
- HTTP servlet requestresp
- HTTP servlet responsejavax.servlet.ServletException
- a servlet error has occurredjava.io.IOException
- an input/output error has occurredpublic void getPolicyInstanceConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void putUserPWPair(java.lang.String combo)
public void addPolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
req
- HTTP servlet requestresp
- HTTP servlet responsejavax.servlet.ServletException
- a servlet error has occurredjava.io.IOException
- an input/output error has occurredpublic void changePolicyInstanceOrdering(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
req
- HTTP servlet requestresp
- HTTP servlet responsejavax.servlet.ServletException
- a servlet error has occurredjava.io.IOException
- an input/output error has occurredpublic void modifyPolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
req
- HTTP servlet requestresp
- HTTP servlet responsejavax.servlet.ServletException
- a servlet error has occurredjava.io.IOException
- an input/output error has occurred