Commit Graph

88 Commits

Author SHA1 Message Date
Robert von Burg 663a0b5995 Merge branch 'switchToJdkSax' 2013-01-20 22:28:57 +01:00
Robert von Burg 5a9104ebbb Fixed failing tests due to a problem in Java 7 changing the byte code
compilation sequence, thus the tests must have better sequencing
2013-01-20 22:21:14 +01:00
Robert von Burg e76d9f9121 Implemented XML parsing and writing by using basic Java implementation 2013-01-20 21:26:18 +01:00
Robert von Burg 9970055cf9 [New] added preliminary XML schemas for XML files 2012-12-04 20:30:04 +01:00
Robert von Burg 717e2de556 [Minor] cleaned up test
tests left some state files, which are now cleaned up as well
2012-12-01 00:12:00 +01:00
Robert von Burg e0f0b67f60 [Bugfix] fixed failing tests
The tests did not work because of some previous refactoring or some
other weirdness. Solved this issue now by initializing better the
persistence handler for testing
2012-12-01 00:08:09 +01:00
Robert von Burg 28a60b52f7 [New] implemented auto persist on password change
Through configuration option it is now possible to enable automatic
persisting after password change, no matter who the user is.
2012-12-01 00:06:54 +01:00
Robert von Burg f73d829822 [Minor] moved exceptions to base package
Exceptions were previously in package i18n, this didn't make sense, so
they were move to base
2012-12-01 00:04:45 +01:00
Robert von Burg eac0782810 [Minor] Removed dependency to ch.eitchnet.log4j and thus added log4j.xml
The log4j.xml configuration file is in the test resources and now the
project is completely free of a dependency to a concrete logging
implementation as all logging of the sources is done over slf4j
2012-11-25 00:44:56 +01:00
Robert von Burg 2b0e23eb28 [Major] refactored use of log4j to slf4j 2012-11-24 13:23:49 +01:00
Robert von Burg 59e25a8e75 [Minor] code cleanup 2012-11-19 22:50:32 +01:00
Robert von Burg 8b780368d7 [Devel] implementing PrivilegeHandler.runAsSystem()
Implementing the runAsSystem() so that special actions can be performed,
where no user is logged in

Refactored the test classes so that model specific classes are in the
model sub package.
2012-08-05 01:33:54 +02:00
Robert von Burg 3831d29a12 [Minor] updated dependency to ch.eitchnet.utils to 0.1.0 2012-08-04 21:36:49 +02:00
Robert von Burg 45e5eac46d [Minor] change modifier of DefaultPrivilegeHandler.nextSessionId()
set method DefaultPrivilegeHandler.nextSessionId() to protected from
private so it can be used in sub classes
2012-08-04 21:31:56 +02:00
Robert von Burg b78e9bb064 [New] added a new PrivilegeHandler.queryUser(UserRep) to query users
- The querying is done by passing a UserRep with all the fields set
which
need to be equal to select the user. Null fields are understood as not
required

- Performed further clean up in that all password variables have been
changed to type byte[].

- Cleaned up copyright notices in files

