Package com.tibco.tibjms.admin
Class UserInfo
- java.lang.Object
- 
- com.tibco.tibjms.admin.PrincipalInfo
- 
- com.tibco.tibjms.admin.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 SummaryConstructors Constructor Description UserInfo(java.lang.Object json)For Internal use only, may be removed or deprecated in future.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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetPassword(java.lang.String password)Set the password for this user.java.lang.StringtoString()Generate a string representation of this UserInfo.- 
Methods inherited from class com.tibco.tibjms.admin.PrincipalInfogetDescription, getName, isExternal, setDescription
 
- 
 
- 
- 
- 
Constructor Detail- 
UserInfopublic 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.
 
 - 
UserInfopublic 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.
 
 - 
UserInfopublic UserInfo(java.lang.Object json) throws JMSExceptionFor Internal use only, may be removed or deprecated in future.- Throws:
- JMSException
 
 
- 
 - 
Method Detail- 
setPasswordpublic void setPassword(java.lang.String password) throws TibjmsAdminExceptionSet 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.
 
 - 
toStringpublic java.lang.String toString() Generate a string representation of this UserInfo.- Overrides:
- toStringin class- PrincipalInfo
- Returns:
- a string representation of this UserInfo.
 
 
- 
 
-