Class RegistryAdminServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.netscape.cms.servlet.admin.AdminServlet
com.netscape.cms.servlet.admin.RegistryAdminServlet
- All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
This implements the administration servlet for registry subsystem.
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic org.slf4j.Loggerstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic final Stringstatic final StringFields inherited from class 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, SUCCESSModifier and TypeFieldDescriptionprotected Auditorstatic final Stringstatic final Stringprotected static Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic intprotected Stringprotected AuthzSubsystemprotected EngineConfigprotected Stringprotected AuthzTokenstatic final Stringstatic final Stringstatic final Stringstatic intstatic int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) voiddeleteImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) protected StringgetNonNull(String s) voidgetProfileImplConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Returns serlvet information.voidgetSupportedConstraintPolicies(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) voidinit(javax.servlet.ServletConfig config) Initializes this servlet.voidlistImpls(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Lists all registered profile impementationsvoidprocessImplMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Process Policy Implementation Management.voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Serves HTTP admin request.Methods inherited from class AdminServlet
audit, audit, auditParams, auditSubjectID, authenticate, authorize, authorize, commit, convertStringArrayToNVPairs, getAuthCreds, getClassByNameAsExtendedPluginInfo, getConfig, getLocale, getParameter, listConfig, outputHttpParameters, sendResponse, setConfig, URLdecodeModifier and TypeMethodDescriptionprotected voidprotected voidSigned Audit Log This method is inherited by all extended admin servlets and is called to store messages to the signed audit log.protected StringauditParams(javax.servlet.http.HttpServletRequest req) Signed Audit Parameters This method is inherited by all extended admin servlets and is called to extract parameters from the HttpServletRequest and return a string of name;;value pairs separated by a '+' if more than one name;;value pair exists.protected StringSigned Audit Log Subject ID This method is inherited by all extended "CMSServlet"s, and is called to obtain the "SubjectID" for a signed audit log message.protected voidauthenticate(javax.servlet.http.HttpServletRequest req) Authenticates to the identity scope with the given userid and password via identity manager.booleanauthorize(IAuthToken token) authorize a user based on its authentication credentials.protected AuthzTokenauthorize(javax.servlet.http.HttpServletRequest req) Authorize must occur after Authenticateprotected voidcommit(boolean createBackup) FileConfigStore functionality The original config file is moved to. . protected NameValuePairsstatic AuthCredentialsgetAuthCreds(AuthManager authMgr, X509Certificate clientCert) protected static IExtendedPluginInfogetClassByNameAsExtendedPluginInfo(String className) protected voidgetConfig(IConfigStore config, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Generic configuration store get operation.protected LocalegetLocale(javax.servlet.http.HttpServletRequest req) Retrieves locale based on the request.protected StringgetParameter(javax.servlet.http.HttpServletRequest req, String name) protected voidlistConfig(IConfigStore config, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Lists configuration store.voidoutputHttpParameters(javax.servlet.http.HttpServletRequest httpReq) protected voidsendResponse(int returnCode, String errorMsg, NameValuePairs params, javax.servlet.http.HttpServletResponse resp) Sends response.protected voidsetConfig(IConfigStore config, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Generic configuration store set operation.protected StringURL decodes the given string.Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods 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
-
RegistryAdminServlet
public RegistryAdminServlet()Constructs administration servlet.
-
-
Method Details
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException Initializes this servlet.- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classAdminServlet- Throws:
javax.servlet.ServletException
-
getServletInfo
Returns serlvet information.- Specified by:
getServletInfoin interfacejavax.servlet.Servlet- Overrides:
getServletInfoin classjavax.servlet.GenericServlet
-
service
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException Serves HTTP admin request.- Overrides:
servicein classAdminServlet- Throws:
javax.servlet.ServletExceptionIOException
-
processImplMgmt
public void processImplMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException Process Policy Implementation Management.- Throws:
javax.servlet.ServletExceptionIOException
-
addImpl
public void addImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletExceptionIOException
-
deleteImpl
public void deleteImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletExceptionIOException
-
listImpls
public void listImpls(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException Lists all registered profile impementations- Throws:
javax.servlet.ServletExceptionIOException
-
getSupportedConstraintPolicies
public void getSupportedConstraintPolicies(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletExceptionIOException
-
getProfileImplConfig
public void getProfileImplConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletExceptionIOException
-
getNonNull
-