|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.buildforge.services.client.dbo.ServerAuth
public class ServerAuth
ServerAuths are the authentication credentials associated with Server
s.
They tie a username and a password to a particular Server and will be be used
to authenticate with that Server's agent process at Build
execution time.
For security reasons, passwords will never be returned to clients loading ServerAuth
objects from the database. These passwords may be updated using the loaded ServerAuth
objects, but the original contents of that password field may not be retrieved.
Field Summary | |
---|---|
static java.lang.Class<ServerAuth> |
CLASS
|
Constructor Summary | |
---|---|
ServerAuth(APIClientConnection conn)
Defines a new ServerAuth object |
Method Summary | |
---|---|
ServerAuth |
create()
Creates a new ServerAuth in the database |
void |
delete()
Removes this ServerAuth from the database |
static void |
deleteById(APIClientConnection conn,
java.lang.String authId)
Removes the specified ServerAuth from the database, by identifier |
static java.util.List<ServerAuth> |
findAll(APIClientConnection conn)
Retrieves all ServerAuth objects from the database |
static ServerAuth |
findById(APIClientConnection conn,
java.lang.String authId)
Retrieves the specificed ServerAuth object by identifier |
java.lang.String |
getAuthId()
Returns the unique identifier of this ServerAuth |
int |
getLevel()
Returns the security level required to access this ServerAuth |
java.lang.String |
getPassword()
Returns the password of this ServerAuth. |
java.lang.String |
getUsername()
Returns the username of this ServerAuth |
void |
setAuthId(java.lang.String auth_id)
Sets the unique identifier of this ServerAuth |
void |
setLevel(int level)
Sets the security level required to access this ServerAuth |
void |
setPassword(java.lang.String password)
Sets the password of this ServerAuth. |
void |
setUsername(java.lang.String username)
Sets the username of this ServerAuth |
java.lang.String |
toString()
|
ServerAuth |
update()
Commits any new state of this ServerAuth object to the database |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class<ServerAuth> CLASS
Constructor Detail |
---|
public ServerAuth(APIClientConnection conn)
conn
- Method Detail |
---|
public static java.util.List<ServerAuth> findAll(APIClientConnection conn) throws java.io.IOException, ServiceException
conn
-
java.io.IOException
ServiceException
public static ServerAuth findById(APIClientConnection conn, java.lang.String authId) throws java.io.IOException, ServiceException
conn
- authId
-
java.io.IOException
ServiceException
public ServerAuth create() throws java.io.IOException, ServiceException
java.io.IOException
ServiceException
public ServerAuth update() throws java.io.IOException, ServiceException
java.io.IOException
ServiceException
public void delete() throws java.io.IOException, ServiceException
java.io.IOException
ServiceException
public static void deleteById(APIClientConnection conn, java.lang.String authId) throws java.io.IOException, ServiceException
conn
- authId
-
java.io.IOException
ServiceException
public java.lang.String getAuthId()
public int getLevel()
public java.lang.String getPassword()
public java.lang.String getUsername()
public void setAuthId(java.lang.String auth_id)
auth_id
- public void setLevel(int level)
level
- public void setPassword(java.lang.String password)
TextUtils.bf_encrypt(String)
password
- public void setUsername(java.lang.String username)
username
- public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |