org.firebirdsql.management

Class FBUser

Implemented Interfaces:
User

public class FBUser
extends java.lang.Object
implements User

A user in the Firebird Security Database.
Authors:
Steven Jardine
Roman Rokytskyy

Constructor Summary

FBUser()
Create an instance of this class.

Method Summary

boolean
equals(Object obj)
String
getFirstName()
int
getGroupId()
String
getLastName()
String
getMiddleName()
String
getPassword()
Returns the password as set by setPassword.
int
getUserId()
String
getUserName()
int
hashCode()
void
setFirstName(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 implementation
void
setLastName(String lastName)
Optional last name of the person using this user name.
void
setMiddleName(String middleName)
Optional middle name of the person using this user name.
void
setPassword(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 implementation
void
setUserName(String userName)
User name to create in security database.
String
toString()

Constructor Details

FBUser

public FBUser()
Create an instance of this class.

Method Details

equals

public boolean equals(Object obj)

getFirstName

public String getFirstName()
Specified by:
getFirstName in interface User
Returns:
first name of the person using this user name.

getGroupId

public int getGroupId()
Specified by:
getGroupId in interface User
Returns:
group id number.

getLastName

public String getLastName()
Specified by:
getLastName in interface User
Returns:
last name of the person using this user name.

getMiddleName

public String getMiddleName()
Specified by:
getMiddleName in interface User
Returns:
middle name of the person using this user name.

getPassword

public String getPassword()
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 interface User
Returns:
the password for the specified user.

getUserId

public int getUserId()
Specified by:
getUserId in interface User
Returns:
user id number.

getUserName

public String getUserName()
Specified by:
getUserName in interface User
Returns:
the username in the security database.

hashCode

public int hashCode()

setFirstName

public void setFirstName(String firstName)
Optional first name of the person using this user name.
Specified by:
setFirstName in interface User
Parameters:
firstName -

setGroupId

public void setGroupId(int groupId)
Optional group ID number, defined in /etc/group, to assign to the user in security database; reserved for future implementation
Specified by:
setGroupId in interface User
Parameters:
groupId -

setLastName

public void setLastName(String lastName)
Optional last name of the person using this user name.
Specified by:
setLastName in interface User
Parameters:
lastName -

setMiddleName

public void setMiddleName(String middleName)
Optional middle name of the person using this user name.
Specified by:
setMiddleName in interface User
Parameters:
middleName -

setPassword

public void setPassword(String password)
Password for the specified user. Maximum length is 31 characters. Only first 8 characters are significant.
Specified by:
setPassword in interface User
Parameters:
password -

setUserId

public void setUserId(int userId)
Optional user ID number, defined in /etc/passwd, to assign to the user in security database; reserved for future implementation
Specified by:
setUserId in interface User
Parameters:
userId -

setUserName

public void setUserName(String userName)
User name to create in security database. Maximum length is 31 characters. Manditory for all operations. Must be unique.
Specified by:
setUserName in interface User
Parameters:

toString

public String toString()

Copyright B) 2001 David Jencks and other authors. All rights reserved.