Class UserInfo


  • public class UserInfo
    extends PrincipalInfo
    This class represents a user on the Tibjms server. A user can be a principal in access control.
    • Constructor Summary

      Constructors 
      Constructor Description
      UserInfo​(java.lang.String userName)
      Public constructor to create a UserInfo with no description.
      UserInfo​(java.lang.String userName, java.lang.String description)
      Public constructor to create a UserInfo.
    • Constructor Detail

      • UserInfo

        public UserInfo​(java.lang.String userName,
                        java.lang.String description)
        Public constructor to create a UserInfo. The user will not be created on the server until the UserInfo is passed to TibjmsAdmin.createUser().
        Parameters:
        userName - The name of the new user.
        description - The description for the new user.
      • UserInfo

        public UserInfo​(java.lang.String userName)
        Public constructor to create a UserInfo with no description. The user will not be created on the server until the UserInfo is passed to TibjmsAdmin.createUser().
        Parameters:
        userName - The name of the new user.
    • Method Detail

      • setPassword

        public void setPassword​(java.lang.String password)
                         throws TibjmsAdminException
        Set the password for this user. The user must be saved with a call to TibjmsAdmin.updateUser() before the change will take effect on the server. It is an error to attempt to set the password of an external user.
        Parameters:
        password - The new password for this user.
        Throws:
        TibjmsAdminException - if the user is external.
      • toString

        public java.lang.String toString()
        Generate a string representation of this UserInfo.
        Overrides:
        toString in class PrincipalInfo
        Returns:
        a string representation of this UserInfo.