Package com.google.gdata.data.appsforyourdomain.provisioning

Examples of com.google.gdata.data.appsforyourdomain.provisioning.UserEntry


    public boolean setPassword(String username, String passwd) throws AppsForYourDomainException, ServiceException, IOException {
        ShaPasswordEncoder pwe = new ShaPasswordEncoder();
        String passwordHashFunction = pwe.getAlgorithm();
        passwd = pwe.encodePassword(passwd, null);

        UserEntry entry = retrieveUser(username);
        Login login = entry.getLogin();

        login.setPassword(passwd);
        if (passwordHashFunction != null) {
            login.setHashFunctionName(passwordHashFunction);
        }
        login.setChangePasswordAtNextLogin(false);

        @SuppressWarnings("unused")
    UserEntry result = updateUser(username, entry);
        return true;
    }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.appsforyourdomain.provisioning.UserEntry

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.