Commit Graph

126 Commits

Author SHA1 Message Date
Robert von Burg 58b742d5d9 [Minor] using Deque instead of Stack 2014-02-01 13:47:04 +01:00
Robert von Burg 5e6423c443 [Bugfix] fixed NPE when Certificate is created with null properties 2014-01-28 22:19:15 +01:00
Robert von Burg 4627f59a80 [Minor] properties are read-only on Certificate 2014-01-28 22:07:04 +01:00
Robert von Burg 1f28237091 [Project] added Jenkins build badge to README.md 2014-01-23 22:59:42 +01:00
Robert von Burg 11f53cb272 [Minor] removed the use of the authPass in the certificate 2013-12-29 23:12:37 +01:00
Robert von Burg bab1e4b119 [Bugfix] fixed a bug where the role were not properly read from XML
Added tests for reading the model from XML
2013-12-28 12:16:48 +01:00
Robert von Burg 5d59a52eeb [Minor] Throwing explicit exception system user tries to login
Further enforcing that a system user may not have a password
2013-12-28 10:55:58 +01:00
Robert von Burg 3727d3545f [Minor] cleaned up all compiler warnings 2013-12-25 14:37:22 +01:00
Robert von Burg 15a245d94e [Minor] added new initialization to PrivilegeInitializationHelper
Configuration can now be parsed and then passed to an initialization
method
2013-12-25 13:10:58 +01:00
Robert von Burg 85db07a002 [Minor] fixed issue where eclipse couldn't validate log4j.xml 2013-12-25 11:55:55 +01:00
Robert von Burg 744920a62b [Minor] removed use of deprecated JUnit classes 2013-12-24 02:42:29 +01:00
Robert von Burg 036c725a52 [Project] Changed all licence references to Apache License 2.0 2013-12-15 13:38:29 +01:00
Robert von Burg a8b0f37834 [Minor] Changed exceptions to contain cause and code clean up 2013-11-16 01:08:27 +01:00
Robert von Burg 01884029b8 [Minor] removed unused file config/Model.xml 2013-11-15 18:44:55 +01:00
Robert von Burg f2fd1233d9 [Minor] renamed validateIsPrivilegeAdmin to assertIsPrivilegeAdmin 2013-10-28 22:00:33 +01:00
Robert von Burg 33d7fb2e33 [Minor] cleaned up .gitignore 2013-10-28 18:56:38 +01:00
Robert von Burg bac94f6075 [Minor] set parent to 0.1.0-SNAPSHOT 2013-10-27 23:06:19 +01:00
Robert von Burg 6f0c623d20 [Project] added dependency of ch.eitchnet.utils:0.2.0-SNAPSHOT 2013-09-21 10:07:31 +02:00
Robert von Burg a68c44c9fd [Project] moved some project details to parent ch.eitchnet.parent
This simplifies project setup and maintenance
2013-09-21 09:11:34 +02:00
Robert von Burg 3d8fa992d4 [Project] moved some project details to parent ch.eitchnet.parent
This simplifies project setup and maintenance
2013-09-21 09:03:05 +02:00
Robert von Burg 31c6acec6c [Minor] fixed failing test due to different formatting of xml writing 2013-09-15 21:57:42 +02:00
Robert von Burg 874acc5828 fixed wrong namespace in PrivilegeModel.xsd 2013-08-12 17:00:05 +02:00
Robert von Burg c4e6c5e65d Refactored InitializationHelper so it can take an InputStream
Also renamed it to PrivilegeInitializationHelper
2013-08-12 11:04:42 +02:00
Robert von Burg d7f10a731f [Minor] fixed compiler warnings
fixed multiple compiler warnings about broken JavaDocs and pom which was
still set to Java 1.6, now changed to 1.7
2013-08-08 00:32:39 +02:00
Robert von Burg 6eb34ff532 [Minor] fixed problem with build on mvn cli
The problem was due to a naming problem with the PrivilegeMessages class
and property bundle having the same name and being in the same package.
Moved the properties file now to the resources directory
2013-04-19 21:33:18 +02:00
Robert von Burg 93022ba559 [Major] major rewrite of the privilege validation.
Now the PrivilegeContext object is central and once the user logged in,
this object is bound to a ThreadLocal. From then there is no further
need to interact with the PrivilegeHandler - this allows for
authenticated users to get a remote copy of the PrivilegeContext so that
on a remote client, the user can check for permissions, without having
to do the round trip to the server.

A code review of this change would be good, but preliminary tests show
that it works. A test should now be implemented to check if getting a
remote copy also allows for authorization.
2013-04-09 07:33:32 +02:00
Robert von Burg 9261494667 [Minor] cleaned up doc and implemented missing toString() and equals()
A number classes had JavaDocs with @see parameters on overriding
methods. This was changed so that they were removed, as they are not
needed.

In some classes the toString() methods were missing, as well as equals()
and hashcode() they were now added
2013-03-26 19:42:17 +01:00
Robert von Burg 44cb148036 [Minor] code cleanup
- cleaned up JavaDoc for some classes
- changed equals() to not use instanceOf but class==class
- set some fields private which were package scope
2013-03-24 12:23:29 +01:00
Robert von Burg 17525a41d5 [Bugfix] fixed failing test due to uppercase/lowercase change of BASE16 2013-03-17 12:08:12 +01:00
Robert von Burg bf250de0f9 Merge branch 'master' of ssh://github.com/eitch/ch.eitchnet.privilege 2013-02-24 11:27:34 +01:00
Robert von Burg acef67a99f [Minor] code cleanup
commented out unneeded code
2013-01-31 19:07:37 +01:00
Robert von Burg 08c70f5ec0 Update pom.xml
Added distribution management to deploy to nexus.eitchnet.ch
2013-01-30 15:02:17 +01:00
Robert von Burg f92afab671 Removed local XmlHelper and moved it to ch.eitchnet.utils 2013-01-20 23:21:56 +01:00
Robert von Burg dfbae9b6cb moved XML schemas to src/main/resoures/ 2013-01-20 22:53:58 +01:00
Robert von Burg e2ebcd1fc6 Fixed some unnecessary TODOs 2013-01-20 22:50:03 +01:00
Robert von Burg f67fbe4edb fixed XXX in copyright headers 2013-01-20 22:44:25 +01:00
Robert von Burg b5b9465dbe fixed compilation warning 2013-01-20 22:35:59 +01:00
Robert von Burg 7814b844a1 fixed an NPE when a user has no parameters during SAX parsing 2013-01-20 22:34:46 +01:00
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