summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/certsrv
Commit message (Collapse)AuthorAgeFilesLines
* Fixed IAttrSet.getElements() implementations.Endi Sukma Dewata2012-03-133-11/+11
| | | | | | | | This patch fixes incorrect implementation of getElement() in some subclasses of IAttrSet. The method is supposed return the attribute names as an enumeration of strings. Ticket #42
* Refactored NameValuePairs.Endi Sukma Dewata2012-03-122-181/+8
| | | | | | | | | The NameValuePairs class has been modified to extend the Linked- HashMap which preserves the order of elements as in the original code. Some methods are renamed to match Java Map interface. The NameValuePair class is no longer needed and has been removed. Ticket #78
* Replaced daemon threads with executor service.Endi Sukma Dewata2012-03-122-0/+14
| | | | | | | | | | | | The certificate status update and retrieving modifications tasks have been modified to use the executor service. Unlike daemon threads, the service will allow existing task to exit gracefully before shutting down. An abandon operation is used terminate the persistent search used for retrieving modifications. Some methods have been moved to CertificateRepository class to simplify synchronizations. Ticket #73
* Refactored JobsScheduler.Endi Sukma Dewata2012-03-121-0/+12
| | | | | | | | | | | | | | The JobsScheduler has been modified to stop all jobs on shutdown. This is done by setting a flag in each job instead of stopping the job thread abruptly. Long running jobs should check this flag periodically and then exit gracefully. None of the existing jobs need to do this since they do not run very long. Other threads that run background services have been converted into daemons such that they will terminate automatically when the JVM exits. Ticket #73
* Fixed DRM REST interface to use BigInteger.Endi Sukma Dewata2012-03-054-22/+263
| | | | | | | | The DRM REST interface previously uses strings for key ID and request ID. It has been modified to use KeyId and RequestId classes which can accept decimal or hex numbers and internally store it as BigInteger. Ticket #94
* Removed OS subsystem.Endi Sukma Dewata2012-02-282-3/+3
| | | | | | | | | | The OS subsystem was previously used to get the PID and to handle shutdown signals using the OSUtil. It has been removed because the functionalities can be obtained without using native code. The PID will now be read from an external PID file created by the wrapper script. The shutdown signals will now be handled by shutdown hook. Ticket #90
* Consolidated BtoA/AtoB invocations.Endi Sukma Dewata2012-02-231-1/+3
| | | | | | | | The OSUtil's BtoA() and AtoB() have been replaced with wrapper methods in com.netscape.cmsutil.util.Utils to simplify transition into Base64 codec from Apache Commons library. Ticket #90
* Add client auth user to default installAde Lee2012-02-232-0/+11
| | | | | | | | | | | | | | | | | | When a subsystem is configured, a user is created to facilitate communication between subsystems. This user is created on the security domain ca, and is has the subsystem certificate in its user record. This user will be reused as a user that can talk to the database using the subsystem certificate for client auth. To do this, this patch does the following: 1. If not the security domain master CA, adds this user to the subsystem, and adds the subsystem cert. 2. Adds the subsystem cert subject dn to the user's record in the seeAlso attribute 3. Adds acis for this user for the $basedn and for cn=config (for VLV searches) By default, this user and acls will be added when the system is configured. To actually use the user and client auth, more config steps are required. They will be doc'ed in https://fedorahosted.org/pki/ticket/5
* Removed unused variables (part 1).Endi Sukma Dewata2012-02-202-13/+8
| | | | | | This patch brings down the warnings from 2917 to 2406. Ticket #103
* ECC encryption and signing profilesAndrew Wnuk2012-02-151-0/+4
| | | | | | This patch provides an option for certificate profiles to allow them to automatically create enrollment pages which are used to generate new signing and encryption certificate requests. Bug: 703608.
* Added generics (part 4).Endi Sukma Dewata2012-02-149-24/+29
| | | | | | This patch brings down the warnings from 3427 to 2917. Ticket #2
* KRA symmetric key cmake support.Jack Magne2012-02-131-0/+2
| | | | | | Changes to make the cmake build of this feature work. Change to the .classpath to allow the DRMTest.java test client to run under Eclipse, by adding additional jar paths to allow the client to run.
* KRA changes for archiving and recovering symmetric keys and passphrases.Jack Magne2012-02-134-2/+147
| | | | | | | | | | | | Ticket #66 and #68. Add ability to archive and recover symmetric keys and passphrases using rest interface. Enhanced test client to test out new functionality. Provided support to return recovered data either wrapped by symmetric key or wrapped in PBE password based encryption blob. DRM symmetric key support cleanup changes. Consists of suggested cleanup measures based on review comments.
* Added generics (part 3).Endi Sukma Dewata2012-02-062-2/+2
| | | | | | This patch brings down the warnings from 3992 to 3500. Ticket #2
* Added generics (part 2).Endi Sukma Dewata2012-01-184-22/+22
| | | | | | This patch brings down the warnings from 4648 to 3992. Ticket #2
* Added generics (part 1).Endi Sukma Dewata2012-01-186-15/+17
| | | | | | | This patch is based on Adam's patch. It brings down the warnings from 6139 to 4648. Ticket #2
* Initial skeleton code for drm resteasy interfaceAde Lee2012-01-131-0/+2
| | | | | | | Integrated files into current servlet structure. Allowed exceptions to bubble up to top level. Move bean initialization logic into DAO objects. Fixed "keyRequest" path to "keyrequest" in KeyRequestDAO
* Formatting - fix bad wrapsAde Lee2012-01-112-5/+4
|
* Formatting (line wrap > 120 in commentsAde Lee2012-01-1112-29/+64
|
* Formatting - line wrap > 120 in codeAde Lee2012-01-115-24/+52
|
* Formatting (no line wrap in comments or code)Ade Lee2012-01-11323-5189/+5063
|
* typesafety ACL Impls Random type safety cleanups.Adam Young2012-01-041-2/+2
|
* typesafe returns on IDBSession for VirtualListAdam Young2012-01-041-3/+3
|
* type safety certserv cms and cmscoreAdam Young2012-01-0421-39/+40
| | | | Re-added files IPublshRuleSet and ILdapCertMapper
* Typesafety for certsrv.kraAdam Young2012-01-043-9/+9
|
* typesafety db and loggingAdam Young2012-01-045-18/+18
|
* typesafety cron and jobschedulerAdam Young2012-01-041-2/+2
|
* typesafety certserv and cmscoreAdam Young2012-01-049-20/+22
| | | | Using interface instead of implementing class
* type safety for certserv.baseAdam Young2011-12-2210-34/+30
| | | | more type safety
* type safety for certserv.authorizationAdam Young2011-12-224-16/+12
|
* type safety for certserv.authenticatorAdam Young2011-12-225-16/+13
|
* Type safety for CMS and by extension, much of commonAdam Young2011-12-228-27/+31
|
* Type safety for ACLsAdam Young2011-12-223-17/+18
|
* Revert "Formatting"Ade Lee2011-12-08323-6983/+7371
| | | | This reverts commit 32150d3ee32f8ac27118af7c792794b538c78a2f.
* Revert "Indent in conditionals"Ade Lee2011-12-081-1/+1
| | | | This reverts commit 0b5c0e0542354edc8cab4da6a1afa1ff00800c0c.
* Indent in conditionalsAdam Young2011-12-081-1/+1
| | | | | Additional Formatting generated by Eclipse 3.7.1 It provides more detailed control of the indentation which is not provided in the earlier version
* FormattingAde Lee2011-12-07323-7371/+6983
| | | | Formatted project according to eclipse project settings
* TreeSetAdam Young2011-12-076-27/+29
| | | | | | | | | | | | | | | | | | | ArraySet and AttributeNameEnumeration both were not updated to handfle Generics. Neither are really needed, and are likely to introduce errors. ArraySet can be safely replaced by TreeSet. TreeSet provides a stricter ordering constraint than ArraySet did. This will not hurt anything, and may actually be closer to the desired behavior AttributeNameEnumeration was a thin wrapper around Vector. It has been replaced with Vector<String> In addition, this patch cleans up the Type safety in of the collections used in the related files. removed files from cmake Removed custom collection files Supressed watnings generated by the clone method.
* call statics staticallyAdam Young2011-12-061-2/+2
| | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=728303 Updated with changes from code review Leaving in the warning in GenericASN1Extension, ans that is an indication of a real problem, which will get addressed in a separate patch.
* SerialVersionIDAdam Young2011-12-0271-0/+329
| | | | Autogenerated SerialVersionID for all serializable classes
* Cleanup importsadmiyo2011-11-04254-1060/+890
| | | | | | | | | | Automated changes done by Eclipse Minor tweak to one file where Eclipse was tring to find an import for Any Due to finding it in an annotated comment. https://bugzilla.redhat.com/show_bug.cgi?id=728303 git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@2292 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
* Revert "sync config"admiyo2011-09-061-2/+0
| | | | | | | This reverts Revision 2192 It introduced a build error. git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@2193 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
* sync configadmiyo2011-09-061-0/+2
| | | | | | | | | | removing duplicated configuration the config file tree was duplicated, but the got out of sync. This patch synchronizes the key, prior to removing the duplicated code the java package: com.netscape.certsrv.common contains configuration information used by both the console and the server. It was copied in the source tree, and was getting duplicated. This removes the console version of the source, and instead copies the Java files prior to compilation git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@2192 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
* Bugzilla BZ 707416 - additional audit messages for GetCookievakwetu2011-06-091-2/+4
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@2019 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
* Fixed bugzilla bug #491183.awnuk2010-12-241-1/+1
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1677 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
* Fix update for bugzilla bub #649343.awnuk2010-12-233-3/+8
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1665 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
* Fixed bugzilla bug #649343.awnuk2010-12-214-6/+95
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1659 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
* Bugzilla Bug 451874 - RFE - Java console - Certificate Wizard missing e.c. ↵vakwetu2010-11-045-0/+64
| | | | | | support git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1473 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
* Bug 648757 - expose and use updated cert verification function in JSScfu2010-11-042-8/+21
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1470 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
* Fixed bugzilla bug #516632.awnuk2010-11-014-15/+64
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1451 c9f7a03b-bd48-0410-a16d-cbbf54688b0b