Package org.firebirdsql.management
Class FBUser
- java.lang.Object
- 
- org.firebirdsql.management.FBUser
 
- 
- All Implemented Interfaces:
- User
 
 public class FBUser extends java.lang.Object implements User A user in the Firebird Security Database.- Author:
- Steven Jardine , Roman Rokytskyy
 
- 
- 
Constructor SummaryConstructors Constructor Description FBUser()Create an instance of this class.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetFirstName()intgetGroupId()java.lang.StringgetLastName()java.lang.StringgetMiddleName()java.lang.StringgetPassword()Returns the password as set by setPassword.intgetUserId()java.lang.StringgetUserName()inthashCode()voidsetFirstName(java.lang.String firstName)Optional first name of the person using this user name.voidsetGroupId(int groupId)Optional group ID number, defined in /etc/group, to assign to the user in security database; reserved for future implementationvoidsetLastName(java.lang.String lastName)Optional last name of the person using this user name.voidsetMiddleName(java.lang.String middleName)Optional middle name of the person using this user name.voidsetPassword(java.lang.String password)Password for the specified user.voidsetUserId(int userId)Optional user ID number, defined in /etc/passwd, to assign to the user in security database; reserved for future implementationvoidsetUserName(java.lang.String userName)User name to create in security database.java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
getUserNamepublic java.lang.String getUserName() - Specified by:
- getUserNamein interface- User
- Returns:
- the username in the security database.
 
 - 
setUserNamepublic void setUserName(java.lang.String userName) Description copied from interface:UserUser name to create in security database. Maximum length is 31 characters. Mandatory for all operations. Must be unique.- Specified by:
- setUserNamein interface- User
- Parameters:
- userName- User name
 
 - 
getPasswordpublic java.lang.String getPassword() Description copied from interface:UserReturns the password as set by setPassword. This will return null in most cases and is only provided for add and update user functionality.- Specified by:
- getPasswordin interface- User
- Returns:
- the password for the specified user.
 
 - 
setPasswordpublic void setPassword(java.lang.String password) Description copied from interface:UserPassword for the specified user. Maximum length is 31 characters. Only first 8 characters are significant.- Specified by:
- setPasswordin interface- User
- Parameters:
- password- Password
 
 - 
getFirstNamepublic java.lang.String getFirstName() - Specified by:
- getFirstNamein interface- User
- Returns:
- first name of the person using this user name.
 
 - 
setFirstNamepublic void setFirstName(java.lang.String firstName) Description copied from interface:UserOptional first name of the person using this user name.- Specified by:
- setFirstNamein interface- User
- Parameters:
- firstName- First name
 
 - 
getMiddleNamepublic java.lang.String getMiddleName() - Specified by:
- getMiddleNamein interface- User
- Returns:
- middle name of the person using this user name.
 
 - 
setMiddleNamepublic void setMiddleName(java.lang.String middleName) Description copied from interface:UserOptional middle name of the person using this user name.- Specified by:
- setMiddleNamein interface- User
- Parameters:
- middleName- Middle name
 
 - 
getLastNamepublic java.lang.String getLastName() - Specified by:
- getLastNamein interface- User
- Returns:
- last name of the person using this user name.
 
 - 
setLastNamepublic void setLastName(java.lang.String lastName) Description copied from interface:UserOptional last name of the person using this user name.- Specified by:
- setLastNamein interface- User
- Parameters:
- lastName- Last name
 
 - 
setUserIdpublic void setUserId(int userId) Description copied from interface:UserOptional user ID number, defined in /etc/passwd, to assign to the user in security database; reserved for future implementation
 - 
getGroupIdpublic int getGroupId() - Specified by:
- getGroupIdin interface- User
- Returns:
- group id number.
 
 - 
setGroupIdpublic void setGroupId(int groupId) Description copied from interface:UserOptional group ID number, defined in /etc/group, to assign to the user in security database; reserved for future implementation- Specified by:
- setGroupIdin interface- User
- Parameters:
- groupId- Id of the group
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-