Package com.cloudseal.rest.jaxb

Examples of com.cloudseal.rest.jaxb.ChangePassword


    @Override
    public void changePassword(String username, String newPassword) {
        try {
            StringBuilder builder = new StringBuilder("/rest/change_password/");
            builder.append(username);
            ChangePassword changePassword = new ChangePassword();
            changePassword.setNewPassword(newPassword);
            restClient.put(builder.toString(), changePassword);
        } catch (RestException ex) {
            if (ex.getCause() != null && ex.getCause().getMessage().contains("USER_NOT_FOUND")) {
                throw new UserNotFoundException(ex.getCause().getMessage());
            }
View Full Code Here


        }

        try {
            StringBuilder builder = new StringBuilder("/rest/change_password/");
            builder.append(username);
            ChangePassword changePassword = new ChangePassword();
            changePassword.setCurrentPassword(currentPassword);
            changePassword.setNewPassword(newPassword);
            restClient.put(builder.toString(), changePassword);
        } catch (RestException ex) {
            if (ex.getCause() != null && ex.getCause().getMessage().contains("USER_NOT_FOUND")) {
                throw new UserNotFoundException(ex.getCause().getMessage());
            }
View Full Code Here

TOP

Related Classes of com.cloudseal.rest.jaxb.ChangePassword

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.