net.sf.basedb.core.data
Class FileServerData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.OwnedData
net.sf.basedb.core.data.SharedData
net.sf.basedb.core.data.CommonData
net.sf.basedb.core.data.FileServerData
- All Implemented Interfaces:
- IdentifiableData, NameableData, OwnableData, RemovableData, ShareableData
public class FileServerData
- extends CommonData
File entries that are external files can be linked to a file server. This
contains information about username/password and/or SSL keys that are
required to access the server.
- Since:
- 2.16
- Author:
- Nicklas
- Last modified
- $Date: 2010-06-16 14:28:36 +0200 (Wed, 16 Jun 2010) $
- Hibernate: class
- table="`FileServers`" lazy="true"
MAX_USERNAME_LENGTH
public static final int MAX_USERNAME_LENGTH
- See Also:
- Constant Field Values
username
private String username
MAX_PASSWORD_LENGTH
public static final int MAX_PASSWORD_LENGTH
- See Also:
- Constant Field Values
password
private String password
MAX_CERTIFICATE_LENGTH
public static final int MAX_CERTIFICATE_LENGTH
- See Also:
- Constant Field Values
serverCertificate
private byte[] serverCertificate
clientCertificate
private byte[] clientCertificate
clientPassword
private String clientPassword
files
private Set<FileData> files
FileServerData
public FileServerData()
getUsername
public String getUsername()
- Get the username that is used to login to the server. If null
no login is required.
- Hibernate: property
- column="`username`" type="string" length="255" not-null="false"
setUsername
public void setUsername(String username)
getPassword
public String getPassword()
- Get the password that is used to login to the server.
- Hibernate: property
- column="`password`" type="string" length="255" not-null="false"
setPassword
public void setPassword(String password)
getServerCertificate
public byte[] getServerCertificate()
- Get the public server certificate indicating that we should trust
https connections to the server.
- Hibernate: property
- column="`server_certificate`" type="binary" length="65535" not-null="false"
setServerCertificate
public void setServerCertificate(byte[] serverCertificate)
getClientCertificate
public byte[] getClientCertificate()
- Get the client certificate that we need to send to the server
to make the server accept our connection.
- Hibernate: property
- column="`client_certificate`" type="binary" length="65535" not-null="false"
setClientCertificate
public void setClientCertificate(byte[] clientCertificate)
getClientCertificatePassword
public String getClientCertificatePassword()
- Get the password that is used to unlock the client certificate.
- Hibernate: property
- column="`client_password`" type="string" length="255" not-null="false"
setClientCertificatePassword
public void setClientCertificatePassword(String clientPassword)
getFiles
Set<FileData> getFiles()
- This is the inverse end.
- See Also:
FileData.getFileServer()
- Hibernate: set
- lazy="true" inverse="true"
- Hibernate: collection-key
- column="`fileserver_id`"
- Hibernate: collection-one-to-many
- class="net.sf.basedb.core.data.FileData"
setFiles
void setFiles(Set<FileData> files)