Class MockChallengeHttpSecuritySource

All Implemented Interfaces:
HttpSecurity<MockAuthentication,MockAccessControl,Void,None,None>, HttpSecuritySource<MockAuthentication,MockAccessControl,Void,None,None>

Mock HttpSecuritySource to use for testing with challenges.

It provides a MockAuthentication and MockAccessControl by the following Basic authentication scheme, except that:

  • authentication is obtained by user name and password being the same
  • the MockAccessControl is provided the user name as a role (allows logging in with various roles for testing). Multiple roles can be specified by the user name being a comma separate list.
Author:
Daniel Sagenschneider