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

Examples of com.ibm.sbt.services.client.smartcloud.bss.UserCredentialJsonBuilder


      }
      return subscriberManagementService;
    }
       
  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


    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.setOneTimePassword(userCredential);
  }
   
    public void changePassword(String loginName, String oldPassword, String newPassword) throws BssException, JsonException, IOException {
    UserCredentialJsonBuilder userCredential = new UserCredentialJsonBuilder();
    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

      }
      return subscriberManagementService;
    }
       
    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

      }
      return subscriberManagementService;
    }
   
  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

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

      }
      return subscriberManagementService;
    }
   
  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

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

       JsonEntity subscriber = getSubscriberById(subscriberId);
       return subscriber.getAsString("Subscriber/Person/EmailAddress");
  }
   
  public void setOneTimePassword(String loginName, String password) throws BssException, JsonException, IOException {
    UserCredentialJsonBuilder userCredential = new UserCredentialJsonBuilder();
    userCredential.setLoginName(loginName)
            .setNewPassword(password);
   
    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.setOneTimePassword(userCredential);
  }
View Full Code Here

    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.setOneTimePassword(userCredential);
  }
   
    public void changePassword(String loginName, String oldPassword, String newPassword) throws BssException, JsonException, IOException {
    UserCredentialJsonBuilder userCredential = new UserCredentialJsonBuilder();
    userCredential.setLoginName(loginName)
            .setOldPassword(oldPassword)
            .setNewPassword(newPassword)
            .setConfirmPassword(newPassword);
   
    AuthenticationService authenticationService = getAuthenticationService();
View Full Code Here

TOP

Related Classes of com.ibm.sbt.services.client.smartcloud.bss.UserCredentialJsonBuilder

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.