Examples of createAccount()


Examples of com.adito.security.UserDatabase.createAccount()

        PolicyUtil.checkLogin(getAccount(USERNAME));
    }

    private static void createSuperUser() throws Exception {
        UserDatabase userDatabase = getUserService().createUserDatabase(DATABASE_TYPE, UserDatabaseManager.DEFAULT_REALM_NAME, UserDatabaseManager.DEFAULT_REALM_DESCRIPTION, true);
        User user = userDatabase.createAccount(USERNAME, "", "", "", new Role[] {});
        userDatabase.changePassword(user.getPrincipalName(), "", PASSWORD, false);

        Property.setProperty(new RealmKey("security.userDatabase", userDatabase.getRealm()), DATABASE_TYPE, getSessionInfo());
        Property.setProperty(new RealmKey("security.administrators", userDatabase.getRealm()), USERNAME, getSessionInfo());
    }
View Full Code Here

Examples of com.adito.security.UserDatabase.createAccount()

        }
    }

    private User createSuperUser() throws Exception {
        UserDatabase userDatabase = getUserService().createUserDatabase(DATABASE_TYPE, UserDatabaseManager.DEFAULT_REALM_NAME, UserDatabaseManager.DEFAULT_REALM_DESCRIPTION, true);
        User user = userDatabase.createAccount(USERNAME, "", "", "", new Role[] {});
        userDatabase.changePassword(user.getPrincipalName(), "", PASSWORD, false);
        Property.setProperty(new RealmKey("security.userDatabase", userDatabase.getRealm()), DATABASE_TYPE, getSessionInfo());
        Property.setProperty(new RealmKey("security.administrators", userDatabase.getRealm()), USERNAME, getSessionInfo());
        return user;
    }
View Full Code Here

Examples of com.example.customer.CustomerFactory.createAccount()

     
      HelperContext hc = HelperProvider.getDefaultContext();
      CustomerFactory factory = CustomerFactory.INSTANCE;
      factory.register(hc);
      Customer customer = factory.createCustomer();
      Account account = factory.createAccount();
      customer.setAccount(account);
      DataObject customerDO = (DataObject) customer;
      DataGraph dg = SDOUtil.createDataGraph();
      SDOUtil.setRootObject(dg, customerDO);
      dg.getChangeSummary().beginLogging();
View Full Code Here

Examples of com.googlecode.memwords.facade.account.AccountService.createAccount()

        cryptoEngine = new CryptoEngineImpl();
        mockUrlFetchService = createMock(URLFetchService.class);
        impl = new CardServiceImpl(em, cryptoEngine, mockUrlFetchService, mockFavIconFinder);

        AccountService accountService = new AccountServiceImpl(em, cryptoEngine);
        encryptionKey = accountService.createAccount(userId, "masterPassword").getEncryptionKey();
    }

    @Override
    @After
    public void tearDown() throws Exception {
View Full Code Here

Examples of com.googlecode.memwords.facade.account.AccountServiceImpl.createAccount()

        cryptoEngine = new CryptoEngineImpl();
        mockUrlFetchService = createMock(URLFetchService.class);
        impl = new CardServiceImpl(em, cryptoEngine, mockUrlFetchService, mockFavIconFinder);

        AccountService accountService = new AccountServiceImpl(em, cryptoEngine);
        encryptionKey = accountService.createAccount(userId, "masterPassword").getEncryptionKey();
    }

    @Override
    @After
    public void tearDown() throws Exception {
View Full Code Here

Examples of com.moneychanger.core.OpenTransactionAccount.createAccount()

        System.out.print("On click serverID:"+serverID);
        System.out.print("On click  nymiiidL:"+nymID);
        try {
            OpenTransactionAccount openTransaction = new OpenTransactionAccount(serverID, nymID, assetID ,label);
            this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            boolean result = openTransaction.createAccount();
            this.setCursor(Cursor.getDefaultCursor());
            if(result){
                JOptionPane.showMessageDialog(this, "Account created successfully", "Account Creation", JOptionPane.INFORMATION_MESSAGE);
                MainPage.loadAccount(assetIDMainPage, serverIDMainPage, nymIDMainPage,selectedID);
                MainPage.refreshMarketNym(serverIDMainPage);
View Full Code Here

Examples of com.springsource.greenhouse.account.AccountRepository.createAccount()

  }
 
  @Test
  public void signupFromApi_duplicateEmail() throws Exception {
    AccountRepository accountRepository = mock(AccountRepository.class);
    when(accountRepository.createAccount(any(Person.class))).thenThrow(new EmailAlreadyOnFileException("roy@clarkson.com"));
    SignedUpGateway gateway = mock(SignedUpGateway.class);   
    SignupController signupController = new SignupController(accountRepository, gateway);
   
    String signupJson = "{\"first-name\":\"Roy\",\"last-name\":\"Clarkson\",\"email\":\"roy@clarkson.com\",\"confirm-email\":\"roy@clarkson.com\",\"gender\":\"M\",\"birthdate\":{\"month\":7,\"day\":8,\"year\":1976},\"password\":\"letmein\"}";
    MockMvc mockMvc = standaloneSetup(signupController).build();
View Full Code Here

Examples of com.springsource.greenhouse.account.AccountRepository.createAccount()

  }
 
  @Test
  public void signupFromApi_validationErrors() throws Exception {
    AccountRepository accountRepository = mock(AccountRepository.class);
    when(accountRepository.createAccount(any(Person.class))).thenThrow(new EmailAlreadyOnFileException("roy@clarkson.com"));
    SignedUpGateway gateway = mock(SignedUpGateway.class);   
    SignupController signupController = new SignupController(accountRepository, gateway);
   
    String signupJson = "{\"first-name\":null,\"last-name\":\"Clarkson\",\"email\":\"roy@clarkson.com\",\"confirm-email\":\"roy@clarkson.com\",\"gender\":\"M\",\"birthdate\":{\"month\":7,\"day\":8,\"year\":1976},\"password\":\"letmein\"}";
    MockMvc mockMvc = standaloneSetup(signupController).build();
View Full Code Here

Examples of com.springsource.greenhouse.account.AccountRepository.createAccount()

  }
 
  @Test
  public void signupFromApi_mismatchedEmails() throws Exception {
    AccountRepository accountRepository = mock(AccountRepository.class);
    when(accountRepository.createAccount(any(Person.class))).thenThrow(new EmailAlreadyOnFileException("roy@clarkson.com"));
    SignedUpGateway gateway = mock(SignedUpGateway.class);   
    SignupController signupController = new SignupController(accountRepository, gateway);
   
    String signupJson = "{\"first-name\":\"Roy\",\"last-name\":\"Clarkson\",\"email\":\"roy@clarkson.com\",\"confirm-email\":\"rclarkson@vmware.com\",\"gender\":\"M\",\"birthdate\":{\"month\":7,\"day\":8,\"year\":1976},\"password\":\"letmein\"}";
    MockMvc mockMvc = standaloneSetup(signupController).build();
View Full Code Here

Examples of com.stormpath.sdk.directory.Directory.createAccount()

            account.setPassword(user.getPassword());
            account.setUsername(userName);

            // Saving the account to the Directory where the Tooter application belongs.
            Directory directory = stormpath.getDirectory();
            directory.createAccount(account);

            if (user.getGroupUrl() != null && !user.getGroupUrl().isEmpty()) {
                account.addGroup(stormpath.getDataStore().getResource(user.getGroupUrl(), Group.class));
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.