Package com.ibm.sbt.services.client.smartcloud.bss

Examples of com.ibm.sbt.services.client.smartcloud.bss.UserCredentialJsonBuilder.toJson()


  public void setOneTimePassword(String loginName, String password) throws BssException, JsonException, IOException {
    UserCredentialJsonBuilder userCredential = new UserCredentialJsonBuilder();
    userCredential.setLoginName(loginName)
            .setNewPassword(password);
   
    System.out.println("Set one-time password: " + userCredential.toJson());
   
    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.setOneTimePassword(userCredential);
  }
   
View Full Code Here


    userCredential.setLoginName(loginName)
            .setOldPassword(oldPassword)
            .setNewPassword(newPassword)
            .setConfirmPassword(newPassword);
   
    System.out.println("Change password: " + userCredential.toJson());
   
    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.changePassword(userCredential);
    }
     
View Full Code Here

    public void setUserPassword(String loginName, String newPassword, boolean bypassPolicy) throws BssException, JsonException, IOException {
    UserCredentialJsonBuilder userCredential = new UserCredentialJsonBuilder();
    userCredential.setLoginName(loginName)
            .setNewPassword(newPassword);
   
    System.out.println("Set password: " + userCredential.toJson());
   
    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.setUserPassword(userCredential, bypassPolicy);
    }
     
View Full Code Here

  public void setOneTimePassword(String loginName, String password) throws BssException, JsonException, IOException {
    UserCredentialJsonBuilder userCredential = new UserCredentialJsonBuilder();
    userCredential.setLoginName(loginName)
            .setNewPassword(password);
   
    System.out.println(userCredential.toJson());
   
    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.setOneTimePassword(userCredential);
  }
   
View Full Code Here

    userCredential.setLoginName(loginName)
            .setOldPassword(oldPassword)
            .setNewPassword(newPassword)
            .setConfirmPassword(newPassword);
   
    System.out.println(userCredential.toJson());
   
    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.changePassword(userCredential);
    }
     
View Full Code Here

  public void setOneTimePassword(String loginName, String password) throws BssException, JsonException, IOException {
    UserCredentialJsonBuilder userCredential = new UserCredentialJsonBuilder();
    userCredential.setLoginName(loginName)
            .setNewPassword(password);
   
    System.out.println(userCredential.toJson());
   
    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.setOneTimePassword(userCredential);
  }
   
View Full Code Here

    userCredential.setLoginName(loginName)
            .setOldPassword(oldPassword)
            .setNewPassword(newPassword)
            .setConfirmPassword(newPassword);
   
    System.out.println(userCredential.toJson());
   
    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.changePassword(userCredential);
    }
     
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.