Use custom filter chain to filter web services invocations.

A custom securityFilterChain is declared with all desired spring security filters.

This chain is published as an OSGi service with javax.servlet.Filter interface and with a special property (org.apache.cxf.httpservice.filter=true).
This property tells DOSGi to register the chain as a filter for instantiated web services.

To test the application, following commands may be usefull:
CREDENTIALS	COMMAND														EXPECTED RESULT
user:user	curl -i -H "Authorization: Basic dXNlcjp1c2Vy" -X GET http://localhost:8181/sample/sayHello?name=user 		(403 Forbidden)
admin:admin 	curl -i -H "Authorization: Basic YWRtaW46YWRtaW4=" -X GET http://localhost:8181/sample/sayHello?name=user 	(200 OK)
abc:abc		curl -i -H "Authorization: Basic YWJjOmFiYw==" -X GET http://localhost:8181/sample/sayHello?name=user 		(401 Unauthorized)
<empty> 	curl -i -X GET http://localhost:8181/sample/sayHello?name=user 							(401 Unauthorized)
Create a second service with ROLE_USER access.

COMMAND														EXPECTED RESULT
curl -i -H "Authorization: Basic dXNlcjp1c2Vy" -X GET http://localhost:8181/sample/sayHello?name=user		(403 Access is denied)
curl -i -H "Authorization: Basic dXNlcjp1c2Vy" -X GET http://localhost:8181/sample/sayBye?name=user		(200 OK)

curl -i -H "Authorization: Basic YWRtaW46YWRtaW4=" -X GET http://localhost:8181/sample/sayHello?name=user 	(200 OK)
curl -i -H "Authorization: Basic YWRtaW46YWRtaW4=" -X GET http://localhost:8181/sample/sayBye?name=user		(200 OK)
Merge branch 'master' of git://github.com/logoff/HelloDOSGiSpringSecurity
Merge pull request #1 from isartcanyameres/master

Use custom filter chain to filter web services invocations.