- fixed version of Privilege 0.1.0-SNAPSHOT in pom.xml
2012-07-29 18:23:31 +02:00
Robert von Burg f471be1ea7 [Minor] change mvn eclipse configuration to load sources as well 2012-07-28 23:17:45 +02:00
Robert von Burg 7e6987b358 [Minor] Added eclipse settings to .gitignore 2012-07-28 15:47:26 +02:00
Robert von Burg 0e026bf713 [Major] rebuilt project to use Maven.
- Now a "mvn compile" will build the project
- Note, that since ch.eitchnet.utils is a dependency, it must be installed first using "mvn install" to be able to compile Privilege
2012-07-28 15:40:01 +02:00
Robert von Burg c44b30a1e1 [Internal] bumped the MANIFEST.MF version to 0.0.3 2011-11-11 10:58:19 +01:00
Robert von Burg 81cb2aa8ae [Interface] added a property map to the Certificate which is a copy of
the users properties on login. This map can be used to configure the
user's session
2011-11-11 10:56:56 +01:00
Robert von Burg 3c322c5b88 [Internal] minor project building changes 2011-11-09 15:05:36 +01:00
Robert von Burg db3c086d39 [Minor] minor message change where if <AllAllowed> is false, the policy,
deny and allow must be defined. This is now better communicated in the
exception message
2011-11-09 15:05:05 +01:00
Robert von Burg cb6215b235 [Bugfix] fixed a bug where if the <AllAllowed> tag was not defined in
the PrivilegeModel.xml file then a NullPointer was thrown. It is now
possible to leave out this tag, in which case false is assumed
2011-11-09 15:03:50 +01:00
Robert von Burg 058e67f10e [New] it is now possible for a user to change their own password 2011-08-07 16:13:23 +02:00
Robert von Burg bb515756cb [New] Changed Privilege Users to have a map of properties with which
meta data of a user can be stored. This can be used for validationg
privileges on user specific data
2011-08-07 16:00:38 +02:00
Robert von Burg 8967f78113 [Minor] Added the build directory dist to the ignore list 2011-08-07 13:52:09 +02:00
Robert von Burg c594d373d4 [New] added the README file with a general overview, it is not finished, but has the basics 2011-08-07 13:48:56 +02:00
eitch bef87b1a18 [Minor] code comments cleanup, added LGPL reference and copyright notice 2011-08-07 10:14:40 +00:00
eitch 4c455c130a 2011-07-31 15:18:29 +00:00
eitch e8a7fb5cf9 [Interface] changed all methods which return boolean on action allowed to be void as they must throw exceptions if the privilege is not granted 2011-07-30 17:34:53 +00:00
eitch 6191949c3e [Minor] logging of authentication attempts 2011-07-30 14:10:47 +00:00
eitch 8b9c8ea1e5 [Major] refactored the use of the Privilege class, now Roles have Privileges in a composition relationship 2011-07-30 13:20:08 +00:00
eitch 65c17ab4a3 [New] added a PasswordCreaterUI with which hashes of passwords can be created 2011-07-29 19:52:44 +00:00
eitch 20a696918b 2011-07-29 19:51:00 +00:00
eitch 7e82285306 [Minor] logging of authentication attempts 2011-07-29 00:30:08 +00:00
eitch d2dff36b4b [Minor] exposed some fields of the DefaultPrivilegeHandler by setting them to protected 2011-07-28 22:31:18 +00:00
eitch f26013583d [Interface] modified privilege to have only two configuration files: Privilege.xml for the configuration for the handlers and Policies. and PrivilegeModel.xml for the configuration of the run time modifiable data (roles, users, privileges) 2011-07-28 20:50:35 +00:00
eitch e7b8de2765 2011-07-27 20:21:17 +00:00
eitch 2758aa61d1 2011-07-27 20:16:05 +00:00
eitch 42383f9400 [New] added a new PrivilegeHandler.invalidate(Certificate)-method with which users can log out of Privilege 2011-07-27 20:15:47 +00:00
eitch e5f80cc5c7 2011-07-25 22:42:49 +00:00
eitch bf3ff008b6 [New] added an ant build script 2011-07-25 22:42:09 +00:00
eitch a5d52733e9 2011-07-25 22:39:19 +00:00
eitch 4a66c0d2a4 [New] added an ant build script 2011-07-25 22:35:47 +00:00
eitch 47927ac99b [Major] updated a lot of JavaDoc and made sure that every class has at least a header JavaDoc with a description. Added a TODO under the doc folder with some TODOs =) 2011-07-25 22:00:41 +00:00
eitch d6ff3c86cc [Minor] added some java docs 2010-11-27 21:55:05 +00:00
eitch 66128804cd [Minor] added some java docs 2010-11-27 21:54:46 +00:00
eitch 7d231ebb3a [Minor] added some java docs 2010-11-27 21:00:34 +00:00
eitch 5d87120675 2010-11-11 21:30:23 +00:00
eitch 43f3bb3307 2010-11-06 22:26:43 +00:00