Package org.mitre.openid.connect.model

Examples of org.mitre.openid.connect.model.DefaultUserInfo


  }

  @Override
  @Transactional
  public UserInfo save(UserInfo userInfo) {
    DefaultUserInfo dui = (DefaultUserInfo)userInfo;
    return saveOrUpdate(dui.getId(), manager, dui);
  }
View Full Code Here


  }

  @Override
  @Transactional
  public void remove(UserInfo userInfo) {
    DefaultUserInfo dui = (DefaultUserInfo)userInfo;
    UserInfo found = manager.find(DefaultUserInfo.class, dui.getId());

    if (found != null) {
      manager.remove(userInfo);
    } else {
      throw new IllegalArgumentException();
View Full Code Here

   */
  @Before
  public void prepare() {


    userInfoAdmin = new DefaultUserInfo();
    userInfoAdmin.setPreferredUsername(adminUsername);
    userInfoAdmin.setSub(adminSub);

    userInfoRegular = new DefaultUserInfo();
    userInfoRegular.setPreferredUsername(regularUsername);
    userInfoRegular.setSub(regularSub);

    publicClient1 = new ClientDetailsEntity();
    publicClient1.setClientId(publicClientId1);
View Full Code Here

    Mockito.when(clientDetailsEntityService.loadClientByClientId(pairwiseClientId4)).thenReturn(pairwiseClient4);

    Mockito.when(userInfoRepository.getByUsername(regularUsername)).thenAnswer(new Answer<UserInfo>() {
      @Override
      public UserInfo answer(InvocationOnMock invocation) throws Throwable {
        UserInfo userInfo = new DefaultUserInfo();
        userInfo.setPreferredUsername(regularUsername);
        userInfo.setSub(regularSub);

        return userInfo;
      }
    });
View Full Code Here

  public void prepare() {


    service.setAdmins(Lists.newArrayList(adminUsername));

    userInfoAdmin = new DefaultUserInfo();
    userInfoAdmin.setPreferredUsername(adminUsername);
    userInfoAdmin.setSub(adminSub);

    userInfoRegular = new DefaultUserInfo();
    userInfoRegular.setPreferredUsername(regularUsername);
    userInfoRegular.setSub(regularSub);

  }
View Full Code Here

  private PairwiseIdentifier savedPairwiseIdentifier;

  @Before
  public void prepare() {
    userInfoRegular = new DefaultUserInfo();
    userInfoRegular.setPreferredUsername(regularUsername);
    userInfoRegular.setSub(regularSub);

    // pairwise set 1
    pairwiseClient1 = new ClientDetailsEntity();
View Full Code Here

TOP

Related Classes of org.mitre.openid.connect.model.DefaultUserInfo

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.