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 Summary
Constructors Constructor Description FBUser()
Create an instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getFirstName()
int
getGroupId()
java.lang.String
getLastName()
java.lang.String
getMiddleName()
java.lang.String
getPassword()
Returns the password as set by setPassword.int
getUserId()
java.lang.String
getUserName()
int
hashCode()
void
setFirstName(java.lang.String firstName)
Optional first name of the person using this user name.void
setGroupId(int groupId)
Optional group ID number, defined in /etc/group, to assign to the user in security database; reserved for future implementationvoid
setLastName(java.lang.String lastName)
Optional last name of the person using this user name.void
setMiddleName(java.lang.String middleName)
Optional middle name of the person using this user name.void
setPassword(java.lang.String password)
Password for the specified user.void
setUserId(int userId)
Optional user ID number, defined in /etc/passwd, to assign to the user in security database; reserved for future implementationvoid
setUserName(java.lang.String userName)
User name to create in security database.java.lang.String
toString()
-
-
-
Method Detail
-
getUserName
public java.lang.String getUserName()
- Specified by:
getUserName
in interfaceUser
- Returns:
- the username in the security database.
-
setUserName
public void setUserName(java.lang.String userName)
Description copied from interface:User
User name to create in security database. Maximum length is 31 characters. Mandatory for all operations. Must be unique.- Specified by:
setUserName
in interfaceUser
- Parameters:
userName
- User name
-
getPassword
public java.lang.String getPassword()
Description copied from interface:User
Returns 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:
getPassword
in interfaceUser
- Returns:
- the password for the specified user.
-
setPassword
public void setPassword(java.lang.String password)
Description copied from interface:User
Password for the specified user. Maximum length is 31 characters. Only first 8 characters are significant.- Specified by:
setPassword
in interfaceUser
- Parameters:
password
- Password
-
getFirstName
public java.lang.String getFirstName()
- Specified by:
getFirstName
in interfaceUser
- Returns:
- first name of the person using this user name.
-
setFirstName
public void setFirstName(java.lang.String firstName)
Description copied from interface:User
Optional first name of the person using this user name.- Specified by:
setFirstName
in interfaceUser
- Parameters:
firstName
- First name
-
getMiddleName
public java.lang.String getMiddleName()
- Specified by:
getMiddleName
in interfaceUser
- Returns:
- middle name of the person using this user name.
-
setMiddleName
public void setMiddleName(java.lang.String middleName)
Description copied from interface:User
Optional middle name of the person using this user name.- Specified by:
setMiddleName
in interfaceUser
- Parameters:
middleName
- Middle name
-
getLastName
public java.lang.String getLastName()
- Specified by:
getLastName
in interfaceUser
- Returns:
- last name of the person using this user name.
-
setLastName
public void setLastName(java.lang.String lastName)
Description copied from interface:User
Optional last name of the person using this user name.- Specified by:
setLastName
in interfaceUser
- Parameters:
lastName
- Last name
-
setUserId
public void setUserId(int userId)
Description copied from interface:User
Optional user ID number, defined in /etc/passwd, to assign to the user in security database; reserved for future implementation
-
getGroupId
public int getGroupId()
- Specified by:
getGroupId
in interfaceUser
- Returns:
- group id number.
-
setGroupId
public void setGroupId(int groupId)
Description copied from interface:User
Optional group ID number, defined in /etc/group, to assign to the user in security database; reserved for future implementation- Specified by:
setGroupId
in interfaceUser
- Parameters:
groupId
- Id of the group
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-