summaryrefslogtreecommitdiffstats
path: root/base/server
Commit message (Collapse)AuthorAgeFilesLines
...
* Added remove button handler for TPS UI.Endi S. Dewata2014-03-171-1/+34
| | | | | | | | | | | | | | | | The Table class has been modified to handle the remove button. When the button is clicked, it will get the list of items selected for deletion. If there is nothing selected it will not do anything. If there are some items selected, it will display the list in a dialog box and ask the user to confirm the deletion. If the operation is confirmed, the items will be deleted one by one. The table will be refreshed after the process is done. In some pages the buttons have been updated to reflect the availability of the add/remove operations for the corresponding REST resources. Ticket #654
* Removed config path from web.xml.Endi S. Dewata2014-03-171-0/+80
| | | | | | | | | | | | | | | | | | | | | Previously the CMSStartServlet always requires a cfgPath parameter pointing to the CS.cfg location. By default the parameter points to <instance>/conf/<subsystem>/CS.cfg unless it's manually changed by the admin after installation. Recently the servlet has been modified such that if the parameter is not specified it will generate the default path automatically. So it is no longer necessary to keep the cfgPath parameter in the web.xml templates because it will point to the same location. This patch removes the cfgPath parameters from all web.xml templates. This way newly created subsystems will not have this parameter, which will help direct deployment in the future. An upgrade script has been added to remove the parameter from existing instances if it points to the default location. If the parameter points to a different location that means the subsystem has been customized so it will not be changed. Ticket #748, #499
* Removed redundant GenericServlet.destroy() invocation.Endi S. Dewata2014-03-171-1/+0
| | | | | | | | The CMSStartServlet has been modified to remove the code that calls GenericServlet.destroy() because it is an empty default implementation which was intended to provide convenience for writing servlets. Ticket #896
* Added login page for TPS UI.Endi S. Dewata2014-03-131-2/+7
| | | | | | | | | | | | The TPS UI has been modified to provide an unprotected front page. The main TPS UI has been moved into a protected area. The front page provides a login button which when clicked will ask the user to authenticate with the client certificate. If the authentication is successful, the main page will appear. There is also a logout link on the upper right corner of the main page. When clicked it will destroy both the client and server sessions. Ticket #846
* Direct deployment for TPS.Endi S. Dewata2014-03-073-29/+71
| | | | | | | | | | | | | | | | | | | The deployment tool has been modified to deploy TPS directly from the share folder. This way the TPS UI can be upgraded automatically with RPM upgrade without having to write upgrade scripts. For this to work, the TPS web application files cannot contain any slot parameters. So, the cfgPath parameter has been removed from web.xml, and the CMSStartServlet has been modified such that if the parameter is missing it would generate a default path matching the original value in web.xml. Also, the velocity.properties has been modified to use a fixed value for the file.resource.loader.path parameter pointing to the share folder. In the future other subsystems may be modified to use the same deployment mechanism. Ticket #748, #752, #499
* trac ticket #862 - TPS rewrite: provide connector service for JAVA-based TPS ↵Christina Fu2014-03-068-57/+244
| | | | subsystem
* Added CLI parameter to select message format.Endi S. Dewata2014-03-042-0/+118
| | | | | | | | | | | A new CLI parameter has been added to allow the user select the REST message format. This is done by setting the default consumes and produces when creating the client proxy. For this to work the hard-coded @Consumes and @Produces annotations need to be removed from the interface definition. A new interceptor has been added to validate the message format before executing the operation. Ticket #554
* Reorganized REST service classes.Endi S. Dewata2014-02-2822-3747/+121
| | | | | | | | The REST service classes have been moved into org.dogtagpki.server namespace. A new upgrade script has been added to update existing instances. Ticket #114
* Upgraded RESTEasy client library.Endi S. Dewata2014-02-278-15/+139
| | | | | | | | | | The Dogtag client library has been modified to use RESTEasy 3.0 client library. A new upgrade script has been added to update existing servers. The JAXB annotation in ResourceMessage has been modified to require explicit property mapping. Ticket #554
* Add ability to archive without sending pkiArchiveOptions object.Ade Lee2014-02-262-4/+31
| | | | | | With this patch, you can now either send a pkiArchiveOptions object or the exploded parameters. This reduces the processing required on the client side.
* Added error checking in python client callsAde Lee2014-02-261-6/+23
| | | | | | | | | 1) Added error checking in python client calls. 2) Allow symmetric key generation with default params. Fix bug for when usages is not defined. 3) Fix bug when requesting key recovery - must check if key exists. 4) Extend key gen to allow for providing trans_wrapped_session_key 5) added constants to python client for key status
* reame client_id to client_key_idAde Lee2014-02-264-40/+40
|
* Add methods to getKeyInfo and change key statusAde Lee2014-02-193-1/+44
|
* Refactored GroupMemberProcessor.Endi S. Dewata2014-02-192-7/+5
| | | | | | | | The GroupMemberProcessor.addGroupMember() has been modified such that it returns the newly created group member data. This way the GroupService can use the common method to create the response object. Ticket #554
* Updated REST interface for key requests.Endi S. Dewata2014-02-191-7/+13
| | | | | | | The REST interface for key requests has been modified to return Response objects to allow better handling of server responses. Ticket #554
* Updated REST interface for keys.Endi S. Dewata2014-02-192-16/+45
| | | | | | | | | The REST interface for keys has been modified to return Response objects to allow better handling of server responses. Key-related methods in KRAClient have been moved into KeyClient. The DRMTest has been updated accordingly. Ticket #554
* Updated REST interface for CA profiles.Endi S. Dewata2014-02-191-14/+16
| | | | | | | The REST interface for CA profiles has been modified to return Response objects to allow better handling of server responses. Ticket #554
* Added decorator to handle exceptionsAde Lee2014-02-194-13/+13
| | | | | | Decorator catches HttpErrorExceptions from Requests and extracts the relevant PKIException object, and rethrows it.
* Fix eclipse warnings.Ade Lee2014-02-194-26/+19
|
* Updated REST interface for TPS connectors.Endi S. Dewata2014-02-181-31/+50
| | | | | | | The REST interface for TPS connectors has been modified to return Response objects to allow better handling of server responses. Ticket #554
* Updated REST interface for self tests.Endi S. Dewata2014-02-181-5/+8
| | | | | | | The REST interface for self tests has been modified to return Response objects to allow better handling of server responses. Ticket #554
* Updated REST interface for audit.Endi S. Dewata2014-02-181-5/+3
| | | | | | | The REST interface for audit has been modified to return Response objects to allow better handling of server responses. Ticket #554
* Updated REST interface for account.Endi S. Dewata2014-02-181-3/+8
| | | | | | | The REST interface for account has been modified to return Response objects to allow better handling of server responses. Ticket #554
* Updated REST interface for groups.Endi S. Dewata2014-02-181-19/+21
| | | | | | | The REST interface for groups has been modified to return Response objects to allow better handling of server responses. Ticket #554
* Updated REST interface for certificate requests.Endi S. Dewata2014-02-181-21/+29
| | | | | | | The REST interface for certificate requests has been modified to return Response objects to allow better handling of server responses. Ticket #554
* Updated REST interface for certificates.Endi S. Dewata2014-02-181-18/+22
| | | | | | | The REST interface for certificates has been modified to return Response objects to allow better handling of server responses. Ticket #554
* Updated REST interface for users.Endi S. Dewata2014-02-182-36/+59
| | | | | | | | | | The REST interface for users has been modified to return Response objects to allow better handling of server responses. Other REST interfaces will be modified in subsequent patches. Once all interfaces are updated, the client library can be updated to use RESTEasy 3.0 API. Clients using the client library or XML/JSON directly are not affected by these changes. Ticket #554
* Fixed problem refreshing table after add.Endi S. Dewata2014-02-131-31/+40
| | | | | | | | | | Previously the tables in TPS UI did not refresh properly after adding a new entry. The code has been fixed to reset the collection object to store the newly fetched entries and close the dialog after the add operation is done. The success and error handlers for add and save operations have been reorganized. Ticket #654
* Fixed pagination in TPS UI.Endi S. Dewata2014-02-121-2/+2
| | | | | | | | The pagination in TPS UI no longer worked due to Jackson change. The Collection class has been fixed to read the correct attribute names for pagination links. The table size has been changed to 5 rows. Ticket #654
* Improved TPS UI page loading.Endi S. Dewata2014-02-111-4/+29
| | | | | | | | | Previously the TPS UI would reload the JS libraries and CSS files every time a page is opened. The pages have been simplified such that it will only contain the necessary elements of the page. A new Page class has been added to the framework to define page initialization. Ticket #654
* Removed hard-coded response type.Endi S. Dewata2014-02-107-24/+1
| | | | | | | | Previously some methods were hard-coded to return XML responses. The code has been removed to allow clients to request a different format. Ticket #554
* Fix minor issues from review.Ade Lee2014-02-102-17/+21
| | | | | | 1. Use size/keySize consistently, instead of strength. 2. Change to using Integer instead of int in SymKeyGenerationRequest. 3. Fix error message.
* Change the return type for KeyRequest creation operationsAde Lee2014-02-102-25/+47
| | | | | | We will likely want to extend the REST API to allow the immediate return of a generated key, and perhaps of a recovered key in a single step. This change allows us to do that.
* Add strength and algorithm to KeyData and KeyInfo classesAde Lee2014-02-102-9/+29
| | | | | | Make sure these are updated so that clients can get this information when accessing a symmetric key. Also allow a default for generation requests (but not for archival requests).
* Added upgrade script to replace Jettison with Jackson.Endi S. Dewata2014-02-061-0/+136
| | | | | | | A new upgrade script has been added to replace Jettison links with Jackson links in Tomcat's common library. Ticket #817
* Replaced Jettison with Jackson.Endi S. Dewata2014-02-064-30/+164
| | | | | | | | | The Jettison library has been replaced with Jackson library as JSON provider for RESTEasy. All class paths and the deployment tools have been updated accordingly. The Python library and the TPS UI have been updated as well to use the new JSON format. Ticket #817
* Fixed template deployment.Endi S. Dewata2014-02-061-0/+16
| | | | | | The deployment scriptlet has been fixed to copy the templates to the subsystem web application. This functionality was incorrectly removed in a previous revision (5952a82975063c4ec27303091a44e586d1386933).
* Fix DRM archival, recovery and generation for non-DES3 keys.Ade Lee2014-02-042-6/+36
| | | | | | | | | | | In the archival, recovery and generation code for symmetric keys, we use functions that require knowledge of the symmetric keys algorithm and key size. These were hardcoded to DES3, and so only DES3 worked. We added those parameters to the archival request, save them in the KeyRecord and retrive them when recovering the key. Tests have been added to DRMTest for the relevant usages.
* Added TPS UI navigation.Endi S. Dewata2014-02-041-5/+29
| | | | | | | | A navigation bar has been added to the top of the UI. When a navigation link is clicked, the target page will be loaded into the content area in the same page. Ticket #654
* Added RCUE files.Endi S. Dewata2014-02-0415-14/+11128
| | | | | | | New CSS, JavaScript, and font files have been added from RCUE to provide standardized look and feel. Ticket #654
* Added checkboxes for selecting table rows.Endi S. Dewata2014-02-042-13/+48
| | | | | | | | The tables have been modified to provide a checkbox on each row to select the entry for subsequent operations. The checkbox in the column header can be used to select/deselect all rows at once. Ticket #654
* Address review commentsAde Lee2014-02-043-8/+25
| | | | | | | | | 1. Remove Link attribute from ResourceMessage, 2. Rename KeyDataInfo and KeyDataInfoCollection. 3. Move KEYGEN_ALGORITHMS 4. Fix missing space in PKIException 5. Move properties to attributes in ResourceMessage 6. Add missing code to update the request and set IRequest.RESULT
* Rename KeyRequest to ResourceMessageAde Lee2014-02-042-14/+36
| | | | | | Refactor ResourceMessage to include classname instead of Request Type. Also changed PKIException.Data to extend ResourceMessage. Modifications to the server code to get the tests working.
* Added more client code for DRM testsAde Lee2014-02-042-24/+18
|
* Rename KeyDataInfos and KeyrequestInfosAde Lee2014-02-043-9/+9
|
* Fix some errors flagged by eclipseAde Lee2014-02-041-2/+2
|
* Added SymKeyGen serviceAde Lee2014-02-042-2/+81
|
* Remove old recovery and archival methodsAde Lee2014-02-041-16/+0
|
* Add new POST endpoint for creating requestsAde Lee2014-02-041-0/+28
|
* Fixed edit dialog to enable/disable TPS resources.Endi S. Dewata2014-01-302-1/+8
| | | | | | | | The edit dialogs for authenticators, connections, and profiles, have been modified to show the available action (i.e. enable or disable) based on the resource status. Ticket #654