Package org.openengsb.domain.userprojects.model

Examples of org.openengsb.domain.userprojects.model.Credential


    }

    private List<Credential> createCredentials(List<Entry> credentialEntries, String owner) {
        List<Credential> credentials = Lists.newArrayList();
        for (Entry credentialEntry : credentialEntries) {
            Credential credential = new Credential();
            credential.setType(credentialEntry.getDn().getRdn().getValue().getString());
            credential.setValue(getLdapAttributeValue(credentialEntry));
            credential.generateUuid(owner);
            credentials.add(credential);
        }
        return credentials;
    }
View Full Code Here


    public void testUpdateUsers_shouldUpdateUser() throws NoSuchNodeException, MissingParentException,
        LdapInvalidAttributeValueException {
        User user = createTestUser();
        ldapService.updateUsers(Lists.newArrayList(user));

        Credential credential = user.getCredentials().iterator().next();
        credential.setValue(credential.getValue() + "new");

        Attribute attribute1 = user.getAttributes().iterator().next();
        attribute1.getValues().add("new");

        Attribute attribute2 = createTestAttribute("attribute2", "value");
View Full Code Here

    protected User createTestUser() {
        String username = "testUser";
        User user = new User(username);

        Credential password = new Credential();
        password.setType("password");
        password.setValue("password");
        user.getCredentials().addAll(Lists.newArrayList(password));

        user.getAttributes().addAll(Lists.newArrayList(createTestAttribute("attribute", "value")));

        return user;
View Full Code Here

TOP

Related Classes of org.openengsb.domain.userprojects.model.Credential

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.