Class ProfileAdminServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class ProfileAdminServlet
    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 Detail

      • 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
      • POLICY_INST_ID_ALREADY_USED

        public static java.lang.String POLICY_INST_ID_ALREADY_USED
      • 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
      • BAD_CONFIGURATION_VAL

        public static java.lang.String BAD_CONFIGURATION_VAL
    • Constructor Detail

      • ProfileAdminServlet

        public ProfileAdminServlet()
        Constructs administration servlet.
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
                  throws javax.servlet.ServletException
        Initializes this servlet.
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class AdminServlet
        Throws:
        javax.servlet.ServletException
      • getServletInfo

        public java.lang.String getServletInfo()
        Returns serlvet information.
        Specified by:
        getServletInfo in interface javax.servlet.Servlet
        Overrides:
        getServletInfo in class javax.servlet.GenericServlet
      • service

        public void service​(javax.servlet.http.HttpServletRequest req,
                            javax.servlet.http.HttpServletResponse resp)
                     throws javax.servlet.ServletException,
                            java.io.IOException
        Serves HTTP admin request.
        Overrides:
        service in class AdminServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • processProfilePolicy

        public void processProfilePolicy​(javax.servlet.http.HttpServletRequest req,
                                         javax.servlet.http.HttpServletResponse resp)
                                  throws javax.servlet.ServletException,
                                         java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • processProfileInput

        public void processProfileInput​(javax.servlet.http.HttpServletRequest req,
                                        javax.servlet.http.HttpServletResponse resp)
                                 throws javax.servlet.ServletException,
                                        java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • processProfileOutput

        public void processProfileOutput​(javax.servlet.http.HttpServletRequest req,
                                         javax.servlet.http.HttpServletResponse resp)
                                  throws javax.servlet.ServletException,
                                         java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • processProfileInputConfig

        public void processProfileInputConfig​(javax.servlet.http.HttpServletRequest req,
                                              javax.servlet.http.HttpServletResponse resp)
                                       throws javax.servlet.ServletException,
                                              java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • processProfileOutputConfig

        public void processProfileOutputConfig​(javax.servlet.http.HttpServletRequest req,
                                               javax.servlet.http.HttpServletResponse resp)
                                        throws javax.servlet.ServletException,
                                               java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • processPolicyDefaultConfig

        public void processPolicyDefaultConfig​(javax.servlet.http.HttpServletRequest req,
                                               javax.servlet.http.HttpServletResponse resp)
                                        throws javax.servlet.ServletException,
                                               java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • processPolicyConstraintConfig

        public void processPolicyConstraintConfig​(javax.servlet.http.HttpServletRequest req,
                                                  javax.servlet.http.HttpServletResponse resp)
                                           throws javax.servlet.ServletException,
                                                  java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • processPolicyImplMgmt

        public void processPolicyImplMgmt​(javax.servlet.http.HttpServletRequest req,
                                          javax.servlet.http.HttpServletResponse resp)
                                   throws javax.servlet.ServletException,
                                          java.io.IOException
        Process Policy Implementation Management.
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • processProfileRuleMgmt

        public void processProfileRuleMgmt​(javax.servlet.http.HttpServletRequest req,
                                           javax.servlet.http.HttpServletResponse resp)
                                    throws javax.servlet.ServletException,
                                           java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • listProfileImpls

        public void listProfileImpls​(javax.servlet.http.HttpServletRequest req,
                                     javax.servlet.http.HttpServletResponse resp)
                              throws javax.servlet.ServletException,
                                     java.io.IOException
        Lists all registered profile impementations
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • addProfilePolicy

        public void addProfilePolicy​(javax.servlet.http.HttpServletRequest req,
                                     javax.servlet.http.HttpServletResponse resp)
                              throws javax.servlet.ServletException,
                                     java.io.IOException
        Add policy profile

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • addProfileInput

        public void addProfileInput​(javax.servlet.http.HttpServletRequest req,
                                    javax.servlet.http.HttpServletResponse resp)
                             throws javax.servlet.ServletException,
                                    java.io.IOException
        Add profile input

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • addProfileOutput

        public void addProfileOutput​(javax.servlet.http.HttpServletRequest req,
                                     javax.servlet.http.HttpServletResponse resp)
                              throws javax.servlet.ServletException,
                                     java.io.IOException
        Add profile output

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • deleteProfilePolicy

        public void deleteProfilePolicy​(javax.servlet.http.HttpServletRequest req,
                                        javax.servlet.http.HttpServletResponse resp)
                                 throws javax.servlet.ServletException,
                                        java.io.IOException
        Delete policy profile

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • deleteProfileInput

        public void deleteProfileInput​(javax.servlet.http.HttpServletRequest req,
                                       javax.servlet.http.HttpServletResponse resp)
                                throws javax.servlet.ServletException,
                                       java.io.IOException
        Delete profile input

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • deleteProfileOutput

        public void deleteProfileOutput​(javax.servlet.http.HttpServletRequest req,
                                        javax.servlet.http.HttpServletResponse resp)
                                 throws javax.servlet.ServletException,
                                        java.io.IOException
        Delete profile output

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • addPolicyDefaultConfig

        public void addPolicyDefaultConfig​(javax.servlet.http.HttpServletRequest req,
                                           javax.servlet.http.HttpServletResponse resp)
                                    throws javax.servlet.ServletException,
                                           java.io.IOException
        Add default policy profile configuration

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • addPolicyConstraintConfig

        public void addPolicyConstraintConfig​(javax.servlet.http.HttpServletRequest req,
                                              javax.servlet.http.HttpServletResponse resp)
                                       throws javax.servlet.ServletException,
                                              java.io.IOException
        Add policy constraints profile configuration

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • modifyPolicyDefaultConfig

        public void modifyPolicyDefaultConfig​(javax.servlet.http.HttpServletRequest req,
                                              javax.servlet.http.HttpServletResponse resp)
                                       throws javax.servlet.ServletException,
                                              java.io.IOException
        Modify default policy profile configuration

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • modifyInputConfig

        public void modifyInputConfig​(javax.servlet.http.HttpServletRequest req,
                                      javax.servlet.http.HttpServletResponse resp)
                               throws javax.servlet.ServletException,
                                      java.io.IOException
        Modify profile input configuration

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • modifyOutputConfig

        public void modifyOutputConfig​(javax.servlet.http.HttpServletRequest req,
                                       javax.servlet.http.HttpServletResponse resp)
                                throws javax.servlet.ServletException,
                                       java.io.IOException
        Modify profile output configuration

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • modifyPolicyConstraintConfig

        public void modifyPolicyConstraintConfig​(javax.servlet.http.HttpServletRequest req,
                                                 javax.servlet.http.HttpServletResponse resp)
                                          throws javax.servlet.ServletException,
                                                 java.io.IOException
        Modify policy constraints profile configuration

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • getPolicyDefaultConfig

        public void getPolicyDefaultConfig​(javax.servlet.http.HttpServletRequest req,
                                           javax.servlet.http.HttpServletResponse resp)
                                    throws javax.servlet.ServletException,
                                           java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • getPolicyConstraintConfig

        public void getPolicyConstraintConfig​(javax.servlet.http.HttpServletRequest req,
                                              javax.servlet.http.HttpServletResponse resp)
                                       throws javax.servlet.ServletException,
                                              java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • getProfilePolicy

        public void getProfilePolicy​(javax.servlet.http.HttpServletRequest req,
                                     javax.servlet.http.HttpServletResponse resp)
                              throws javax.servlet.ServletException,
                                     java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • getProfileOutput

        public void getProfileOutput​(javax.servlet.http.HttpServletRequest req,
                                     javax.servlet.http.HttpServletResponse resp)
                              throws javax.servlet.ServletException,
                                     java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • getProfileInput

        public void getProfileInput​(javax.servlet.http.HttpServletRequest req,
                                    javax.servlet.http.HttpServletResponse resp)
                             throws javax.servlet.ServletException,
                                    java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • getInputConfig

        public void getInputConfig​(javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.http.HttpServletResponse resp)
                            throws javax.servlet.ServletException,
                                   java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • getOutputConfig

        public void getOutputConfig​(javax.servlet.http.HttpServletRequest req,
                                    javax.servlet.http.HttpServletResponse resp)
                             throws javax.servlet.ServletException,
                                    java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • listProfileInstances

        public void listProfileInstances​(javax.servlet.http.HttpServletRequest req,
                                         javax.servlet.http.HttpServletResponse resp)
                                  throws javax.servlet.ServletException,
                                         java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • getProfileInstanceConfig

        public void getProfileInstanceConfig​(javax.servlet.http.HttpServletRequest req,
                                             javax.servlet.http.HttpServletResponse resp)
                                      throws javax.servlet.ServletException,
                                             java.io.IOException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • deleteProfileInstance

        public void deleteProfileInstance​(javax.servlet.http.HttpServletRequest req,
                                          javax.servlet.http.HttpServletResponse resp)
                                   throws javax.servlet.ServletException,
                                          java.io.IOException
        Delete profile instance

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • putUserPWPair

        public void putUserPWPair​(java.lang.String combo)
      • isValidId

        public boolean isValidId​(java.lang.String id)
      • addProfileInstance

        public void addProfileInstance​(javax.servlet.http.HttpServletRequest req,
                                       javax.servlet.http.HttpServletResponse resp)
                                throws javax.servlet.ServletException,
                                       java.io.IOException
        Add profile instance

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • modifyProfileInstance

        public void modifyProfileInstance​(javax.servlet.http.HttpServletRequest req,
                                          javax.servlet.http.HttpServletResponse resp)
                                   throws javax.servlet.ServletException,
                                          java.io.IOException
        Modify profile instance

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_PROFILE used when configuring cert profile (general settings and cert profile; obsoletes extensions and constraints policies)
        Parameters:
        req - HTTP servlet request
        resp - HTTP servlet response
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
      • getNonNull

        protected java.lang.String getNonNull​(java.lang.String s)