Class MockCredentialStoreManagedObjectSource

All Implemented Interfaces:
ManagedObject, ManagedObjectSource<None,None>, CredentialStore

public class MockCredentialStoreManagedObjectSource extends AbstractManagedObjectSource<None,None> implements ManagedObject, CredentialStore

Provides mocking of a CredentialStore in a similar way MockChallengeHttpSecuritySource works.

Using this store allows the application to be built with its appropriate HttpSecuritySource authentication scheme. This mocks the backing CredentialStore for development and tests environments to avoid user management. This therefore avoids the need to change the application behaviour between environments (same HttpSecuritySource but differing configured CredentialStore).

Author:
Daniel Sagenschneider