Java Code Examples for org.wso2.carbon.identity.user.registration.stub.dto.UserDTO#setPassword()

The following examples show how to use org.wso2.carbon.identity.user.registration.stub.dto.UserDTO#setPassword() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UserRegistrationAdminServiceClient.java    From carbon-identity-framework with Apache License 2.0 5 votes vote down vote up
/**
 * Add new user.
 * @param username Username of the user.
 * @param password Password of the user.
 * @param userFields User fields to be updated.
 * @throws RemoteException
 * @throws UserRegistrationAdminServiceException
 */
public void addUser(String username, char[] password, List<UserFieldDTO> userFields) throws RemoteException,
        UserRegistrationAdminServiceException {

    UserDTO userDTO = new UserDTO();
    userDTO.setUserName(username);
    userDTO.setPassword(new String(password));

    userDTO.setUserFields(userFields.toArray(new UserFieldDTO[userFields.size()]));
    stub.addUser(userDTO);
}
 
Example 2
Source File: UserRegistrationAdminServiceClient.java    From carbon-identity-framework with Apache License 2.0 5 votes vote down vote up
/**
 * Add new user.
 *
 * @param username   Username of the user.
 * @param password   Password of the user.
 * @param userFields User fields to be updated.
 * @throws java.rmi.RemoteException
 * @throws UserRegistrationAdminServiceException
 */
public void addUser(String username, char[] password, List<UserFieldDTO> userFields) throws RemoteException,
                                                                                            UserRegistrationAdminServiceException {

    UserDTO userDTO = new UserDTO();
    userDTO.setUserName(username);
    userDTO.setPassword(new String(password));

    userDTO.setUserFields(userFields.toArray(new UserFieldDTO[userFields.size()]));
    stub.addUser(userDTO);
}
 
Example 3
Source File: UserRegistrationAdminServiceClient.java    From carbon-identity with Apache License 2.0 5 votes vote down vote up
/**
 * Add new user.
 * @param username Username of the user.
 * @param password Password of the user.
 * @param userFields User fields to be updated.
 * @throws RemoteException
 * @throws UserRegistrationAdminServiceException
 */
public void addUser(String username, char[] password, List<UserFieldDTO> userFields) throws RemoteException,
        UserRegistrationAdminServiceException {

    UserDTO userDTO = new UserDTO();
    userDTO.setUserName(username);
    userDTO.setPassword(new String(password));

    userDTO.setUserFields(userFields.toArray(new UserFieldDTO[userFields.size()]));
    stub.addUser(userDTO);
}