Package org.multibit.mbm.client.domain.repositories

Examples of org.multibit.mbm.client.domain.repositories.UserReadService


  /**
   * @param user The User to act as the authenticator for HMAC communications (could be a Customer)
   */
  protected User setUpHmacAuthenticator(User user) {

    UserReadService userReadService = mock(UserReadService.class);
    when(userReadService.getByApiKey(user.getApiKey())).thenReturn(Optional.of(user));

    HmacServerAuthenticator authenticator = new HmacServerAuthenticator();
    authenticator.setUserReadService(userReadService);

    addSingleton(new HmacServerRestrictedToProvider<User>(authenticator, "REST"));
View Full Code Here

TOP

Related Classes of org.multibit.mbm.client.domain.repositories.UserReadService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.