public class ProfileAdminServlet extends AdminServlet
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BAD_CONFIGURATION_VAL |
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 |
POLICY_INST_ID_ALREADY_USED |
static java.lang.String |
PROP_AUTHORITY |
static java.lang.String |
PROP_PREDICATE |
auditor, 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, mToken, PROP_ACL, PROP_AUTHZ_MGR, PROP_ID, RESTART, SUCCESS| Constructor and Description |
|---|
ProfileAdminServlet()
Constructs administration servlet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPolicyConstraintConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Add policy constraints profile configuration
|
void |
addPolicyDefaultConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Add default policy profile configuration
|
void |
addProfileInput(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Add profile input
|
void |
addProfileInstance(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Add profile instance
|
void |
addProfileOutput(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Add profile output
|
void |
addProfilePolicy(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Add policy profile
|
void |
deleteProfileInput(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Delete profile input
|
void |
deleteProfileInstance(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Delete profile instance
|
void |
deleteProfileOutput(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Delete profile output
|
void |
deleteProfilePolicy(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Delete policy profile
|
void |
getInputConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected java.lang.String |
getNonNull(java.lang.String s) |
void |
getOutputConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
getPolicyConstraintConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
getPolicyDefaultConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
getProfileInput(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
getProfileInstanceConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
getProfileOutput(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
getProfilePolicy(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.
|
boolean |
isValidId(java.lang.String id) |
void |
listProfileImpls(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Lists all registered profile impementations
|
void |
listProfileInstances(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
modifyInputConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Modify profile input configuration
|
void |
modifyOutputConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Modify profile output configuration
|
void |
modifyPolicyConstraintConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Modify policy constraints profile configuration
|
void |
modifyPolicyDefaultConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Modify default policy profile configuration
|
void |
modifyProfileInstance(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Modify profile instance
|
void |
processPolicyConstraintConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
processPolicyDefaultConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
processPolicyImplMgmt(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Process Policy Implementation Management.
|
void |
processProfileInput(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
processProfileInputConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
processProfileOutput(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
processProfileOutputConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
processProfilePolicy(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
processProfileRuleMgmt(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, URLdecodedoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic 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 POLICY_INST_ID_ALREADY_USED
public static java.lang.String INVALID_POLICY_INST_ID
public static java.lang.String COMMA
public static java.lang.String MISSING_POLICY_ORDERING
public static java.lang.String BAD_CONFIGURATION_VAL
public ProfileAdminServlet()
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class AdminServletjavax.servlet.ServletExceptionpublic java.lang.String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServletpublic void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
service in class AdminServletjavax.servlet.ServletExceptionjava.io.IOExceptionpublic void processProfilePolicy(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void processProfileInput(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void processProfileOutput(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void processProfileInputConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void processProfileOutputConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void processPolicyDefaultConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void processPolicyConstraintConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void processPolicyImplMgmt(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void processProfileRuleMgmt(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void listProfileImpls(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void addProfilePolicy(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 addProfileInput(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 addProfileOutput(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 deleteProfilePolicy(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 deleteProfileInput(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 deleteProfileOutput(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 addPolicyDefaultConfig(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 addPolicyConstraintConfig(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 modifyPolicyDefaultConfig(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 modifyInputConfig(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 modifyOutputConfig(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 modifyPolicyConstraintConfig(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 getPolicyDefaultConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void getPolicyConstraintConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void getProfilePolicy(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void getProfileOutput(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void getProfileInput(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void getInputConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void getOutputConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void listProfileInstances(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void getProfileInstanceConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic void deleteProfileInstance(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 putUserPWPair(java.lang.String combo)
public boolean isValidId(java.lang.String id)
public void addProfileInstance(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 modifyProfileInstance(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 occurredprotected java.lang.String getNonNull(java.lang.String s)